27 #include "../../../vp/qt/PolygonToLineDialog.h" 28 #include "../../af/ApplicationController.h" 29 #include "../../af/events/LayerEvents.h" 33 #include <QtCore/QObject> 34 #include <QMessageBox> 42 createAction(tr(
"Polygon to Line...").toUtf8().data(),
"polygontoline-icon");
43 m_action->setObjectName(
"Processing.Vector Processing.Polygon to Line");
55 if(dlg.exec() != QDialog::Accepted)
63 int reply = QMessageBox::question(
nullptr, 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);
65 if(reply == QMessageBox::Yes)
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.
void addNewLayer(te::map::AbstractLayerPtr layer)
Add a new layer into layer explorer widget.
QAction * m_action
Action used to call the process.
te::map::AbstractLayerPtr getLayer()
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.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
virtual void onActionActivated(bool checked)