27 #include "../../../vp/qt/IntersectionDialog.h"
28 #include "../../af/ApplicationController.h"
29 #include "../../af/events/LayerEvents.h"
30 #include "../../af/Project.h"
35 #include <QMessageBox>
44 createAction(tr(
"Intersection...").toStdString(),
"vector-processing-intersection");
45 m_action->setObjectName(
"Processing.Vector Processing.Intersection");
65 if(dlg.exec() != QDialog::Accepted)
73 int reply = QMessageBox::question(0, tr(
"Intersection Result"), tr(
"The operation was concluded successfully. Would you like to add the layer to the project?"), QMessageBox::No, QMessageBox::Yes);
75 if(prj && reply == QMessageBox::Yes)
This event signals that a new layer was created.
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()
std::list< te::map::AbstractLayerPtr > getSingleLayers(bool invalid=true)
It gets all the single layers of the project.
virtual ~IntersectionAction()
QAction * m_action
Action used to call the process.
This class models the concept of a project for the TerraLib Application Framework.
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