QGIS API Documentation  2.15.0-Master (af20121)
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)
 
QActionactionAddGroup (QObject *parent=nullptr)
 
QActionactionGroupSelected (QObject *parent=nullptr)
 
QActionactionMakeTopLevel (QObject *parent=nullptr)
 
QActionactionMutuallyExclusiveGroup (QObject *parent=nullptr)
 Action to enable/disable mutually exclusive flag of a group (only one child node may be checked) More...
 
QActionactionRemoveGroupOrLayer (QObject *parent=nullptr)
 
QActionactionRenameGroupOrLayer (QObject *parent=nullptr)
 
QActionactionShowFeatureCount (QObject *parent=nullptr)
 
QActionactionShowInOverview (QObject *parent=nullptr)
 
QActionactionZoomToGroup (QgsMapCanvas *canvas, QObject *parent=nullptr)
 
QActionactionZoomToLayer (QgsMapCanvas *canvas, QObject *parent=nullptr)
 
void zoomToGroup (QgsMapCanvas *canvas)
 
void zoomToLayer (QgsMapCanvas *canvas)
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObjectchild (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArraydynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObjectparent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThreadthread () const
 

Protected Slots

void addGroup ()
 
void groupSelected ()
 
void makeTopLevel ()
 
void mutuallyExclusiveGroup ()
 Slot to enable/disable mutually exclusive group flag. More...
 
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 Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObjectsender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 

Protected Attributes

QgsLayerTreeViewmView
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

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 = nullptr)

Definition at line 34 of file qgslayertreeviewdefaultactions.cpp.

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

Definition at line 106 of file qgslayertreeviewdefaultactions.cpp.

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

Definition at line 99 of file qgslayertreeviewdefaultactions.cpp.

QAction * QgsLayerTreeViewDefaultActions::actionMutuallyExclusiveGroup ( QObject parent = nullptr)

Action to enable/disable mutually exclusive flag of a group (only one child node may be checked)

Note
added in 2.12

Definition at line 113 of file qgslayertreeviewdefaultactions.cpp.

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

Definition at line 41 of file qgslayertreeviewdefaultactions.cpp.

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

Definition at line 61 of file qgslayertreeviewdefaultactions.cpp.

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

Definition at line 68 of file qgslayertreeviewdefaultactions.cpp.

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

Definition at line 48 of file qgslayertreeviewdefaultactions.cpp.

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

Definition at line 90 of file qgslayertreeviewdefaultactions.cpp.

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

Definition at line 81 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::addGroup ( )
protectedslot

Definition at line 126 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::groupSelected ( )
protectedslot

Definition at line 285 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::makeTopLevel ( )
protectedslot

Definition at line 270 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::mutuallyExclusiveGroup ( )
protectedslot

Slot to enable/disable mutually exclusive group flag.

Note
added in 2.12

Definition at line 310 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::removeGroupOrLayer ( )
protectedslot

Definition at line 136 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::renameGroupOrLayer ( )
protectedslot

Definition at line 145 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::showFeatureCount ( )
protectedslot

Definition at line 160 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::showInOverview ( )
slot

Definition at line 150 of file qgslayertreeviewdefaultactions.cpp.

QString QgsLayerTreeViewDefaultActions::uniqueGroupName ( QgsLayerTreeGroup parentGroup)
protected

Definition at line 260 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::zoomToGroup ( QgsMapCanvas canvas)

Definition at line 183 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::zoomToGroup ( )
protectedslot

Definition at line 205 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::zoomToLayer ( QgsMapCanvas canvas)

Definition at line 172 of file qgslayertreeviewdefaultactions.cpp.

void QgsLayerTreeViewDefaultActions::zoomToLayer ( )
protectedslot

Definition at line 196 of file qgslayertreeviewdefaultactions.cpp.

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

Definition at line 215 of file qgslayertreeviewdefaultactions.cpp.

Member Data Documentation

QgsLayerTreeView* QgsLayerTreeViewDefaultActions::mView
protected

Definition at line 83 of file qgslayertreeviewdefaultactions.h.


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