mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
/**
|
|
* The QgsLayerTreeViewDefaultActions class serves as a factory of actions
|
|
* that can be used together with a layer tree view.
|
|
*
|
|
* @see QgsLayerTreeView
|
|
* @note added in 2.4
|
|
*/
|
|
class QgsLayerTreeViewDefaultActions : QObject
|
|
{
|
|
%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* actionZoomToLayer( QgsMapCanvas* canvas, QObject* parent = 0 ) /Factory/;
|
|
QAction* actionZoomToGroup( QgsMapCanvas* canvas, QObject* parent = 0 ) /Factory/;
|
|
// TODO: zoom to selected
|
|
|
|
QAction* actionMakeTopLevel( QObject* parent = 0 ) /Factory/;
|
|
QAction* actionGroupSelected( QObject* parent = 0 ) /Factory/;
|
|
|
|
void zoomToLayer( QgsMapCanvas* canvas );
|
|
void zoomToGroup( QgsMapCanvas* canvas );
|
|
|
|
public slots:
|
|
void showInOverview();
|
|
|
|
};
|