27 #include "../../../vp/qt/CheckGeomValidityDialog.h" 28 #include "../../af/ApplicationController.h" 29 #include "../../af/BaseApplication.h" 30 #include "../../af/events/LayerEvents.h" 35 #include <QMessageBox> 43 createAction(tr(
"Check Geometry Validity...").toUtf8().data(),
"tools-check-geom-validity");
44 m_action->setObjectName(
"Tools.Check Geometry Validity");
58 std::list<te::map::AbstractLayerPtr> layers = e.
m_layers;
68 dlg->setAttribute(Qt::WA_DeleteOnClose);
te::map::AbstractLayerPtr m_layer
Layer selected.
This event is used to get a single layer selected in layer tree.
void createAction(std::string name, std::string pixmap="")
Create and set the actions parameters.
virtual ~CheckGeomValidityAction()
static ApplicationController & getInstance()
It returns a reference to the singleton instance.
A dialog used to check geometries validity.
void setLayers(std::list< te::map::AbstractLayerPtr > layers, te::map::AbstractLayerPtr selectedLayer=0)
This file defines the check geometry validity class.
CheckGeomValidityAction(QMenu *menu)
QAction * m_action
Action used to call the process.
void setMapDisplay(te::qt::widgets::MapDisplay *md)
std::list< te::map::AbstractLayerPtr > m_layers
te::qt::widgets::MapDisplay * getMapDisplay()
virtual void onActionActivated(bool checked)
This is an abstract class used to register actions into vp pluging.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
void triggered(te::qt::af::evt::Event *e)