QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
QgsLayerTreeViewDefaultActions Class Reference

The QgsLayerTreeViewDefaultActions class serves as a factory of actions that can be used together with a layer tree view. More...

#include <qgslayertreeviewdefaultactions.h>

Public Slots

void showInOverview ()

Public Member Functions

 QgsLayerTreeViewDefaultActions (QgsLayerTreeView *view)
QAction * actionAddGroup (QObject *parent=0)
QAction * actionGroupSelected (QObject *parent=0)
QAction * actionMakeTopLevel (QObject *parent=0)
QAction * actionRemoveGroupOrLayer (QObject *parent=0)
QAction * actionRenameGroupOrLayer (QObject *parent=0)
QAction * actionShowFeatureCount (QObject *parent=0)
QAction * actionShowInOverview (QObject *parent=0)
QAction * actionZoomToGroup (QgsMapCanvas *canvas, QObject *parent=0)
QAction * actionZoomToLayer (QgsMapCanvas *canvas, QObject *parent=0)
void zoomToGroup (QgsMapCanvas *canvas)
void zoomToLayer (QgsMapCanvas *canvas)

Protected Slots

void addGroup ()
void groupSelected ()
void makeTopLevel ()
void removeGroupOrLayer ()
void renameGroupOrLayer ()
void showFeatureCount ()
void zoomToGroup ()
void zoomToLayer ()

Protected Member Functions

QString uniqueGroupName (QgsLayerTreeGroup *parentGroup)
void zoomToLayers (QgsMapCanvas *canvas, const QList< QgsMapLayer * > &layers)

Protected Attributes

QgsLayerTreeViewmView

Detailed Description

The QgsLayerTreeViewDefaultActions class serves as a factory of actions that can be used together with a layer tree view.

See Also
QgsLayerTreeView
Note
added in 2.4

Definition at line 36 of file qgslayertreeviewdefaultactions.h.

Constructor & Destructor Documentation

QgsLayerTreeViewDefaultActions::QgsLayerTreeViewDefaultActions ( QgsLayerTreeView view)

Definition at line 28 of file qgslayertreeviewdefaultactions.cpp.

Member Function Documentation

QAction * QgsLayerTreeViewDefaultActions::actionAddGroup ( QObject *  parent = 0)

Definition at line 34 of file qgslayertreeviewdefaultactions.cpp.

QAction * QgsLayerTreeViewDefaultActions::actionGroupSelected ( QObject *  parent = 0)

Definition at line 106 of file qgslayertreeviewdefaultactions.cpp.

QAction * QgsLayerTreeViewDefaultActions::actionMakeTopLevel ( QObject *  parent = 0)

Definition at line 99 of file qgslayertreeviewdefaultactions.cpp.

QAction * QgsLayerTreeViewDefaultActions::actionRemoveGroupOrLayer ( QObject *  parent = 0)

Definition at line 41 of file qgslayertreeviewdefaultactions.cpp.

QAction * QgsLayerTreeViewDefaultActions::actionRenameGroupOrLayer ( QObject *  parent = 0)

Definition at line 61 of file qgslayertreeviewdefaultactions.cpp.

QAction * QgsLayerTreeViewDefaultActions::actionShowFeatureCount ( QObject *  parent = 0)

Definition at line 68 of file qgslayertreeviewdefaultactions.cpp.

QAction * QgsLayerTreeViewDefaultActions::actionShowInOverview ( QObject *  parent = 0)

Definition at line 48 of file qgslayertreeviewdefaultactions.cpp.

QAction * QgsLayerTreeViewDefaultActions::actionZoomToGroup ( QgsMapCanvas canvas,
QObject *  parent = 0 
)

Definition at line 90 of file qgslayertreeviewdefaultactions.cpp.

QAction * QgsLayerTreeViewDefaultActions::actionZoomToLayer ( QgsMapCanvas canvas,
QObject *  parent = 0 
)

Definition at line 81 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::addGroup ( )
protectedslot

Definition at line 113 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::groupSelected ( )
protectedslot

Definition at line 268 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::makeTopLevel ( )
protectedslot

Definition at line 251 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::removeGroupOrLayer ( )
protectedslot

Definition at line 123 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::renameGroupOrLayer ( )
protectedslot

Definition at line 132 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::showFeatureCount ( )
protectedslot

Definition at line 146 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::showInOverview ( )
slot

Definition at line 137 of file qgslayertreeviewdefaultactions.cpp.

QString QgsLayerTreeViewDefaultActions::uniqueGroupName ( QgsLayerTreeGroup parentGroup)
protected

Definition at line 241 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::zoomToGroup ( QgsMapCanvas canvas)

Definition at line 168 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::zoomToGroup ( )
protectedslot

Definition at line 188 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::zoomToLayer ( QgsMapCanvas canvas)

Definition at line 157 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::zoomToLayer ( )
protectedslot

Definition at line 181 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::zoomToLayers ( QgsMapCanvas canvas,
const QList< QgsMapLayer * > &  layers 
)
protected

Definition at line 196 of file qgslayertreeviewdefaultactions.cpp.

Member Data Documentation

QgsLayerTreeView* QgsLayerTreeViewDefaultActions::mView
protected

Definition at line 77 of file qgslayertreeviewdefaultactions.h.


The documentation for this class was generated from the following files: