|
QGIS API Documentation 3.99.0-Master (09f76ad7019)
|
A singleton class containing various registry and other global members related to GUI classes. More...
#include <qgsgui.h>

Public Types | |
| enum | HigFlag { HigMenuTextIsTitleCase = 1 << 0 , HigDialogTitleIsTitleCase = 1 << 1 } |
| HIG flags, which indicate the Human Interface Guidelines for the current platform. More... | |
| typedef QFlags< HigFlag > | HigFlags |
| enum | ProjectCrsBehavior { UseCrsOfFirstLayerAdded = 1 , UsePresetCrs = 2 } |
| Defines the behavior to use when setting the CRS for a newly created project. More... | |
Signals | |
| void | optionsChanged () |
| This signal is emitted whenever the application options have been changed. | |
Public Member Functions | |
| QgsGui (const QgsGui &other)=delete | |
| ~QgsGui () override | |
| QgsGui & | operator= (const QgsGui &other)=delete |
Static Public Member Functions | |
| static QgsAdvancedDigitizingToolsRegistry * | advancedDigitizingToolsRegistry () |
| Returns the global advanced digitizing tools registry, used for registering advanced digitizing tools. | |
| static bool | allowExecutionOfEmbeddedScripts (QgsProject *project, QgsMessageBar *messageBar=nullptr) |
Returns true if python embedded in a project is currently allowed to be loaded. | |
| static QgsAnnotationItemGuiRegistry * | annotationItemGuiRegistry () |
| Returns the global annotation item GUI registry, used for registering the GUI behavior of annotation items. | |
| static QgsCodeEditorColorSchemeRegistry * | codeEditorColorSchemeRegistry () |
| Returns the global code editor color scheme registry, used for registering the color schemes for QgsCodeEditor widgets. | |
| static QgsDataItemGuiProviderRegistry * | dataItemGuiProviderRegistry () |
| Returns the global data item GUI provider registry, used for tracking providers which affect the browser GUI. | |
| static QgsEditorWidgetRegistry * | editorWidgetRegistry () |
| Returns the global editor widget registry, used for managing all known edit widget factories. | |
| static void | enableAutoGeometryRestore (QWidget *widget, const QString &key=QString()) |
| Register the widget to allow its position to be automatically saved and restored when open and closed. | |
| static QScreen * | findScreenAt (QPoint point) |
| Returns the screen at the given global point (pixel). | |
| static bool | hasWebEngine () |
| Checks whether QWebEngineView is available to display HTML content. | |
| static QgsGui::HigFlags | higFlags () |
| Returns the platform's HIG flags. | |
| static QgsHistoryProviderRegistry * | historyProviderRegistry () |
| Returns the global history provider registry, used for tracking history providers. | |
| static void | initCalloutWidgets () |
| Initializes callout widgets. | |
| static void | initPlotWidgets () |
| Initializes plot widgets. | |
| static QgsInputControllerManager * | inputControllerManager () |
| Returns the global input controller manager. | |
| static QgsGui * | instance () |
| Returns a pointer to the singleton instance. | |
| static QgsLayerTreeEmbeddedWidgetRegistry * | layerTreeEmbeddedWidgetRegistry () |
| Returns the global layer tree embedded widget registry, used for registering widgets that may be embedded into layer tree view. | |
| static QgsLayoutItemGuiRegistry * | layoutItemGuiRegistry () |
| Returns the global layout item GUI registry, used for registering the GUI behavior of layout items. | |
| static QgsMapLayerActionRegistry * | mapLayerActionRegistry () |
| Returns the global map layer action registry, used for registering map layer actions. | |
| static QgsMapToolShapeRegistry * | mapToolShapeRegistry () |
| Returns the registry of shape map tools. | |
| static QgsNative * | nativePlatformInterface () |
| Returns the global native interface, which offers abstraction to the host OS's underlying public interfaces. | |
| static QgsNumericFormatGuiRegistry * | numericFormatGuiRegistry () |
| Returns the global numeric format gui registry, used for registering the GUI widgets associated with QgsNumericFormats. | |
| static QgsProcessingFavoriteAlgorithmManager * | processingFavoriteAlgorithmManager () |
| Returns the global Processing favorite algorithm manager, used for tracking favorite Processing algorithms. | |
| static QgsProcessingGuiRegistry * | processingGuiRegistry () |
| Returns the global processing gui registry, used for registering the GUI behavior of processing algorithms. | |
| static QgsProcessingRecentAlgorithmLog * | processingRecentAlgorithmLog () |
| Returns the global processing recent algorithm log, used for tracking recently used processing algorithms. | |
| static QgsProjectStorageGuiRegistry * | projectStorageGuiRegistry () |
| Returns the global GUI-related project storage registry. | |
| static QgsProviderGuiRegistry * | providerGuiRegistry () |
| Returns the registry of GUI-related components of data providers. | |
| static QgsRelationWidgetRegistry * | relationWidgetRegistry () |
| Returns the global relation widget registry, used for managing all known relation widget factories. | |
| static QColor | sampleColor (QPoint point) |
| Samples the color on screen at the specified global point (pixel). | |
| static QgsSensorGuiRegistry * | sensorGuiRegistry () |
| Returns the registry of GUI-related components for sensors. | |
| static QgsSettingsEditorWidgetRegistry * | settingsEditorWidgetRegistry () |
| Returns the registry of settings editors. | |
| static QgsSettingsRegistryGui * | settingsRegistryGui () |
| Returns the gui's settings registry, used for managing gui settings. | |
| static void | setWindowManager (QgsWindowManagerInterface *manager) |
| Sets the global window manager. | |
| static QgsShortcutsManager * | shortcutsManager () |
| Returns the global shortcuts manager, used for managing a QAction and QShortcut sequences. | |
| static QgsSourceSelectProviderRegistry * | sourceSelectProviderRegistry () |
| Returns the global source select provider registry, used for managing all known source select widget factories. | |
| static QgsProviderSourceWidgetProviderRegistry * | sourceWidgetProviderRegistry () |
| Returns the registry of provider source widget providers. | |
| static QgsStoredQueryManager * | storedQueryManager () |
| Returns the global stored SQL query manager. | |
| static QgsSubsetStringEditorProviderRegistry * | subsetStringEditorProviderRegistry () |
| Returns the registry of subset string editors of data providers. | |
| static QgsWindowManagerInterface * | windowManager () |
| Returns the global window manager, if set. | |
Static Public Attributes | |
| static QgsSettingsTreeNode * | sTtreeWidgetGeometry = QgsSettingsTree::sTreeApp->createChildNode( u"widget-geometry"_s ) |
| static QgsSettingsTreeNode * | sTtreeWidgetLastUsedValues = QgsSettingsTree::sTreeApp->createChildNode( u"widget-last-used-values"_s ) |
A singleton class containing various registry and other global members related to GUI classes.
| typedef QFlags< HigFlag > QgsGui::HigFlags |
| enum QgsGui::HigFlag |
|
delete |
|
override |
Definition at line 265 of file qgsgui.cpp.
|
static |
Returns the global advanced digitizing tools registry, used for registering advanced digitizing tools.
Definition at line 164 of file qgsgui.cpp.
|
static |
Returns true if python embedded in a project is currently allowed to be loaded.
If the global option is to ask user, a modal dialog will be shown.
| project | a pointer to the project. |
| messageBar | the message bar must be provided if a lambda method is used. |
Definition at line 397 of file qgsgui.cpp.
|
static |
Returns the global annotation item GUI registry, used for registering the GUI behavior of annotation items.
Definition at line 159 of file qgsgui.cpp.
|
static |
Returns the global code editor color scheme registry, used for registering the color schemes for QgsCodeEditor widgets.
Definition at line 179 of file qgsgui.cpp.
|
static |
Returns the global data item GUI provider registry, used for tracking providers which affect the browser GUI.
Definition at line 194 of file qgsgui.cpp.
|
static |
Returns the global editor widget registry, used for managing all known edit widget factories.
Definition at line 109 of file qgsgui.cpp.
|
static |
Register the widget to allow its position to be automatically saved and restored when open and closed.
Use this to avoid needing to call saveGeometry() and restoreGeometry() on your widget.
Definition at line 224 of file qgsgui.cpp.
|
static |
Returns the screen at the given global point (pixel).
Definition at line 312 of file qgsgui.cpp.
|
static |
Checks whether QWebEngineView is available to display HTML content.
Definition at line 490 of file qgsgui.cpp.
|
static |
|
static |
Returns the global history provider registry, used for tracking history providers.
Definition at line 214 of file qgsgui.cpp.
|
static |
Initializes callout widgets.
Definition at line 431 of file qgsgui.cpp.
|
static |
Initializes plot widgets.
Definition at line 461 of file qgsgui.cpp.
|
static |
Returns the global input controller manager.
Definition at line 238 of file qgsgui.cpp.
|
static |
Returns a pointer to the singleton instance.
Definition at line 93 of file qgsgui.cpp.
|
static |
Returns the global layer tree embedded widget registry, used for registering widgets that may be embedded into layer tree view.
Definition at line 144 of file qgsgui.cpp.
|
static |
Returns the global layout item GUI registry, used for registering the GUI behavior of layout items.
Definition at line 154 of file qgsgui.cpp.
|
static |
Returns the global map layer action registry, used for registering map layer actions.
Definition at line 149 of file qgsgui.cpp.
|
static |
Returns the registry of shape map tools.
Definition at line 119 of file qgsgui.cpp.
|
static |
Returns the global native interface, which offers abstraction to the host OS's underlying public interfaces.
Definition at line 99 of file qgsgui.cpp.
|
static |
Returns the global numeric format gui registry, used for registering the GUI widgets associated with QgsNumericFormats.
Definition at line 174 of file qgsgui.cpp.
|
signal |
This signal is emitted whenever the application options have been changed.
This signal is a "blanket" signal, and will be emitted whenever the options dialog has been accepted regardless of whether or not individual settings are changed. It is designed as a "last resort" fallback only, allowing widgets to respond to possible settings changes.
|
static |
Returns the global Processing favorite algorithm manager, used for tracking favorite Processing algorithms.
Definition at line 184 of file qgsgui.cpp.
|
static |
Returns the global processing gui registry, used for registering the GUI behavior of processing algorithms.
Definition at line 169 of file qgsgui.cpp.
|
static |
Returns the global processing recent algorithm log, used for tracking recently used processing algorithms.
Definition at line 189 of file qgsgui.cpp.
|
static |
Returns the global GUI-related project storage registry.
Definition at line 199 of file qgsgui.cpp.
|
static |
Returns the registry of GUI-related components of data providers.
Definition at line 204 of file qgsgui.cpp.
|
static |
Returns the global relation widget registry, used for managing all known relation widget factories.
Definition at line 114 of file qgsgui.cpp.
|
static |
Samples the color on screen at the specified global point (pixel).
Definition at line 297 of file qgsgui.cpp.
|
static |
Returns the registry of GUI-related components for sensors.
Definition at line 209 of file qgsgui.cpp.
|
static |
|
static |
Returns the gui's settings registry, used for managing gui settings.
Definition at line 104 of file qgsgui.cpp.
|
static |
Sets the global window manager.
Ownership is transferred to the QgsGui instance.
Definition at line 248 of file qgsgui.cpp.
|
static |
Returns the global shortcuts manager, used for managing a QAction and QShortcut sequences.
Definition at line 139 of file qgsgui.cpp.
|
static |
Returns the global source select provider registry, used for managing all known source select widget factories.
Definition at line 124 of file qgsgui.cpp.
|
static |
Returns the registry of provider source widget providers.
Definition at line 134 of file qgsgui.cpp.
|
static |
Returns the global stored SQL query manager.
Definition at line 243 of file qgsgui.cpp.
|
static |
Returns the registry of subset string editors of data providers.
Definition at line 129 of file qgsgui.cpp.
|
static |
Returns the global window manager, if set.
Definition at line 233 of file qgsgui.cpp.
|
inlinestatic |
|
inlinestatic |