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;
62 class LayerViewMenuManager;
112 void addLayers(
const std::list<te::map::AbstractLayerPtr>& layers,
const QModelIndex& idx,
const std::string& idxPath =
"./");
118 void setLayers(
const std::list<te::map::AbstractLayerPtr>& layers);
126 std::list<te::map::AbstractLayerPtr> getAllLayers()
const;
132 std::list<te::map::AbstractLayerPtr> getVisibleLayers()
const;
138 std::list<te::qt::widgets::TreeItem*> getSelectedItems()
const;
145 void addFolder(
const std::string& name,
const QModelIndex& idx);
152 void updateChart(
const QModelIndex& idx);
170 void addNoLayerAction(QAction* act);
176 void addAllLayerAction(QAction* act);
182 void addVectorLayerAction(QAction* act);
188 void addRasterLayerAction(QAction* act);
194 void addTabularLayerAction(QAction* act);
200 void addFolderLayerAction(QAction* act);
206 void addMultipleSelectionAction(QAction* act);
212 void addInvalidLayerAction(QAction* act);
220 QModelIndex findLayerIndex(QAbstractItemModel* model,
const QModelIndex& parent,
te::map::AbstractLayer* l);
232 void removeItems(
const QModelIndexList& idxs);
237 void removeSelectedItems();
254 void removeDelegate(QStyledItemDelegate* d);
266 void setMenuEventHandler(QObject* obj);
272 QObject* getMenuEventHandler()
const;
283 void removeMenuEventHandler(QObject* handler);
315 void visibilityChanged();
326 void selectedLayersChanged(
const std::list<te::map::AbstractLayerPtr>& layers);
331 void layerOrderChanged();
341 void selectionChanged(
const QItemSelection & selected,
const QItemSelection & deselected);
343 void dropEvent(QDropEvent * event);
345 void mouseDoubleClickEvent(QMouseEvent* event);
356 #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.
A Rule is used to attach property/scale conditions to and group the individual symbols used for rende...
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr