QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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>

Inheritance diagram for QgsLayerTreeViewDefaultActions:
Inheritance graph
[legend]

Public Slots

void showInOverview ()
 

Public Member Functions

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

Protected Slots

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

Protected Member Functions

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

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

Constructor & Destructor Documentation

QgsLayerTreeViewDefaultActions::QgsLayerTreeViewDefaultActions ( QgsLayerTreeView view)

Member Function Documentation

QAction * QgsLayerTreeViewDefaultActions::actionAddGroup ( QObject *  parent = 0)
QAction * QgsLayerTreeViewDefaultActions::actionGroupSelected ( QObject *  parent = 0)
QAction * QgsLayerTreeViewDefaultActions::actionMakeTopLevel ( QObject *  parent = 0)
QAction * QgsLayerTreeViewDefaultActions::actionRemoveGroupOrLayer ( QObject *  parent = 0)
QAction * QgsLayerTreeViewDefaultActions::actionRenameGroupOrLayer ( QObject *  parent = 0)
QAction * QgsLayerTreeViewDefaultActions::actionShowFeatureCount ( QObject *  parent = 0)
QAction * QgsLayerTreeViewDefaultActions::actionShowInOverview ( QObject *  parent = 0)
QAction * QgsLayerTreeViewDefaultActions::actionZoomToGroup ( QgsMapCanvas canvas,
QObject *  parent = 0 
)
QAction * QgsLayerTreeViewDefaultActions::actionZoomToLayer ( QgsMapCanvas canvas,
QObject *  parent = 0 
)
void QgsLayerTreeViewDefaultActions::addGroup ( )
protectedslot
void QgsLayerTreeViewDefaultActions::groupSelected ( )
protectedslot
void QgsLayerTreeViewDefaultActions::makeTopLevel ( )
protectedslot
void QgsLayerTreeViewDefaultActions::removeGroupOrLayer ( )
protectedslot
void QgsLayerTreeViewDefaultActions::renameGroupOrLayer ( )
protectedslot
void QgsLayerTreeViewDefaultActions::showFeatureCount ( )
protectedslot
void QgsLayerTreeViewDefaultActions::showInOverview ( )
slot
QString QgsLayerTreeViewDefaultActions::uniqueGroupName ( QgsLayerTreeGroup parentGroup)
protected
void QgsLayerTreeViewDefaultActions::zoomToGroup ( QgsMapCanvas canvas)
void QgsLayerTreeViewDefaultActions::zoomToGroup ( )
protectedslot
void QgsLayerTreeViewDefaultActions::zoomToLayer ( QgsMapCanvas canvas)
void QgsLayerTreeViewDefaultActions::zoomToLayer ( )
protectedslot
void QgsLayerTreeViewDefaultActions::zoomToLayers ( QgsMapCanvas canvas,
const QList< QgsMapLayer * > &  layers 
)
protected

Member Data Documentation

QgsLayerTreeView* QgsLayerTreeViewDefaultActions::mView
protected

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