27 #include "../../af/events/LayerEvents.h" 
   28 #include "../../af/ApplicationController.h" 
   29 #include "../../af/Project.h" 
   50   m_action = 
new QAction(m_menu);
 
   52   m_action->setText(name.c_str());
 
   54   if(pixmap.empty() == 
false)
 
   55     m_action->setIcon(QIcon::fromTheme(pixmap.c_str()));
 
   57   connect(m_action, SIGNAL(triggered(
bool)), 
this, SLOT(onActionActivated(
bool)));
 
   59   m_menu->addAction(m_action);
 
   79     std::auto_ptr<te::da::DataSetType> dsType = evt.
m_layer->getSchema();
 
   81     if(dsType.get() && dsType->hasRaster())
 
   90   std::list<te::map::AbstractLayerPtr> list;
 
This event signals that a new layer was created. 
 
te::map::AbstractLayerPtr m_layer
Layer selected. 
 
This event is used to get a single layer selected in layer tree. 
 
std::list< te::map::AbstractLayerPtr > getLayers()
Get the list of layers from app. 
 
te::map::AbstractLayerPtr getCurrentLayer()
Get the selected layer from layer explorer in app. 
 
virtual ~AbstractAction()
Destructor. 
 
static ApplicationController & getInstance()
It returns a reference to the singleton instance. 
 
void addNewLayer(te::map::AbstractLayerPtr layer)
Add a new layer into layer explorer widget. 
 
std::list< te::map::AbstractLayerPtr > getSingleLayers(bool invalid=true)
It gets all the single layers of the project. 
 
AbstractAction(QMenu *menu)
Constructor. 
 
This file defines the abstract class AbstractAction. 
 
This class models the concept of a project for the TerraLib Application Framework. 
 
void createAction(std::string name, std::string pixmap="")
Create and set the actions parameters. 
 
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr