This class register the contrast action into Cellular Space Plugin. More...
#include <CreateCellLayerAction.h>
Public Member Functions | |
CreateCellLayerAction (QMenu *menu) | |
virtual | ~CreateCellLayerAction () |
Protected Slots | |
virtual void | onActionActivated (bool checked) |
Protected Member Functions | |
void | addNewLayer (te::map::AbstractLayerPtr layer) |
Add a new layer into layer explorer widget. More... | |
void | createAction (std::string name, std::string pixmap="") |
Create and set the actions parameters. More... | |
te::map::AbstractLayerPtr | getCurrentLayer () |
Get the selected layer from layer explorer in app. More... | |
std::list < te::map::AbstractLayerPtr > | getLayers () |
Get the list of layers from app. More... | |
Protected Attributes | |
QAction * | m_action |
Action used to call the process. More... | |
QMenu * | m_menu |
Parent Menu. More... | |
This class register the contrast action into Cellular Space Plugin.
Definition at line 47 of file CreateCellLayerAction.h.
te::qt::plugins::cellspace::CreateCellLayerAction::CreateCellLayerAction | ( | QMenu * | menu | ) |
Definition at line 40 of file CreateCellLayerAction.cpp.
References te::qt::plugins::cellspace::AbstractAction::createAction(), and te::qt::plugins::cellspace::AbstractAction::m_action.
|
virtual |
Definition at line 47 of file CreateCellLayerAction.cpp.
|
protectedinherited |
Add a new layer into layer explorer widget.
layer | The layer auto pointer |
Definition at line 59 of file AbstractAction.cpp.
References te::common::Singleton< ApplicationController >::getInstance().
|
protectedinherited |
Create and set the actions parameters.
name | The action name. |
pixmap | The action pixmap name. |
Definition at line 43 of file AbstractAction.cpp.
Referenced by CreateCellLayerAction().
|
protectedinherited |
Get the selected layer from layer explorer in app.
Definition at line 66 of file AbstractAction.cpp.
References te::common::Singleton< ApplicationController >::getInstance(), and te::qt::af::evt::GetLayerSelected::m_layer.
|
protectedinherited |
Get the list of layers from app.
Definition at line 85 of file AbstractAction.cpp.
References te::qt::af::Project::getAllLayers(), and te::common::Singleton< ApplicationController >::getInstance().
|
protectedvirtualslot |
Definition at line 51 of file CreateCellLayerAction.cpp.
References te::common::Singleton< ApplicationController >::getInstance(), te::qt::plugins::cellspace::CreateCellularSpaceDialog::getLayer(), te::qt::af::Project::getSingleLayers(), and te::qt::plugins::cellspace::CreateCellularSpaceDialog::setLayers().
|
protectedinherited |
Action used to call the process.
Definition at line 117 of file AbstractAction.h.
Referenced by CreateCellLayerAction().
|
protectedinherited |
Parent Menu.
Definition at line 116 of file AbstractAction.h.