27 #include "../../../attributefill/qt/RasterToVectorDialog.h" 28 #include "../../af/ApplicationController.h" 29 #include "../../af/events/LayerEvents.h" 34 #include <QMessageBox> 42 createAction(tr(
"Raster to Vector...").toUtf8().data(),
"attributefill-raster2vector-icon");
43 m_action->setObjectName(
"Processing.Attribute Fill.Raster to Vector");
56 if(dlg.exec() != QDialog::Accepted)
64 int reply = QMessageBox::question(
nullptr, tr(
"Attribute Fill 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)
This event signals that a new layer was created.
RasterToVectorAction(QMenu *menu)
This file defines the RasterToVector class.
virtual void onActionActivated(bool checked)
void setLayers(std::list< te::map::AbstractLayerPtr > layers)
Set the layer that can be used.
static ApplicationController & getInstance()
It returns a reference to the singleton instance.
virtual ~RasterToVectorAction()
This is an abstract class used to register actions into Attribute Fill pluging.
void triggered(te::qt::af::evt::Event *e)
te::map::AbstractLayerPtr getLayer()
Get the generated layer.
std::list< te::map::AbstractLayerPtr > getLayers()
Get the list of layers from app.
QAction * m_action
Action used to call the process.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
void createAction(std::string name, std::string pixmap="")
Create and set the actions parameters.