25 #ifndef __TERRALIB_QT_WIDGETS_LAYER_INTERNAL_LAYERITEMVIEW_H 26 #define __TERRALIB_QT_WIDGETS_LAYER_INTERNAL_LAYERITEMVIEW_H 28 #include "../../Config.h" 32 #include "../../../../maptools/AbstractLayer.h" 43 class QStyledItemDelegate;
57 class LayerViewMenuManager;
107 void addLayers(
const std::list<te::map::AbstractLayerPtr>& layers,
const QModelIndex& idx,
const std::string& idxPath =
"./");
113 void setLayers(
const std::list<te::map::AbstractLayerPtr>& layers);
121 std::list<te::map::AbstractLayerPtr> getAllLayers()
const;
127 std::list<te::map::AbstractLayerPtr> getVisibleLayers()
const;
133 std::list<te::qt::widgets::TreeItem*> getSelectedItems()
const;
140 void addFolder(
const std::string& name,
const QModelIndex& idx);
147 void updateChart(
const QModelIndex& idx);
154 void updateGrouping(
const QModelIndex& idx);
172 void addNoLayerAction(QAction* act);
178 void addAllLayerAction(QAction* act);
184 void addVectorLayerAction(QAction* act);
190 void addRasterLayerAction(QAction* act);
196 void addFolderLayerAction(QAction* act);
202 void addMultipleSelectionAction(QAction* act);
208 void addInvalidLayerAction(QAction* act);
220 void removeItems(
const QModelIndexList& idxs);
225 void removeSelectedItems();
242 void removeDelegate(QStyledItemDelegate* d);
254 void setMenuEventHandler(QObject* obj);
260 QObject* getMenuEventHandler()
const;
271 void removeMenuEventHandler(QObject* handler);
291 void visibilityChanged();
297 void selectedLayersChanged(
const std::list<te::map::AbstractLayerPtr>& layers);
302 void layerOrderChanged();
312 void selectionChanged(
const QItemSelection & selected,
const QItemSelection & deselected);
314 void dropEvent(QDropEvent * event);
316 void mouseDoubleClickEvent(QMouseEvent* event);
327 #endif //__TERRALIB_QT_WIDGETS_LAYER_INTERNAL_LAYERITEMVIEW_H This is the base class for layers.
A wdiget used to customize a chart's style parameters.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr