This is an abstract class used to register actions into sa pluging. More...
#include <AbstractAction.h>
Signals | |
| void | triggered (te::qt::af::evt::Event *e) |
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 62 of file sa/AbstractAction.h.
| te::qt::plugins::sa::AbstractAction::AbstractAction | ( | QMenu * | menu | ) |
Constructor.
| menu | The parent menu object. |
Definition at line 34 of file sa/AbstractAction.cpp.
|
virtual |
Destructor.
Definition at line 40 of file sa/AbstractAction.cpp.
|
protected |
Add a new layer into layer explorer widget.
| layer | The layer auto pointer |
Definition at line 61 of file sa/AbstractAction.cpp.
References triggered().
Referenced by te::qt::plugins::sa::BayesGlobalAction::onActionActivated(), te::qt::plugins::sa::SpatialStatisticsAction::onActionActivated(), te::qt::plugins::sa::SkaterAction::onActionActivated(), te::qt::plugins::sa::SamplePointsGeneratorAction::onActionActivated(), te::qt::plugins::sa::KernelRatioAction::onActionActivated(), te::qt::plugins::sa::KernelMapAction::onActionActivated(), and te::qt::plugins::sa::BayesLocalAction::onActionActivated().
|
protected |
Create and set the actions parameters.
| name | The action name. |
| pixmap | The action pixmap name. |
Definition at line 45 of file sa/AbstractAction.cpp.
References m_action, m_menu, onActionActivated(), and triggered().
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 129 of file sa/AbstractAction.h.
Referenced by te::qt::plugins::sa::Plugin::registerActions().
|
protected |
Get the selected layer from layer explorer in app.
Definition at line 68 of file sa/AbstractAction.cpp.
References te::qt::af::evt::GetLayerSelected::m_layer, and triggered().
|
protected |
Get the list of layers from app.
Definition at line 87 of file sa/AbstractAction.cpp.
References te::qt::af::evt::GetAvailableLayers::m_layers, and triggered().
Referenced by te::qt::plugins::sa::BayesGlobalAction::onActionActivated(), te::qt::plugins::sa::SpatialStatisticsAction::onActionActivated(), te::qt::plugins::sa::SkaterAction::onActionActivated(), te::qt::plugins::sa::SamplePointsGeneratorAction::onActionActivated(), te::qt::plugins::sa::ProximityMatrixCreatorAction::onActionActivated(), te::qt::plugins::sa::KernelRatioAction::onActionActivated(), te::qt::plugins::sa::KernelMapAction::onActionActivated(), te::qt::plugins::sa::GeostatisticalMethodsAction::onActionActivated(), and te::qt::plugins::sa::BayesLocalAction::onActionActivated().
|
protectedpure virtualslot |
Slot function used when a action was selected.
| checked | Flag used in case a toggle action. |
Referenced by createAction().
|
signal |
Referenced by addNewLayer(), createAction(), getCurrentLayer(), and getLayers().
|
protected |
Action used to call the process.
Definition at line 137 of file sa/AbstractAction.h.
Referenced by te::qt::plugins::sa::BayesGlobalAction::BayesGlobalAction(), te::qt::plugins::sa::BayesLocalAction::BayesLocalAction(), createAction(), 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().
|
protected |