27 #include "../../af/ApplicationController.h" 28 #include "../../af/BaseApplication.h" 29 #include "../../af/events/MapEvents.h" 30 #include "../../af/events/ApplicationEvents.h" 31 #include "../../widgets/canvas/MapDisplay.h" 32 #include "../../widgets/Utils.h" 39 #include <QMessageBox> 45 createAction(tr(
"Show Values").toUtf8().data(),
"mnt-processing-show values");
46 m_action->setObjectName(
"Processing.DTM Processing.SHOW VALUES");
79 QMessageBox::information(
nullptr, tr(
"Show Values"), tr(
"Select a layer!"));
108 catch (
const std::exception& e)
110 QMessageBox::information(
nullptr, tr(
"Show Values"), e.what());
This is an abstract class used to register actions into mnt pluging.
void onChecked(bool status)
ShowValuesTool * m_readpixel
te::qt::af::BaseApplication * m_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.
This file defines the Show MNT Values Proccess.
te::qt::widgets::LayerItemView * getLayerExplorer()
ShowValuesAction(QMenu *menu)
virtual void onActionActivated(bool checked)
QAction * m_action
Action used to call the process.
virtual ~ShowValuesAction()
te::qt::widgets::MapDisplay * getMapDisplay()