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