QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
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
43
class
CORE_EXPORT
QgsActionScopeRegistry
:
public
QObject
44
{
45
Q_OBJECT
46
Q_PROPERTY( QSet<QgsActionScope> actionScopes READ actionScopes NOTIFY actionScopesChanged )
47
48
public
:
49
58
explicit
QgsActionScopeRegistry
( QObject *parent =
nullptr
);
59
65
QSet<QgsActionScope> actionScopes()
const
;
66
72
void
registerActionScope(
const
QgsActionScope
&actionScope );
73
79
void
unregisterActionScope(
const
QgsActionScope
&actionScope );
80
86
QgsActionScope
actionScope(
const
QString &
id
);
87
88
signals:
89
96
void
actionScopesChanged
();
97
98
private
:
99
QSet<QgsActionScope> mActionScopes;
100
};
101
102
#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
QgsActionScopeRegistry::actionScopesChanged
void actionScopesChanged()
Emitted whenever a new action scope is registered or an action scope is unregistered.
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 Sat Oct 24 2020 17:43:09 for QGIS API Documentation by
1.8.20