27 #include "../../../vp/qt/IntersectionDialog.h"
28 #include "../../af/ApplicationController.h"
29 #include "../../af/events/LayerEvents.h"
30 #include "../../af/Project.h"
34 #include <QtCore/QObject>
35 #include <QtGui/QMessageBox>
44 createAction(tr(
"Intersection...").toStdString(),
"vector-processing-intersection");
64 if(dlg.exec() != QDialog::Accepted)
72 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);
74 if(prj && reply == QMessageBox::Yes)
This file defines the Intersection class.
virtual ~IntersectionAction()
static ApplicationController & getInstance()
It gives access to the controller singleton.
void setLayers(std::list< te::map::AbstractLayerPtr > layers)
Set the layer that can be used.
This class models the concept of a project for the TerraLib Application Framework.
This event signals that a new layer was created.
This is an abstract class used to register actions into vp pluging.
virtual void onActionActivated(bool checked)
te::map::AbstractLayerPtr getLayer()
std::list< te::map::AbstractLayerPtr > getSingleLayers()
It gets all the single layers of the project.
A dialog used to execute vector intersection.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
QWidget * getMainWindow() const
Returns main window.
IntersectionAction(QMenu *menu)
void broadcast(te::qt::af::evt::Event *evt)
Send events in broadcast for all registered components.
te::qt::af::Project * getProject()
Get the current project.
void createAction(std::string name, std::string pixmap="")
Create and set the actions parameters.