26 #ifndef __TERRALIB_QT_WIDGETS_LAYER_EXPLORER_INTERNAL_LAYEREXPLORER_H
27 #define __TERRALIB_QT_WIDGETS_LAYER_EXPLORER_INTERNAL_LAYEREXPLORER_H
30 #include "../../../../maptools/AbstractLayer.h"
31 #include "../../Config.h"
38 #include <QDockWidget>
39 #include <QModelIndex>
47 class AbstractTreeItem;
65 LayerExplorer(QWidget* parent = 0, Qt::WindowFlags flags = 0);
73 void set(
const std::list<te::map::AbstractLayerPtr>& layers);
80 std::list<te::map::AbstractLayerPtr> getTopLayers()
const;
87 std::list<AbstractTreeItem*> getSelectedItems()
const;
94 std::list<AbstractTreeItem*> getSelectedLayerItems()
const;
101 std::list<AbstractTreeItem*> getSelectedSingleLayerItems()
const;
108 std::list<te::map::AbstractLayerPtr> getSelectedSingleLayers()
const;
115 std::list<te::map::AbstractLayerPtr> getSelectedAndVisibleSingleLayers()
const;
163 void add(QAction* action,
164 const std::string& menu =
"",
165 const std::string& itemType =
"",
170 void selectedLayersChanged(
const std::list<te::map::AbstractLayerPtr>& selectedLayers);
174 void layerOrderChanged();
185 void onSelectedLayersChanged(
const std::list<te::map::AbstractLayerPtr>& selectedLayers);
195 void onLayerOrderChanged();
227 #endif // __TERRALIB_QT_WIDGETS_LAYER_EXPLORER_INTERNAL_LAYEREXPLORER_H
A tree view for the layers of an application.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr