27 #include "../../../vp/qt/PolygonToLineDialog.h"
28 #include "../../af/ApplicationController.h"
29 #include "../../af/events/LayerEvents.h"
30 #include "../../af/Project.h"
34 #include <QtCore/QObject>
35 #include <QMessageBox>
43 createAction(tr(
"Polygon to Line...").toStdString(),
"polygontoline-icon");
44 m_action->setObjectName(
"Processing.Vector Processing.Polygon to Line");
64 if(dlg.exec() != QDialog::Accepted)
72 int reply = QMessageBox::question(0, tr(
"Polygon to Line 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 event signals that a new layer was created.
void createAction(std::string name, std::string pixmap="")
Create and set the actions parameters.
This file defines the PolygonToLine class.
PolygonToLineAction(QMenu *menu)
void setLayers(std::list< te::map::AbstractLayerPtr > layers)
Set the layer that can be used.
virtual ~PolygonToLineAction()
static ApplicationController & getInstance()
It returns a reference to the singleton instance.
std::list< te::map::AbstractLayerPtr > getSingleLayers(bool invalid=true)
It gets all the single layers of the project.
QAction * m_action
Action used to call the process.
te::map::AbstractLayerPtr getLayer()
This class models the concept of a project for the TerraLib Application Framework.
This is an abstract class used to register actions into vp pluging.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
virtual void onActionActivated(bool checked)