QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
src
core
qgsactionscoperegistry.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsactionscoperegistry.h - QgsActionScopeRegistry
3
4
---------------------
5
begin : 1.11.2016
6
copyright : (C) 2016 by Matthias Kuhn
7
email :
[email protected]
8
***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
#ifndef QGSACTIONSCOPEREGISTRY_H
17
#define QGSACTIONSCOPEREGISTRY_H
18
19
#include "qgis_core.h"
20
#include <QObject>
21
#include <QSet>
22
#include "
qgsactionscope.h
"
23
44
class
CORE_EXPORT
QgsActionScopeRegistry
:
public
QObject
45
{
46
Q_OBJECT
47
Q_PROPERTY( QSet<QgsActionScope> actionScopes READ actionScopes NOTIFY actionScopesChanged )
48
49
public
:
50
59
explicit
QgsActionScopeRegistry
( QObject *parent =
nullptr
);
60
66
QSet<QgsActionScope> actionScopes()
const
;
67
73
void
registerActionScope(
const
QgsActionScope
&actionScope );
74
80
void
unregisterActionScope(
const
QgsActionScope
&actionScope );
81
87
QgsActionScope
actionScope(
const
QString &
id
);
88
89
signals:
90
97
void
actionScopesChanged();
98
99
private
:
100
QSet<QgsActionScope> mActionScopes;
101
};
102
103
#endif // QGSACTIONSCOPEREGISTRY_H
QgsActionScopeRegistry
The action scope registry is an application wide registry that contains a list of available action sc...
Definition:
qgsactionscoperegistry.h:44
qgsactionscope.h
QgsActionScope
An action scope defines a "place" for an action to be shown and may add additional expression variabl...
Definition:
qgsactionscope.h:47
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17