21 #include "../../../se/ColorMap.h" 
   22 #include "../../../se/RasterSymbolizer.h" 
   23 #include "../../../se/Utils.h" 
   24 #include "../../widgets/layer/explorer/AbstractTreeItem.h" 
   25 #include "../../widgets/layer/explorer/LayerExplorer.h" 
   26 #include "../../widgets/layer/explorer/LayerTreeModel.h" 
   27 #include "../../widgets/layer/explorer/LayerTreeView.h" 
   28 #include "../../widgets/layer/explorer/LegendItem.h" 
   29 #include "../events/Event.h" 
   30 #include "../events/ProjectEvents.h" 
   31 #include "../events/LayerEvents.h" 
   32 #include "../ApplicationController.h" 
   33 #include "../Project.h" 
   67       if(projectAdded == 0 || projectAdded->
m_proj == 0)
 
   86       m_explorer->add(e->
m_layer, parentItem);
 
   89         m_explorer->expand(parentItem);
 
  104       m_explorer->remove(layerItem);
 
  123       m_explorer->collapse(parentItem);
 
  130         parentLayer->setChart(0);
 
  135         parentLayer->setGrouping(0);
 
  148       m_explorer->remove(item);
 
  169       m_explorer->getTreeView()->remove(e->
m_action);
 
  177       std::list<te::map::AbstractLayerPtr> list = m_explorer->getSelectedSingleLayers();
 
  179       if(list.empty() == 
false)
 
  191   if(selectedLayers.empty())
 
  196   std::list<te::map::AbstractLayerPtr>::const_iterator it;
 
  197   for(it = selectedLayers.begin(); it != selectedLayers.end(); ++it)
 
The RasterSymbolizer describes how to render raster/matrix-coverage data (e.g., satellite photos...
 
virtual te::map::AbstractLayerPtr getLayer() const =0
 
~LayerExplorer()
Destructor. 
 
This event is used to add a action in a layer tree pop up. 
 
te::map::AbstractLayerPtr m_layer
Tha layer to be added. 
 
void setSelectedLayers(const std::list< te::map::AbstractLayerPtr > &selectedLayers)
It sets all the layers that are selected. 
 
This is the base class for layers. 
 
te::map::AbstractLayerPtr m_layer
Layer selected. 
 
This event indicates that the layer has been selected. 
 
QAction * m_action
Action to be removed in the pop up menu. 
 
It indicates that a new project was created. 
 
te::qt::widgets::LayerExplorer * m_explorer
Pointer to a component te::qt::widgets::LayerExplorer. 
 
This event is used to get a single layer selected in layer tree. 
 
void onLayerOrderChanged()
 
virtual const std::string getItemType() const =0
It returns the item type. 
 
static ApplicationController & getInstance()
It gives access to the controller singleton. 
 
This event signals that the layer visibility has changed. 
 
It indicates that the project has unsaved changes. 
 
te::map::AbstractLayerPtr m_parentLayer
The parent layer where the layer will be added. 
 
Project * m_proj
Pointer to the new project. 
 
A connector for the te::qt::widgets::LayerExplorer class to the Application Framework. 
 
void setColorMap(ColorMap *c)
 
This event signals that a new layer was created. 
 
int m_menuSelectionType
The selection type of the context menu. 
 
TESEEXPORT RasterSymbolizer * GetRasterSymbolizer(Style *s)
Try to get raster symbolizer from a style. 
 
te::map::AbstractLayerPtr m_layer
Layer removed. 
 
This event indicates that the layer style was selected on the layer explorer. 
 
void add(const te::map::AbstractLayerPtr &layer, const te::map::AbstractLayerPtr &parentLayer=te::map::AbstractLayerPtr())
It adds the specified layer to the list of layers of the parent layer. If the parent layer is not spe...
 
A widget designed to explore the layers of an application. 
 
te::qt::widgets::AbstractTreeItem * m_item
Item of the layer to be removed. 
 
const std::list< te::map::AbstractLayerPtr > & getTopLayers() const 
It gets all the top layers of the project (folder and single layers). 
 
The class that represents an item in a LayerTreeModel. 
 
This event signals that a item belonging to a layer will be removed from the layer explorer...
 
void onApplicationTriggered(te::qt::af::evt::Event *evt)
Listener to the application framewrork events. 
 
This event is used to remove a action in a layer tree pop up. 
 
std::string m_itemType
The type of the selected item. 
 
A base class for application events. 
 
This event signals that a layer is to be removed from the layer explorer. 
 
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
 
QAction * m_action
The action to be added in pop up menu. 
 
void onTreeItemDoubleClicked(te::qt::widgets::AbstractTreeItem *item)
 
void onLayerVisibilityChanged(te::map::AbstractLayerPtr layer)
 
LayerExplorer(te::qt::widgets::LayerExplorer *explorer, QObject *parent=0)
Constructor. 
 
void remove(const te::map::AbstractLayerPtr &layer)
It removes the specified layer from the project. 
 
void broadcast(te::qt::af::evt::Event *evt)
Send events in broadcast for all registered components. 
 
void onSelectedLayersChanged(const std::list< te::map::AbstractLayerPtr > &selectedLayers)
It indicates whenever there are changes in the selection of layers in the layer explorer. 
 
te::qt::af::Project * getProject()
Get the current project. 
 
void setTopLayers(const std::list< te::map::AbstractLayerPtr > &layers)
It sets the top layers of the project. 
 
te::qt::widgets::LayerExplorer * getExplorer() const