16 #ifndef QGSLAYERTREEVIEW_H
17 #define QGSLAYERTREEVIEW_H
52 virtual void setModel( QAbstractItemModel* model )
override;
77 QList<QgsLayerTreeNode*> selectedNodes(
bool skipInternal =
false )
const;
79 QList<QgsLayerTreeLayer*> selectedLayerNodes()
const;
82 QList<QgsMapLayer*> selectedLayers()
const;
86 void refreshLayerSymbology(
const QString& layerId );
93 void contextMenuEvent( QContextMenuEvent* event )
override;
101 void modelRowsInserted( QModelIndex
index,
int start,
int end );
102 void modelRowsRemoved();
104 void updateExpandedStateToNode( QModelIndex
index );
106 void onCurrentChanged();
133 virtual QMenu* createContextMenu() = 0;
137 #endif // QGSLAYERTREEVIEW_H