te::qt::plugins::cellspace::AbstractAction Class Referenceabstract

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

#include <AbstractAction.h>

Inheritance diagram for te::qt::plugins::cellspace::AbstractAction:
te::qt::plugins::cellspace::CreateCellLayerAction

Signals

void triggered (te::qt::af::evt::Event *e)
 

Public Member Functions

 AbstractAction (QMenu *menu)
 Constructor. More...
 
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...
 
std::list< te::map::AbstractLayerPtrgetLayers ()
 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...
 

Detailed Description

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

Definition at line 59 of file AbstractAction.h.

Constructor & Destructor Documentation

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

Constructor.

Parameters
menuThe parent menu object.
virtual te::qt::plugins::cellspace::AbstractAction::~AbstractAction ( )
virtual

Destructor.

Member Function Documentation

void te::qt::plugins::cellspace::AbstractAction::addNewLayer ( te::map::AbstractLayerPtr  layer)
protected

Add a new layer into layer explorer widget.

Parameters
layerThe layer auto pointer
void te::qt::plugins::cellspace::AbstractAction::createAction ( std::string  name,
std::string  pixmap = "" 
)
protected

Create and set the actions parameters.

Parameters
nameThe action name.
pixmapThe action pixmap name.
std::list<te::map::AbstractLayerPtr> te::qt::plugins::cellspace::AbstractAction::getLayers ( )
protected

Get the list of layers from app.

Returns
The list pf layer auto pointers
virtual void te::qt::plugins::cellspace::AbstractAction::onActionActivated ( bool  checked)
protectedpure virtualslot

Slot function used when a action was selected.

Parameters
checkedFlag used in case a toggle action.
void te::qt::plugins::cellspace::AbstractAction::triggered ( te::qt::af::evt::Event e)
signal

Member Data Documentation

QAction* te::qt::plugins::cellspace::AbstractAction::m_action
protected

Action used to call the process.

Definition at line 120 of file AbstractAction.h.

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

Parent Menu.

Definition at line 119 of file AbstractAction.h.


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