27 #include "../../../vp/qt/IntersectionDialog.h" 28 #include "../../af/ApplicationController.h" 29 #include "../../af/events/LayerEvents.h" 34 #include <QMessageBox> 43 createAction(tr(
"Intersection...").toUtf8().data(),
"vector-processing-intersection");
44 m_action->setObjectName(
"Processing.Vector Processing.Intersection");
57 if(dlg.exec() != QDialog::Accepted)
65 int reply = QMessageBox::question(
nullptr, tr(
"Intersection Result"), tr(
"The operation was concluded successfully. Would you like to add the layer to the project?"), QMessageBox::No, QMessageBox::Yes);
67 if(reply == QMessageBox::Yes)
void setLayers(std::list< te::map::AbstractLayerPtr > layers)
Set the layer that can be used.
void createAction(std::string name, std::string pixmap="")
Create and set the actions parameters.
A dialog used to execute vector intersection.
IntersectionAction(QMenu *menu)
static ApplicationController & getInstance()
It returns a reference to the singleton instance.
te::map::AbstractLayerPtr getLayer()
virtual ~IntersectionAction()
void addNewLayer(te::map::AbstractLayerPtr layer)
Add a new layer into layer explorer widget.
QAction * m_action
Action used to call the process.
std::list< te::map::AbstractLayerPtr > getLayers()
Get the list of layers from app.
virtual void onActionActivated(bool checked)
This is an abstract class used to register actions into vp pluging.
This file defines the Intersection class.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr