QGIS API Documentation  2.99.0-Master (f867b65)
Public Member Functions | Static Public Member Functions | List of all members
QgsGui Class Reference

QgsGui is a singleton class containing various registry and other global members related to GUI classes. More...

#include <qgsgui.h>

Public Member Functions

 QgsGui (const QgsGui &other)=delete
 QgsGui cannot be copied. More...
 
 ~QgsGui ()
 
QgsGuioperator= (const QgsGui &other)=delete
 QgsGui cannot be copied. More...
 

Static Public Member Functions

static QgsEditorWidgetRegistryeditorWidgetRegistry ()
 Returns the global editor widget registry, used for managing all known edit widget factories. More...
 
static QgsGuiinstance ()
 Returns a pointer to the singleton instance. More...
 
static QgsLayerTreeEmbeddedWidgetRegistrylayerTreeEmbeddedWidgetRegistry ()
 Returns the global layer tree embedded widget registry, used for registering widgets that may be embedded into layer tree view. More...
 
static QgsLayoutItemGuiRegistry * layoutItemGuiRegistry ()
 Returns the global layout item GUI registry, used for registering the GUI behavior of layout items. More...
 
static QgsMapLayerActionRegistrymapLayerActionRegistry ()
 Returns the global map layer action registry, used for registering map layer actions. More...
 
static QgsNative * nativePlatformInterface ()
 Returns the global native interface, which offers abstraction to the host OS's underlying public interfaces. More...
 
static QgsShortcutsManagershortcutsManager ()
 Returns the global shortcuts manager, used for managing a QAction and QShortcut sequences. More...
 

Detailed Description

QgsGui is a singleton class containing various registry and other global members related to GUI classes.

Since
QGIS 3.0

Definition at line 37 of file qgsgui.h.

Constructor & Destructor Documentation

◆ QgsGui()

QgsGui::QgsGui ( const QgsGui other)
delete

QgsGui cannot be copied.

◆ ~QgsGui()

QgsGui::~QgsGui ( )

Definition at line 68 of file qgsgui.cpp.

Member Function Documentation

◆ editorWidgetRegistry()

QgsEditorWidgetRegistry * QgsGui::editorWidgetRegistry ( )
static

Returns the global editor widget registry, used for managing all known edit widget factories.

Definition at line 43 of file qgsgui.cpp.

◆ instance()

QgsGui * QgsGui::instance ( )
static

Returns a pointer to the singleton instance.

Definition at line 32 of file qgsgui.cpp.

◆ layerTreeEmbeddedWidgetRegistry()

QgsLayerTreeEmbeddedWidgetRegistry * QgsGui::layerTreeEmbeddedWidgetRegistry ( )
static

Returns the global layer tree embedded widget registry, used for registering widgets that may be embedded into layer tree view.

Definition at line 53 of file qgsgui.cpp.

◆ layoutItemGuiRegistry()

QgsLayoutItemGuiRegistry * QgsGui::layoutItemGuiRegistry ( )
static

Returns the global layout item GUI registry, used for registering the GUI behavior of layout items.

Definition at line 63 of file qgsgui.cpp.

◆ mapLayerActionRegistry()

QgsMapLayerActionRegistry * QgsGui::mapLayerActionRegistry ( )
static

Returns the global map layer action registry, used for registering map layer actions.

Definition at line 58 of file qgsgui.cpp.

◆ nativePlatformInterface()

QgsNative * QgsGui::nativePlatformInterface ( )
static

Returns the global native interface, which offers abstraction to the host OS's underlying public interfaces.

Note
Not available in Python bindings

Definition at line 38 of file qgsgui.cpp.

◆ operator=()

QgsGui& QgsGui::operator= ( const QgsGui other)
delete

QgsGui cannot be copied.

◆ shortcutsManager()

QgsShortcutsManager * QgsGui::shortcutsManager ( )
static

Returns the global shortcuts manager, used for managing a QAction and QShortcut sequences.

Definition at line 48 of file qgsgui.cpp.


The documentation for this class was generated from the following files: