26 #ifndef __TE_QT_PLUGINS_RP_INTERNAL_ABSTRACTACTION_H
27 #define __TE_QT_PLUGINS_RP_INTERNAL_ABSTRACTACTION_H
31 #include "../../../maptools/AbstractLayer.h"
104 void createAction(std::string name, std::string pixmap =
"");
137 std::list<te::map::AbstractLayerPtr>
getLayers();
163 #endif //__TE_QT_PLUGINS_RP_INTERNAL_ABSTRACTACTION_H
virtual void onPopUpActionActivated(bool checked)
Slot function used when a action was selected from layer pop up.
This is an abstract class used to register actions into rp pluging.
QMenu * m_popupMenu
Parent popMenu.
void createPopUpAction(std::string name, std::string pixmap="")
Create and set the actions parameters.
A base class for application events.
std::list< te::map::AbstractLayerPtr > getLayers()
Get the list of layers from app.
Configuration flags for the RP Qt Widget plugin.
virtual ~AbstractAction()
Destructor.
void createAction(std::string name, std::string pixmap="")
Create and set the actions parameters.
virtual void onActionActivated(bool checked)=0
Slot function used when a action was selected.
te::map::AbstractLayerPtr getCurrentLayer()
Get the selected layer from layer explorer in app.
QAction * m_action
Action used to call the process.
QMenu * m_menu
Parent Menu.
void triggered(te::qt::af::evt::Event *e)
AbstractAction(QMenu *menu, QMenu *popupMenu)
Constructor.
void addNewLayer(te::map::AbstractLayerPtr layer)
Add a new layer into layer explorer widget.
QAction * m_popupAction
Action used to call the process from pop up layer.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr