This is an abstract class used to register actions into sa pluging. More...
#include <AbstractAction.h>
Public Member Functions | |
| AbstractAction (QMenu *menu) | |
| Constructor. More... | |
| QAction * | getAction () |
| virtual | ~AbstractAction () |
| Destructor. More... | |
Protected Slots | |
| virtual void | onActionActivated (bool checked)=0 |
| Slot function used when a action was selected. More... | |
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 is an abstract class used to register actions into sa pluging.
Definition at line 52 of file AbstractAction.h.
| te::qt::plugins::sa::AbstractAction::AbstractAction | ( | QMenu * | menu | ) |
Constructor.
| menu | The parent menu object. |
Definition at line 35 of file AbstractAction.cpp.
|
virtual |
Destructor.
Definition at line 41 of file AbstractAction.cpp.
|
protected |
Add a new layer into layer explorer widget.
| layer | The layer auto pointer |
Definition at line 62 of file AbstractAction.cpp.
References te::common::Singleton< ApplicationController >::getInstance().
|
protected |
Create and set the actions parameters.
| name | The action name. |
| pixmap | The action pixmap name. |
Definition at line 46 of file AbstractAction.cpp.
Referenced by te::qt::plugins::sa::BayesGlobalAction::BayesGlobalAction(), te::qt::plugins::sa::BayesLocalAction::BayesLocalAction(), te::qt::plugins::sa::GeostatisticalMethodsAction::GeostatisticalMethodsAction(), te::qt::plugins::sa::KernelMapAction::KernelMapAction(), te::qt::plugins::sa::KernelRatioAction::KernelRatioAction(), te::qt::plugins::sa::ProximityMatrixCreatorAction::ProximityMatrixCreatorAction(), te::qt::plugins::sa::SamplePointsGeneratorAction::SamplePointsGeneratorAction(), te::qt::plugins::sa::SkaterAction::SkaterAction(), and te::qt::plugins::sa::SpatialStatisticsAction::SpatialStatisticsAction().
|
inline |
Definition at line 115 of file AbstractAction.h.
References m_action.
|
protected |
Get the selected layer from layer explorer in app.
Definition at line 69 of file AbstractAction.cpp.
References te::common::Singleton< ApplicationController >::getInstance(), and te::qt::af::evt::GetLayerSelected::m_layer.
|
protected |
Get the list of layers from app.
Definition at line 88 of file AbstractAction.cpp.
References te::common::Singleton< ApplicationController >::getInstance(), and te::qt::af::Project::getSingleLayers().
|
protectedpure virtualslot |
Slot function used when a action was selected.
| checked | Flag used in case a toggle action. |
|
protected |
Action used to call the process.
Definition at line 123 of file AbstractAction.h.
Referenced by te::qt::plugins::sa::BayesGlobalAction::BayesGlobalAction(), te::qt::plugins::sa::BayesLocalAction::BayesLocalAction(), te::qt::plugins::sa::GeostatisticalMethodsAction::GeostatisticalMethodsAction(), getAction(), te::qt::plugins::sa::KernelMapAction::KernelMapAction(), te::qt::plugins::sa::KernelRatioAction::KernelRatioAction(), te::qt::plugins::sa::ProximityMatrixCreatorAction::ProximityMatrixCreatorAction(), te::qt::plugins::sa::SamplePointsGeneratorAction::SamplePointsGeneratorAction(), te::qt::plugins::sa::SkaterAction::SkaterAction(), and te::qt::plugins::sa::SpatialStatisticsAction::SpatialStatisticsAction().
|
protected |
Parent Menu.
Definition at line 122 of file AbstractAction.h.