27 #include "../../af/ApplicationController.h" 28 #include "../../af/events/LayerEvents.h" 34 #include <QMessageBox> 42 createAction(tr(
"Create Cell Layer...").toUtf8().data(),
"cellspace");
43 m_action->setObjectName(
"Processing.Cellular Spaces.Create Cell Layer");
56 if(dlg.exec() != QDialog::Accepted)
59 if(QMessageBox::question(parent, tr(
"Cellular Spaces"), tr(
"Would you like to add the data in the tree?"), QMessageBox::Yes, QMessageBox::No) == QMessageBox::Yes)
This event signals that a new layer was created.
This is an abstract class used to register actions into Cellular Spaces pluging.
void triggered(te::qt::af::evt::Event *e)
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.
CreateCellLayerAction(QMenu *menu)
virtual ~CreateCellLayerAction()
void setLayers(std::list< te::map::AbstractLayerPtr > layers)
te::map::AbstractLayerPtr getLayer()
std::list< te::map::AbstractLayerPtr > getLayers()
Get the list of layers from app.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
virtual void onActionActivated(bool checked)
QAction * m_action
Action used to call the process.