te::qt::plugins::vp::AbstractAction Class Referenceabstract

This is an abstract class used to register actions into vp pluging. More...

#include <AbstractAction.h>

Inheritance diagram for te::qt::plugins::vp::AbstractAction:
QObject te::qt::plugins::vp::BufferAction te::qt::plugins::vp::CheckGeomValidityAction te::qt::plugins::vp::DifferenceAction te::qt::plugins::vp::DissolveAction te::qt::plugins::vp::GeometricOpAction te::qt::plugins::vp::IdentityAction te::qt::plugins::vp::IntersectionAction te::qt::plugins::vp::LineToPolygonAction te::qt::plugins::vp::MergeAction te::qt::plugins::vp::MultipartToSinglepartAction te::qt::plugins::vp::PolygonToLineAction te::qt::plugins::vp::UnionAction

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::AbstractLayerPtrgetLayers ()
 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...
 

Detailed Description

This is an abstract class used to register actions into vp pluging.

Definition at line 61 of file vp/AbstractAction.h.

Constructor & Destructor Documentation

te::qt::plugins::vp::AbstractAction::AbstractAction ( QMenu *  menu)

Constructor.

Parameters
menuThe parent menu object.

Definition at line 46 of file vp/AbstractAction.cpp.

References ~AbstractAction().

te::qt::plugins::vp::AbstractAction::~AbstractAction ( )
virtualdefault

Destructor.

Referenced by AbstractAction().

Member Function Documentation

void te::qt::plugins::vp::AbstractAction::configSettings ( )
protected

Definition at line 224 of file vp/AbstractAction.cpp.

Referenced by addNewLayer().

void te::qt::plugins::vp::AbstractAction::createSpatialIndex ( te::map::AbstractLayerPtr  layer)
protected
QAction* te::qt::plugins::vp::AbstractAction::getAction ( )
inline

Definition at line 126 of file vp/AbstractAction.h.

Referenced by te::qt::plugins::vp::Plugin::registerActions().

bool te::qt::plugins::vp::AbstractAction::hasShapeFileSpatialIndex ( const QString &  path)
protected

Definition at line 181 of file vp/AbstractAction.cpp.

Referenced by addNewLayer().

virtual void te::qt::plugins::vp::AbstractAction::onActionActivated ( bool  checked)
protectedpure virtualslot

Slot function used when a action was selected.

Parameters
checkedFlag used in case a toggle action.

Referenced by createAction().

void te::qt::plugins::vp::AbstractAction::triggered ( te::qt::af::evt::Event e)
signal

Member Data Documentation

QMenu* te::qt::plugins::vp::AbstractAction::m_menu
protected

Parent Menu.

Definition at line 133 of file vp/AbstractAction.h.

Referenced by createAction().


The documentation for this class was generated from the following files: