mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			91 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			91 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/core/qgsactionscoperegistry.h                                    *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 | 
						|
 | 
						|
 | 
						|
class QgsActionScopeRegistry : QObject
 | 
						|
{
 | 
						|
%Docstring
 | 
						|
 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:
 | 
						|
 | 
						|
 ```
 | 
						|
 QgsApplication.actionScopeRegistry()
 | 
						|
 ```
 | 
						|
 | 
						|
.. versionadded:: 3.0
 | 
						|
%End
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgsactionscoperegistry.h"
 | 
						|
%End
 | 
						|
  public:
 | 
						|
 | 
						|
    explicit QgsActionScopeRegistry( QObject *parent = 0 );
 | 
						|
%Docstring
 | 
						|
 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.
 | 
						|
 | 
						|
.. versionadded:: 3.0
 | 
						|
%End
 | 
						|
 | 
						|
    QSet<QgsActionScope> actionScopes() const;
 | 
						|
%Docstring
 | 
						|
 Get all registered action scopes.
 | 
						|
 | 
						|
.. versionadded:: 3.0
 | 
						|
 :rtype: set of QgsActionScope
 | 
						|
%End
 | 
						|
 | 
						|
    void registerActionScope( const QgsActionScope &actionScope );
 | 
						|
%Docstring
 | 
						|
 Register an additional action scope.
 | 
						|
 | 
						|
.. versionadded:: 3.0
 | 
						|
%End
 | 
						|
 | 
						|
    void unregisterActionScope( const QgsActionScope &actionScope );
 | 
						|
%Docstring
 | 
						|
 Unregister an additional action scope.
 | 
						|
 | 
						|
.. versionadded:: 3.0
 | 
						|
%End
 | 
						|
 | 
						|
    QgsActionScope actionScope( const QString &id );
 | 
						|
%Docstring
 | 
						|
 Get an action scope by its id.
 | 
						|
 | 
						|
.. versionadded:: 3.0
 | 
						|
 :rtype: QgsActionScope
 | 
						|
%End
 | 
						|
 | 
						|
  signals:
 | 
						|
 | 
						|
    void actionScopesChanged();
 | 
						|
%Docstring
 | 
						|
 Emitted whenever a new action scope is registered or an action scope
 | 
						|
 is unregistered.
 | 
						|
 | 
						|
.. versionadded:: 3.0
 | 
						|
%End
 | 
						|
 | 
						|
};
 | 
						|
 | 
						|
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/core/qgsactionscoperegistry.h                                    *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 |