16 #ifndef QGSLAYERTREEVIEW_H 17 #define QGSLAYERTREEVIEW_H 93 void refreshLayerSymbology(
const QString& layerId );
97 void expandAllNodes();
101 void collapseAllNodes();
119 void modelRowsInserted(
const QModelIndex& index,
int start,
int end );
120 void modelRowsRemoved();
122 void updateExpandedStateToNode(
const QModelIndex& index );
124 void onCurrentChanged();
151 virtual QMenu* createContextMenu() = 0;
155 #endif // QGSLAYERTREEVIEW_H Layer tree group node serves as a container for layers and further groups.
Base class for all map layer types.
The QgsLayerTreeView class extends QTreeView and provides some additional functionality when working ...
QgsLayerTreeViewMenuProvider * mMenuProvider
Context menu provider. Owned by the view.
QString mCurrentLayerID
Keeps track of current layer ID (to check when to emit signal about change of current layer) ...
The QgsLayerTreeViewDefaultActions class serves as a factory of actions that can be used together wit...
The QgsLayerTreeModel class is model implementation for Qt item views framework.
This class is a base class for nodes in a layer tree.
QgsLayerTreeViewDefaultActions * mDefaultActions
helper class with default actions. Lazily initialized.
virtual void setModel(QAbstractItemModel *model)
virtual void dropEvent(QDropEvent *event)
QgsLayerTreeViewMenuProvider * menuProvider() const
Return pointer to the context menu provider. May be null.
The QgsLegendRendererItem class is abstract interface for legend items returned from QgsMapLayerLegen...
Layer tree node points to a map layer.