26 #ifndef __TE_QT_PLUGINS_VP_INTERNAL_ABSTRACTACTION_H
27 #define __TE_QT_PLUGINS_VP_INTERNAL_ABSTRACTACTION_H
31 #include "../../../maptools/AbstractLayer.h"
This is an abstract class used to register actions into vp pluging.
virtual ~AbstractAction()
Destructor.
QMenu * m_menu
Parent Menu.
void createActionByName(const std::string &operationName)
Create and set the actions parameters.
void createAction(std::string name, std::string pixmap="")
Create and set the actions parameters.
void addNewLayer(te::map::AbstractLayerPtr layer, bool confirmIndexCreation=true)
Add a new layer into layer explorer widget.
std::list< te::map::AbstractLayerPtr > getLayers()
Get the list of layers from app.
std::string m_operationName
The name of the operation to be used.
bool hasShapeFileSpatialIndex(const QString &path)
QAction * m_action
Action used to call the process.
void createSpatialIndex(te::map::AbstractLayerPtr layer)
void showDialog(const std::string &operationName)
static te::qt::plugins::vp::AbstractAction * createAction(QMenu *menu, const std::string &operationName)
AbstractAction(QMenu *menu, const std::string &operationName)
Constructor.
void triggered(te::qt::af::evt::Event *e)
AbstractAction(QMenu *menu)
Constructor.
virtual void onActionActivated(bool checked)
Slot function used when a action was selected.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
A base class for application events.
Proxy configuration file for TerraView (see terraview_config.h).