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 <QtGui/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
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
LayerTreeModel * m_treeModel
the tree model for the layers
A tree view for the layers of an application.
A widget designed to explore the layers of an application.
LayerTreeView * m_treeView
The tree view for the layers.
The class that represents an item in a LayerTreeModel.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
A tree view for the layers of an application.