This is an abstract class used to register actions into vp 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 | configSettings () |
| void | createAction (std::string name, std::string pixmap="") |
| Create and set the actions parameters. More... | |
| void | createSpatialIndex (te::map::AbstractLayerPtr layer) |
| std::list< te::map::AbstractLayerPtr > | getLayers () |
| Get the list of layers from app. More... | |
| bool | hasShapeFileSpatialIndex (const QString &path) |
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 vp pluging.
Definition at line 61 of file vp/AbstractAction.h.
| te::qt::plugins::vp::AbstractAction::AbstractAction | ( | QMenu * | menu | ) |
Constructor.
| menu | The parent menu object. |
Definition at line 46 of file vp/AbstractAction.cpp.
References ~AbstractAction().
|
virtualdefault |
Destructor.
Referenced by AbstractAction().
|
protected |
Add a new layer into layer explorer widget.
| layer | The layer auto pointer |
Definition at line 72 of file vp/AbstractAction.cpp.
References configSettings(), createSpatialIndex(), te::da::GetDataSource(), te::common::Singleton< T >::getInstance(), hasShapeFileSpatialIndex(), and triggered().
Referenced by te::qt::plugins::vp::BufferAction::onActionActivated(), te::qt::plugins::vp::UnionAction::onActionActivated(), te::qt::plugins::vp::PolygonToLineAction::onActionActivated(), te::qt::plugins::vp::MultipartToSinglepartAction::onActionActivated(), te::qt::plugins::vp::MergeAction::onActionActivated(), te::qt::plugins::vp::LineToPolygonAction::onActionActivated(), te::qt::plugins::vp::IntersectionAction::onActionActivated(), te::qt::plugins::vp::IdentityAction::onActionActivated(), te::qt::plugins::vp::GeometricOpAction::onActionActivated(), te::qt::plugins::vp::DissolveAction::onActionActivated(), and te::qt::plugins::vp::DifferenceAction::onActionActivated().
|
protected |
Definition at line 224 of file vp/AbstractAction.cpp.
Referenced by addNewLayer().
|
protected |
Create and set the actions parameters.
| name | The action name. |
| pixmap | The action pixmap name. |
Definition at line 56 of file vp/AbstractAction.cpp.
References m_action, m_menu, onActionActivated(), and triggered().
Referenced by te::qt::plugins::vp::BufferAction::BufferAction(), te::qt::plugins::vp::CheckGeomValidityAction::CheckGeomValidityAction(), te::qt::plugins::vp::DifferenceAction::DifferenceAction(), te::qt::plugins::vp::DissolveAction::DissolveAction(), te::qt::plugins::vp::GeometricOpAction::GeometricOpAction(), te::qt::plugins::vp::IdentityAction::IdentityAction(), te::qt::plugins::vp::IntersectionAction::IntersectionAction(), te::qt::plugins::vp::LineToPolygonAction::LineToPolygonAction(), te::qt::plugins::vp::MergeAction::MergeAction(), te::qt::plugins::vp::MultipartToSinglepartAction::MultipartToSinglepartAction(), te::qt::plugins::vp::PolygonToLineAction::PolygonToLineAction(), and te::qt::plugins::vp::UnionAction::UnionAction().
|
protected |
Definition at line 206 of file vp/AbstractAction.cpp.
References te::da::GetDataSource(), and te::common::Singleton< ApplicationController >::getInstance().
Referenced by addNewLayer().
|
inline |
Definition at line 126 of file vp/AbstractAction.h.
Referenced by te::qt::plugins::vp::Plugin::registerActions().
|
protected |
Get the list of layers from app.
Definition at line 144 of file vp/AbstractAction.cpp.
References te::qt::af::evt::GetLayerSelected::m_layer, te::qt::af::evt::GetAvailableLayers::m_layers, and triggered().
Referenced by te::qt::plugins::vp::BufferAction::onActionActivated(), te::qt::plugins::vp::UnionAction::onActionActivated(), te::qt::plugins::vp::PolygonToLineAction::onActionActivated(), te::qt::plugins::vp::MultipartToSinglepartAction::onActionActivated(), te::qt::plugins::vp::MergeAction::onActionActivated(), te::qt::plugins::vp::LineToPolygonAction::onActionActivated(), te::qt::plugins::vp::IntersectionAction::onActionActivated(), te::qt::plugins::vp::IdentityAction::onActionActivated(), te::qt::plugins::vp::GeometricOpAction::onActionActivated(), te::qt::plugins::vp::DissolveAction::onActionActivated(), and te::qt::plugins::vp::DifferenceAction::onActionActivated().
|
protected |
Definition at line 181 of file vp/AbstractAction.cpp.
Referenced by addNewLayer().
|
protectedpure virtualslot |
Slot function used when a action was selected.
| checked | Flag used in case a toggle action. |
Referenced by createAction().
|
signal |
|
protected |
Action used to call the process.
Definition at line 134 of file vp/AbstractAction.h.
Referenced by te::qt::plugins::vp::BufferAction::BufferAction(), te::qt::plugins::vp::CheckGeomValidityAction::CheckGeomValidityAction(), createAction(), te::qt::plugins::vp::DifferenceAction::DifferenceAction(), te::qt::plugins::vp::DissolveAction::DissolveAction(), te::qt::plugins::vp::GeometricOpAction::GeometricOpAction(), te::qt::plugins::vp::IdentityAction::IdentityAction(), te::qt::plugins::vp::IntersectionAction::IntersectionAction(), te::qt::plugins::vp::LineToPolygonAction::LineToPolygonAction(), te::qt::plugins::vp::MergeAction::MergeAction(), te::qt::plugins::vp::MultipartToSinglepartAction::MultipartToSinglepartAction(), te::qt::plugins::vp::PolygonToLineAction::PolygonToLineAction(), and te::qt::plugins::vp::UnionAction::UnionAction().
|
protected |