QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
actions
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 : matthias@opengis.ch
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 "
qgsactionscope.h
"
21
22
#include <QObject>
23
#include <QSet>
24
44
class
CORE_EXPORT
QgsActionScopeRegistry
:
public
QObject
45
{
46
Q_OBJECT
47
Q_PROPERTY( QSet<QgsActionScope>
actionScopes
READ
actionScopes
NOTIFY
actionScopesChanged
)
48
49
public
:
57
explicit
QgsActionScopeRegistry
( QObject *parent =
nullptr
);
58
63
QSet<QgsActionScope>
actionScopes
()
const
;
64
69
void
registerActionScope
(
const
QgsActionScope
&
actionScope
);
70
75
void
unregisterActionScope
(
const
QgsActionScope
&
actionScope
);
76
81
QgsActionScope
actionScope
(
const
QString &
id
);
82
83
signals:
84
90
void
actionScopesChanged
();
91
92
private
:
93
QSet<QgsActionScope> mActionScopes;
94
};
95
96
#endif
// QGSACTIONSCOPEREGISTRY_H
QgsActionScopeRegistry::unregisterActionScope
void unregisterActionScope(const QgsActionScope &actionScope)
Unregister an additional action scope.
Definition
qgsactionscoperegistry.cpp:59
QgsActionScopeRegistry::registerActionScope
void registerActionScope(const QgsActionScope &actionScope)
Register an additional action scope.
Definition
qgsactionscoperegistry.cpp:52
QgsActionScopeRegistry::actionScope
QgsActionScope actionScope(const QString &id)
Gets an action scope by its id.
Definition
qgsactionscoperegistry.cpp:66
QgsActionScopeRegistry::QgsActionScopeRegistry
QgsActionScopeRegistry(QObject *parent=nullptr)
Create a new QgsActionScopeRegistry.
Definition
qgsactionscoperegistry.cpp:26
QgsActionScopeRegistry::actionScopes
QSet< QgsActionScope > actionScopes
Definition
qgsactionscoperegistry.h:47
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:50
qgsactionscope.h
Generated on
for QGIS API Documentation by
1.17.0