27 #include "../../../vp/qt/MultipartToSinglepartDialog.h" 28 #include "../../af/ApplicationController.h" 29 #include "../../af/events/LayerEvents.h" 34 #include <QMessageBox> 42 createAction(tr(
"Multipart To Singlepart...").toUtf8().data(),
"vp-multiparttosinglepart-icon");
43 m_action->setObjectName(
"Processing.Vector Processing.Multipart to Singlepart");
56 if(dlg.exec() != QDialog::Accepted)
64 int reply = QMessageBox::question(
nullptr, tr(
"Result"), tr(
"The operation was concluded successfully. Would you like to add the layer to the project?"), QMessageBox::No, QMessageBox::Yes);
66 if(reply == QMessageBox::Yes)
virtual void onActionActivated(bool checked)
void createAction(std::string name, std::string pixmap="")
Create and set the actions parameters.
virtual ~MultipartToSinglepartAction()
void setLayers(std::list< te::map::AbstractLayerPtr > layers)
Set the layer that can be used.
This file defines the Multipart to Singlepart class.
static ApplicationController & getInstance()
It returns a reference to the singleton instance.
te::map::AbstractLayerPtr getLayer()
Get the generated layer.
void addNewLayer(te::map::AbstractLayerPtr layer)
Add a new layer into layer explorer widget.
QAction * m_action
Action used to call the process.
MultipartToSinglepartAction(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.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr