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 *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-06-03 17:45:56 +07:00
|
|
|
class QgsLayerTreeViewDefaultActions : QObject
|
|
|
|
{
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
The QgsLayerTreeViewDefaultActions class serves as a factory of actions
|
|
|
|
that can be used together with a layer tree view.
|
|
|
|
|
|
|
|
.. seealso:: QgsLayerTreeView
|
|
|
|
.. versionadded:: 2.4
|
2014-06-03 17:45:56 +07:00
|
|
|
%End
|
|
|
|
|
2017-05-31 11:55:58 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgslayertreeviewdefaultactions.h"
|
|
|
|
%End
|
2014-06-03 17:45:56 +07:00
|
|
|
public:
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsLayerTreeViewDefaultActions( QgsLayerTreeView *view );
|
2014-06-03 17:45:56 +07:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
QAction *actionAddGroup( QObject *parent = 0 ) /Factory/;
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: QAction
|
|
|
|
%End
|
2017-05-01 18:13:15 +02:00
|
|
|
QAction *actionRemoveGroupOrLayer( QObject *parent = 0 ) /Factory/;
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: QAction
|
|
|
|
%End
|
2017-05-01 18:13:15 +02:00
|
|
|
QAction *actionShowInOverview( QObject *parent = 0 ) /Factory/;
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: QAction
|
|
|
|
%End
|
2017-05-01 18:13:15 +02:00
|
|
|
QAction *actionRenameGroupOrLayer( QObject *parent = 0 ) /Factory/;
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: QAction
|
|
|
|
%End
|
2017-05-01 18:13:15 +02:00
|
|
|
QAction *actionShowFeatureCount( QObject *parent = 0 ) /Factory/;
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: QAction
|
|
|
|
%End
|
2014-06-03 17:45:56 +07:00
|
|
|
|
2017-05-02 07:21:20 +02:00
|
|
|
QAction *actionCheckAndAllChildren( QObject *parent = 0 );
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
Action to check a group and all its children
|
|
|
|
:rtype: QAction
|
|
|
|
%End
|
2016-12-20 17:58:16 +01:00
|
|
|
|
2017-05-02 07:21:20 +02:00
|
|
|
QAction *actionUncheckAndAllChildren( QObject *parent = 0 );
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
Action to uncheck a group and all its children
|
|
|
|
:rtype: QAction
|
|
|
|
%End
|
2016-12-20 17:58:16 +01:00
|
|
|
|
2017-05-02 07:21:20 +02:00
|
|
|
QAction *actionCheckAndAllParents( QObject *parent = 0 );
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
Action to check a group and all its parents
|
|
|
|
:rtype: QAction
|
|
|
|
%End
|
2016-12-20 17:58:16 +01:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
QAction *actionZoomToLayer( QgsMapCanvas *canvas, QObject *parent = 0 ) /Factory/;
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: QAction
|
|
|
|
%End
|
2017-05-01 18:13:15 +02:00
|
|
|
QAction *actionZoomToGroup( QgsMapCanvas *canvas, QObject *parent = 0 ) /Factory/;
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: QAction
|
|
|
|
%End
|
2014-06-03 17:45:56 +07:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
QAction *actionMakeTopLevel( QObject *parent = 0 ) /Factory/;
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: QAction
|
|
|
|
%End
|
2017-05-01 18:13:15 +02:00
|
|
|
QAction *actionGroupSelected( QObject *parent = 0 ) /Factory/;
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: QAction
|
|
|
|
%End
|
2017-05-01 18:13:15 +02:00
|
|
|
QAction *actionMutuallyExclusiveGroup( QObject *parent = 0 ) /Factory/;
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
.. versionadded:: 2.12
|
|
|
|
:rtype: QAction
|
|
|
|
%End
|
2014-06-03 17:45:56 +07:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
void zoomToLayer( QgsMapCanvas *canvas );
|
|
|
|
void zoomToGroup( QgsMapCanvas *canvas );
|
2014-06-03 17:45:56 +07:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void showInOverview();
|
2017-05-31 11:55:58 +02:00
|
|
|
void addGroup();
|
2014-06-03 17:45:56 +07:00
|
|
|
|
2015-02-03 02:21:52 +01:00
|
|
|
protected slots:
|
|
|
|
void removeGroupOrLayer();
|
|
|
|
void renameGroupOrLayer();
|
|
|
|
void showFeatureCount();
|
|
|
|
void zoomToLayer();
|
|
|
|
void zoomToGroup();
|
|
|
|
void makeTopLevel();
|
|
|
|
void groupSelected();
|
2015-09-21 19:28:00 +08:00
|
|
|
void mutuallyExclusiveGroup();
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
.. 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
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
QString uniqueGroupName( QgsLayerTreeGroup *parentGroup );
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: str
|
|
|
|
%End
|
|
|
|
|
|
|
|
protected:
|
2014-06-03 17:45:56 +07:00
|
|
|
};
|
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 *
|
|
|
|
************************************************************************/
|