27 #include "../../af/ApplicationController.h"
28 #include "../../af/events/LayerEvents.h"
29 #include "../../af/Project.h"
35 #include <QMessageBox>
43 createAction(tr(
"Create Cell Layer...").toStdString(),
"cellspace");
44 m_action->setObjectName(
"Processing.Cellular Spaces.Create Cell Layer");
64 if(dlg.exec() != QDialog::Accepted)
67 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 createAction(std::string name, std::string pixmap="")
Create and set the actions parameters.
static ApplicationController & getInstance()
It returns a reference to the singleton instance.
std::list< te::map::AbstractLayerPtr > getSingleLayers(bool invalid=true)
It gets all the single layers of the project.
CreateCellLayerAction(QMenu *menu)
virtual ~CreateCellLayerAction()
void setLayers(std::list< te::map::AbstractLayerPtr > layers)
This class models the concept of a project for the TerraLib Application Framework.
te::map::AbstractLayerPtr getLayer()
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
virtual void onActionActivated(bool checked)
QAction * m_action
Action used to call the process.