All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::qt::plugins::sa::SkaterAction Class Reference

#include <SkaterAction.h>

Inheritance diagram for te::qt::plugins::sa::SkaterAction:
te::qt::plugins::sa::AbstractAction

Public Member Functions

QAction * getAction ()
 
 SkaterAction (QMenu *menu)
 
virtual ~SkaterAction ()
 

Protected Slots

virtual void onActionActivated (bool checked)
 

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...
 

Detailed Description

Definition at line 40 of file SkaterAction.h.

Constructor & Destructor Documentation

te::qt::plugins::sa::SkaterAction::SkaterAction ( QMenu *  menu)
te::qt::plugins::sa::SkaterAction::~SkaterAction ( )
virtual

Definition at line 38 of file SkaterAction.cpp.

Member Function Documentation

void te::qt::plugins::sa::AbstractAction::addNewLayer ( te::map::AbstractLayerPtr  layer)
protectedinherited

Add a new layer into layer explorer widget.

Parameters
layerThe layer auto pointer

Definition at line 62 of file AbstractAction.cpp.

References te::common::Singleton< ApplicationController >::getInstance().

QAction* te::qt::plugins::sa::AbstractAction::getAction ( )
inlineinherited

Definition at line 115 of file AbstractAction.h.

References te::qt::plugins::sa::AbstractAction::m_action.

te::map::AbstractLayerPtr te::qt::plugins::sa::AbstractAction::getCurrentLayer ( )
protectedinherited

Get the selected layer from layer explorer in app.

Returns
The layer auto pointer

Definition at line 69 of file AbstractAction.cpp.

References te::common::Singleton< ApplicationController >::getInstance(), and te::qt::af::evt::GetLayerSelected::m_layer.

std::list< te::map::AbstractLayerPtr > te::qt::plugins::sa::AbstractAction::getLayers ( )
protectedinherited

Get the list of layers from app.

Returns
The list pf layer auto pointers

Definition at line 88 of file AbstractAction.cpp.

References te::common::Singleton< ApplicationController >::getInstance(), and te::qt::af::Project::getSingleLayers().

void te::qt::plugins::sa::SkaterAction::onActionActivated ( bool  checked)
protectedvirtualslot

Member Data Documentation

QMenu* te::qt::plugins::sa::AbstractAction::m_menu
protectedinherited

Parent Menu.

Definition at line 122 of file AbstractAction.h.


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