24 #include "qgslayoutitemguiregistry.h" 25 #include "qgslayoutviewrubberband.h" 27 #include "qgsmacnative.h" 29 #include "qgsnative.h" 49 return instance()->mEditorWidgetRegistry;
54 return instance()->mSourceSelectProviderRegistry;
59 return instance()->mShortcutsManager;
64 return instance()->mLayerTreeEmbeddedWidgetRegistry;
69 return instance()->mMapLayerActionRegistry;
74 return instance()->mLayoutItemGuiRegistry;
79 return instance()->mProcessingGuiRegistry;
84 if ( widget->objectName().isEmpty() )
86 QgsDebugMsg(
"WARNING: No object name set. Best for it to be set objectName when using QgsGui::enableAutoGeometryRestore" );
93 delete mProcessingGuiRegistry;
94 delete mLayoutItemGuiRegistry;
95 delete mLayerTreeEmbeddedWidgetRegistry;
96 delete mEditorWidgetRegistry;
97 delete mMapLayerActionRegistry;
98 delete mSourceSelectProviderRegistry;
99 delete mShortcutsManager;
101 delete mWidgetStateHelper;
107 mNative =
new QgsMacNative();
109 mNative =
new QgsNative();
117 mLayoutItemGuiRegistry =
new QgsLayoutItemGuiRegistry();
static QgsProcessingGuiRegistry * processingGuiRegistry()
Returns the global processing gui registry, used for registering the GUI behavior of processing algor...
static QgsNative * nativePlatformInterface()
Returns the global native interface, which offers abstraction to the host OS's underlying public inte...
QgsGui is a singleton class containing various registry and other global members related to GUI class...
static QgsSourceSelectProviderRegistry * sourceSelectProviderRegistry()
Returns the global source select provider registry, used for managing all known source select widget ...
Shortcuts manager is a class that contains a list of QActions and QShortcuts that have been registere...
The QgsProcessingGuiRegistry is a home for widgets for processing configuration widgets.
static QgsGui * instance()
Returns a pointer to the singleton instance.
QgsGui(const QgsGui &other)=delete
QgsGui cannot be copied.
static QgsShortcutsManager * shortcutsManager()
Returns the global shortcuts manager, used for managing a QAction and QShortcut sequences.
static QgsLayoutItemGuiRegistry * layoutItemGuiRegistry()
Returns the global layout item GUI registry, used for registering the GUI behavior of layout items...
static QgsLayerTreeEmbeddedWidgetRegistry * layerTreeEmbeddedWidgetRegistry()
Returns the global layer tree embedded widget registry, used for registering widgets that may be embe...
static QgsEditorWidgetRegistry * editorWidgetRegistry()
Returns the global editor widget registry, used for managing all known edit widget factories...
This class tracks map layer actions.
This class keeps a list of source select providers that may add items to the QgsDataSourceManagerDial...
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 QgsMapLayerActionRegistry * mapLayerActionRegistry()
Returns the global map layer action registry, used for registering map layer actions.