QGIS/python/gui/auto_generated/layertree/qgslayertreeviewdefaultactions.sip.in

166 lines
4.5 KiB
Plaintext
Raw Normal View History

2017-05-31 11:55:58 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/layertree/qgslayertreeviewdefaultactions.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsLayerTreeViewDefaultActions : QObject
{
2017-05-31 11:55:58 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
The QgsLayerTreeViewDefaultActions class serves as a factory of actions
that can be used together with a layer tree view.
2017-05-31 11:55:58 +02:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:class:`QgsLayerTreeView`
2017-12-15 10:36:55 -04:00
2017-05-31 11:55:58 +02:00
.. versionadded:: 2.4
%End
2017-05-31 11:55:58 +02:00
%TypeHeaderCode
#include "qgslayertreeviewdefaultactions.h"
%End
public:
QgsLayerTreeViewDefaultActions( QgsLayerTreeView *view );
QAction *actionAddGroup( QObject *parent = 0 ) /Factory/;
QAction *actionRemoveGroupOrLayer( QObject *parent = 0 ) /Factory/;
QAction *actionShowInOverview( QObject *parent = 0 ) /Factory/;
QAction *actionRenameGroupOrLayer( QObject *parent = 0 ) /Factory/;
QAction *actionShowFeatureCount( QObject *parent = 0 ) /Factory/;
QAction *actionCheckAndAllChildren( QObject *parent = 0 );
2017-05-31 11:55:58 +02:00
%Docstring
Action to check a group and all its children
%End
QAction *actionUncheckAndAllChildren( QObject *parent = 0 );
2017-05-31 11:55:58 +02:00
%Docstring
Action to uncheck a group and all its children
%End
QAction *actionCheckAndAllParents( QObject *parent = 0 );
2017-05-31 11:55:58 +02:00
%Docstring
Action to check a group and all its parents
%End
QAction *actionZoomToLayer( QgsMapCanvas *canvas, QObject *parent = 0 ) /Factory/;
QAction *actionZoomToSelection( QgsMapCanvas *canvas, QObject *parent = 0 ) /Factory/;
%Docstring
Action to zoom to selected features of a vector layer
.. versionadded:: 3.2
%End
QAction *actionZoomToGroup( QgsMapCanvas *canvas, QObject *parent = 0 ) /Factory/;
QAction *actionMakeTopLevel( QObject *parent = 0 ) /Factory/;
%Docstring
.. deprecated:: since QGIS 3.2, use actionMoveOutOfGroup()
%End
QAction *actionMoveOutOfGroup( QObject *parent = 0 ) /Factory/;
%Docstring
.. seealso:: :py:func:`moveOutOfGroup`
.. versionadded:: 3.2
%End
QAction *actionMoveToTop( QObject *parent = 0 ) /Factory/;
%Docstring
.. seealso:: :py:func:`moveToTop`
.. versionadded:: 3.2
%End
QAction *actionGroupSelected( QObject *parent = 0 ) /Factory/;
QAction *actionMutuallyExclusiveGroup( QObject *parent = 0 ) /Factory/;
2017-05-31 11:55:58 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Action to enable/disable mutually exclusive flag of a group (only one child node may be checked)
2017-05-31 11:55:58 +02:00
.. versionadded:: 2.12
%End
void zoomToLayer( QgsMapCanvas *canvas );
void zoomToSelection( QgsMapCanvas *canvas );
%Docstring
.. seealso:: :py:func:`zoomToSelection`
.. versionadded:: 3.2
%End
void zoomToGroup( QgsMapCanvas *canvas );
public slots:
void showInOverview();
2017-05-31 11:55:58 +02:00
void addGroup();
2015-02-03 02:21:52 +01:00
protected slots:
void removeGroupOrLayer();
void renameGroupOrLayer();
void showFeatureCount();
void zoomToLayer();
void zoomToSelection();
%Docstring
Slot to zoom to selected features of a vector layer
.. versionadded:: 3.2
%End
2015-02-03 02:21:52 +01:00
void zoomToGroup();
void makeTopLevel();
%Docstring
.. deprecated:: since QGIS 3.2, use moveOutOfGroup()
%End
void moveOutOfGroup();
%Docstring
Moves selected layer(s) out of the group(s) and places this/these above the group(s)
.. versionadded:: 3.2
%End
void moveToTop();
%Docstring
Moves selected layer(s) and/or group(s) to the top of the layer panel
or the top of the group if the layer/group is placed within a group.
.. versionadded:: 3.2
%End
2015-02-03 02:21:52 +01:00
void groupSelected();
void mutuallyExclusiveGroup();
2017-05-31 11:55:58 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Slot to enable/disable mutually exclusive group flag
2017-05-31 11:55:58 +02:00
.. versionadded:: 2.12
%End
2015-02-03 02:21:52 +01:00
protected:
2017-05-31 11:55:58 +02:00
void zoomToLayers( QgsMapCanvas *canvas, const QList<QgsMapLayer *> &layers );
2015-02-03 02:21:52 +01:00
QString uniqueGroupName( QgsLayerTreeGroup *parentGroup );
2017-05-31 11:55:58 +02:00
protected:
};
2017-05-31 11:55:58 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/layertree/qgslayertreeviewdefaultactions.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/