27 #include "../../../mnt/qt/CreateIsolinesDialog.h" 28 #include "../../af/events/LayerEvents.h" 29 #include "../../af/ApplicationController.h" 34 #include <QMessageBox> 42 createAction(tr(
"Create Isolines ...").toUtf8().data(),
"mnt-processing-isolines");
43 m_action->setObjectName(
"Processing.ISOLINES Processing.ISOLINES");
56 if (dlg.exec() != QDialog::Accepted)
64 int reply = QMessageBox::question(
nullptr, tr(
"Isoline 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)
This is an abstract class used to register actions into mnt pluging.
void setLayers(std::list< te::map::AbstractLayerPtr > layers)
std::list< te::map::AbstractLayerPtr > getLayers()
Get the list of layers from app.
void createAction(std::string name, std::string pixmap="")
Create and set the actions parameters.
static ApplicationController & getInstance()
It returns a reference to the singleton instance.
QAction * m_action
Action used to call the process.
void addNewLayer(te::map::AbstractLayerPtr layer)
Add a new layer into layer explorer widget.
This file defines the Isolines Generation class.
CreateIsolinesAction(QMenu *menu)
virtual ~CreateIsolinesAction()
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
te::map::AbstractLayerPtr getLayer()