te::qt::plugins::mnt::SlopeAction Class Reference

This class register the slope action into MNT Plugin. More...

#include <SlopeAction.h>

Inheritance diagram for te::qt::plugins::mnt::SlopeAction:
te::qt::plugins::mnt::AbstractAction QObject

Signals

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

Public Member Functions

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

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::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 class register the slope action into MNT Plugin.

Definition at line 47 of file SlopeAction.h.

Constructor & Destructor Documentation

te::qt::plugins::mnt::SlopeAction::SlopeAction ( QMenu *  menu)
te::qt::plugins::mnt::SlopeAction::~SlopeAction ( )
virtualdefault

Referenced by SlopeAction().

Member Function Documentation

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

Definition at line 129 of file mnt/AbstractAction.h.

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

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

Get the selected layer from layer explorer in app.

Returns
The layer auto pointer

Definition at line 67 of file mnt/AbstractAction.cpp.

References te::qt::af::evt::GetLayerSelected::m_layer, and te::qt::plugins::mnt::AbstractAction::triggered().

Member Data Documentation

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

Parent Menu.

Definition at line 136 of file mnt/AbstractAction.h.

Referenced by te::qt::plugins::mnt::AbstractAction::createAction().


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