24 #include "qgslayoutitemguiregistry.h" 25 #include "qgslayoutviewrubberband.h" 27 #include "qgsmacnative.h" 29 #include "qgsnative.h" 48 return instance()->mEditorWidgetRegistry;
53 return instance()->mSourceSelectProviderRegistry;
58 return instance()->mShortcutsManager;
63 return instance()->mLayerTreeEmbeddedWidgetRegistry;
68 return instance()->mMapLayerActionRegistry;
73 return instance()->mLayoutItemGuiRegistry;
78 if ( widget->objectName().isEmpty() )
80 QgsDebugMsg(
"WARNING: No object name set. Best for it to be set objectName when using QgsGui::enableAutoGeometryRestore" );
87 delete mLayoutItemGuiRegistry;
88 delete mLayerTreeEmbeddedWidgetRegistry;
89 delete mEditorWidgetRegistry;
90 delete mMapLayerActionRegistry;
91 delete mSourceSelectProviderRegistry;
92 delete mShortcutsManager;
94 delete mWidgetStateHelper;
100 mNative =
new QgsMacNative();
102 mNative =
new QgsNative();
110 mLayoutItemGuiRegistry =
new QgsLayoutItemGuiRegistry();
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...
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.