QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
The action scope registry is an application wide registry that contains a list of available action scopes. More...
#include <qgsactionscoperegistry.h>
Signals | |
void | actionScopesChanged () |
Emitted whenever a new action scope is registered or an action scope is unregistered. More... | |
Public Member Functions | |
QgsActionScopeRegistry (QObject *parent=nullptr) | |
Create a new QgsActionScopeRegistry. More... | |
QgsActionScope | actionScope (const QString &id) |
Gets an action scope by its id. More... | |
QSet< QgsActionScope > | actionScopes () const |
Gets all registered action scopes. More... | |
void | registerActionScope (const QgsActionScope &actionScope) |
Register an additional action scope. More... | |
void | unregisterActionScope (const QgsActionScope &actionScope) |
Unregister an additional action scope. More... | |
Properties | |
QSet< QgsActionScope > | actionScopes |
The action scope registry is an application wide registry that contains a list of available action scopes.
Some scopes are available by default, additional ones can be registered at runtime by plugins or custom applications.
To get access use the QgsApplication:
Definition at line 44 of file qgsactionscoperegistry.h.
|
explicit |
Create a new QgsActionScopeRegistry.
QGIS already creates a central registry. You will normally want to use QgsApplication::actionScopeRegistry() to get access to that one instead.
Definition at line 20 of file qgsactionscoperegistry.cpp.
QgsActionScope QgsActionScopeRegistry::actionScope | ( | const QString & | id | ) |
Gets an action scope by its id.
Definition at line 59 of file qgsactionscoperegistry.cpp.
QSet< QgsActionScope > QgsActionScopeRegistry::actionScopes | ( | ) | const |
Gets all registered action scopes.
Definition at line 40 of file qgsactionscoperegistry.cpp.
|
signal |
Emitted whenever a new action scope is registered or an action scope is unregistered.
void QgsActionScopeRegistry::registerActionScope | ( | const QgsActionScope & | actionScope | ) |
Register an additional action scope.
Definition at line 45 of file qgsactionscoperegistry.cpp.
void QgsActionScopeRegistry::unregisterActionScope | ( | const QgsActionScope & | actionScope | ) |
Unregister an additional action scope.
Definition at line 52 of file qgsactionscoperegistry.cpp.
|
read |
Definition at line 1 of file qgsactionscoperegistry.h.