Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #4514 from nyalldawson/gui_instance
Make a new global QgsGui singleton
- Loading branch information
Showing
with
650 additions
and 431 deletions.
- +1 −1 cmake/FindQGIS.cmake
- +22 −3 doc/api_break.dox
- +8 −11 python/gui/editorwidgets/core/qgseditorwidgetregistry.sip
- +1 −0 python/gui/gui.sip
- +1 −6 python/gui/layertree/qgslayertreeembeddedwidgetregistry.sip
- +1 −1 python/gui/qgsbusyindicatordialog.sip
- +1 −1 python/gui/qgscharacterselectdialog.sip
- +1 −1 python/gui/qgscolordialog.sip
- +1 −1 python/gui/qgscredentialdialog.sip
- +1 −1 python/gui/qgsdialog.sip
- +2 −2 python/gui/qgserrordialog.sip
- +1 −1 python/gui/qgsgroupwmsdatadialog.sip
- +70 −0 python/gui/qgsgui.sip
- +1 −1 python/gui/qgsludialog.sip
- +2 −6 python/gui/qgsmaplayeractionregistry.sip
- +1 −1 python/gui/qgsmessagelogviewer.sip
- +1 −1 python/gui/qgsmessageviewer.sip
- +1 −1 python/gui/qgsnewgeopackagelayerdialog.sip
- +1 −1 python/gui/qgsnewhttpconnection.sip
- +1 −1 python/gui/qgsnewmemorylayerdialog.sip
- +1 −1 python/gui/qgsnewnamedialog.sip
- +1 −1 python/gui/qgsnewvectorlayerdialog.sip
- +1 −1 python/gui/qgsowssourceselect.sip
- +1 −1 python/gui/qgsprojectionselectiondialog.sip
- +1 −1 python/gui/qgsquerybuilder.sip
- +1 −1 python/gui/qgssearchquerybuilder.sip
- +0 −3 python/gui/qgsshortcutsmanager.sip
- +1 −1 python/gui/qgstextformatwidget.sip
- +1 −1 python/gui/symbology-ng/qgssvgselectorwidget.sip
- +2 −2 src/app/composer/qgscomposer.cpp
- +3 −3 src/app/composer/qgscomposerattributetablewidget.cpp
- +2 −2 src/app/composer/qgscomposerlabelwidget.cpp
- +5 −5 src/app/composer/qgscomposerlegendwidget.cpp
- +1 −1 src/app/composer/qgscomposermapgridwidget.cpp
- +1 −1 src/app/composer/qgscomposermapwidget.cpp
- +2 −2 src/app/composer/qgscomposerscalebarwidget.cpp
- +2 −2 src/app/ogr/qgsnewogrconnection.h
- +1 −1 src/app/ogr/qgsopenvectorlayerdialog.cpp
- +5 −5 src/app/ogr/qgsvectorlayersaveasdialog.cpp
- +2 −2 src/app/pluginmanager/qgspluginmanager.h
- +21 −20 src/app/qgisapp.cpp
- +3 −2 src/app/qgisappinterface.cpp
- +3 −3 src/app/qgsaddattrdialog.h
- +1 −1 src/app/qgsaddtaborgroup.h
- +4 −3 src/app/qgsattributetabledialog.cpp
- +3 −2 src/app/qgsattributetypedialog.cpp
- +2 −2 src/app/qgsdecorationgriddialog.cpp
- +2 −2 src/app/qgsdiagramproperties.cpp
- +4 −3 src/app/qgsfieldsproperties.cpp
- +2 −2 src/app/qgshandlebadlayers.cpp
- +7 −6 src/app/qgsidentifyresultsdialog.cpp
- +1 −1 src/app/qgsloadstylefromdbdialog.h
- +2 −2 src/app/qgsmapcanvasdockwidget.cpp
- +3 −2 src/app/qgsmaptoolfeatureaction.cpp
- +3 −2 src/app/qgsmergeattributesdialog.cpp
- +2 −2 src/app/qgsnewspatialitelayerdialog.h
- +2 −2 src/app/qgsoptions.cpp
- +2 −2 src/app/qgsoptions.h
- +4 −3 src/app/qgsprojectproperties.cpp
- +2 −2 src/app/qgsprojectproperties.h
- +2 −2 src/app/qgsrasterlayerproperties.h
- +1 −1 src/app/qgssavestyletodbdialog.h
- +3 −3 src/app/qgsstatusbarmagnifierwidget.cpp
- +2 −2 src/app/qgsvectorlayerproperties.h
- +0 −1 src/core/qgscoordinatereferencesystem.h
- +4 −2 src/gui/CMakeLists.txt
- +2 −2 src/gui/attributetable/qgsattributetabledelegate.cpp
- +3 −3 src/gui/attributetable/qgsattributetablemodel.cpp
- +4 −3 src/gui/attributetable/qgsattributetableview.cpp
- +3 −2 src/gui/attributetable/qgsdualview.cpp
- +2 −1 src/gui/editorwidgets/core/qgseditorwidgetautoconf.cpp
- +16 −24 src/gui/editorwidgets/core/qgseditorwidgetregistry.cpp
- +8 −10 src/gui/editorwidgets/core/qgseditorwidgetregistry.h
- +5 −5 src/gui/layertree/qgslayertreeembeddedconfigwidget.cpp
- +0 −7 src/gui/layertree/qgslayertreeembeddedwidgetregistry.cpp
- +10 −4 src/gui/layertree/qgslayertreeembeddedwidgetregistry.h
- +2 −1 src/gui/layertree/qgslayertreeview.cpp
- +3 −2 src/gui/qgsactionmenu.cpp
- +9 −8 src/gui/qgsattributeform.cpp
- +3 −2 src/gui/qgsattributeformeditorwidget.cpp
- +2 −2 src/gui/qgsbusyindicatordialog.h
- +2 −2 src/gui/qgscharacterselectdialog.h
- +1 −1 src/gui/qgscolordialog.h
- +1 −1 src/gui/qgscompoundcolorwidget.h
- +2 −1 src/gui/qgsconfigureshortcutsdialog.cpp
- +2 −2 src/gui/qgscredentialdialog.h
- +2 −2 src/gui/qgsdialog.h
- +3 −3 src/gui/qgserrordialog.h
- +2 −1 src/gui/qgsformannotation.cpp
- +2 −2 src/gui/qgsgroupwmsdatadialog.h
- +64 −0 src/gui/qgsgui.cpp
- +86 −0 src/gui/qgsgui.h
- +3 −3 src/gui/{qgisgui.cpp → qgsguiutils.cpp}
- +8 −8 src/gui/{qgisgui.h → qgsguiutils.h}
- +5 −6 src/gui/qgsidentifymenu.cpp
- +1 −1 src/gui/qgsidentifymenu.h
- +2 −2 src/gui/qgsludialog.h
- +2 −2 src/gui/qgsmapcanvas.cpp
- +2 −15 src/gui/qgsmaplayeractionregistry.cpp
- +12 −7 src/gui/qgsmaplayeractionregistry.h
- +1 −1 src/gui/qgsmessagebar.h
- +2 −2 src/gui/qgsmessagelogviewer.h
- +2 −2 src/gui/qgsmessageviewer.h
- +2 −2 src/gui/qgsnewgeopackagelayerdialog.h
- +2 −2 src/gui/qgsnewhttpconnection.h
- +2 −2 src/gui/qgsnewmemorylayerdialog.h
- +1 −1 src/gui/qgsnewnamedialog.h
- +2 −2 src/gui/qgsnewvectorlayerdialog.h
- +1 −1 src/gui/qgsoptionsdialogbase.h
- +2 −2 src/gui/qgsowssourceselect.h
- +2 −2 src/gui/qgsprojectionselectiondialog.h
- +2 −2 src/gui/qgsquerybuilder.h
- +2 −2 src/gui/qgssearchquerybuilder.h
- +0 −10 src/gui/qgsshortcutsmanager.cpp
- +4 −5 src/gui/qgsshortcutsmanager.h
- +2 −2 src/gui/qgssqlcomposerdialog.h
- +2 −2 src/gui/qgstextformatwidget.h
- +2 −2 src/gui/raster/qgsrasterhistogramwidget.cpp
- +1 −1 src/gui/symbology-ng/qgspointclusterrendererwidget.cpp
- +2 −2 src/gui/symbology-ng/qgspointdisplacementrendererwidget.cpp
- +2 −2 src/gui/symbology-ng/qgssvgselectorwidget.h
- +1 −1 src/plugins/compass/qgscompassplugin.cpp
- +1 −1 src/plugins/coordinate_capture/coordinatecapture.cpp
- +3 −3 src/plugins/evis/evis.cpp
- +2 −2 src/plugins/globe/globe_plugin.cpp
- +2 −2 src/plugins/gps_importer/qgsgpsdevicedialog.cpp
- +2 −2 src/plugins/gps_importer/qgsgpsplugin.cpp
- +3 −3 src/plugins/offline_editing/offline_editing_plugin.cpp
- +2 −2 src/plugins/plugin_template/plugin.cpp
- +1 −1 src/plugins/topology/topol.cpp
- +2 −2 src/providers/db2/qgsdb2newconnection.h
- +2 −2 src/providers/db2/qgsdb2sourceselect.h
- +2 −2 src/providers/delimitedtext/qgsdelimitedtextsourceselect.h
- +2 −2 src/providers/mssql/qgsmssqlnewconnection.h
- +2 −2 src/providers/mssql/qgsmssqlsourceselect.h
- +2 −2 src/providers/oracle/qgsoraclenewconnection.h
- +2 −2 src/providers/oracle/qgsoraclesourceselect.h
- +2 −2 src/providers/postgres/qgspgnewconnection.h
- +2 −2 src/providers/postgres/qgspgsourceselect.h
- +2 −2 src/providers/spatialite/qgsspatialitesourceselect.h
- +2 −2 src/providers/virtual/qgsvirtuallayersourceselect.h
- +2 −2 src/providers/wcs/qgswcssourceselect.h
- +2 −2 src/providers/wms/qgswmssourceselect.h
- +1 −1 src/providers/wms/qgswmtsdimensions.h
- +2 −1 src/server/qgsserver.cpp
- +2 −1 src/server/qgsserverprojectparser.cpp
- +2 −1 src/server/services/wms/qgswmsrenderer.cpp
- +2 −1 tests/src/app/testqgsvectorlayersaveasdialog.cpp
- +2 −1 tests/src/gui/testqgsattributeform.cpp
- +2 −1 tests/src/gui/testqgsdualview.cpp
- +8 −8 tests/src/gui/testqgseditorwidgetregistry.cpp
- +3 −3 tests/src/gui/testqgsgui.cpp
- +1 −1 tests/src/gui/testqgsmaptooledit.cpp
- +10 −10 tests/src/python/acceptable_missing_doc.py
- +4 −4 tests/src/python/test_provider_postgres.py
- +2 −2 tests/src/python/test_qgsattributeformeditorwidget.py
- +2 −2 tests/src/python/test_qgsattributetablemodel.py
- +5 −5 tests/src/python/test_qgseditwidgets.py
- +3 −3 tests/src/python/test_qgsrangewidgets.py
- +2 −2 tests/src/python/test_qgsrelationeditwidget.py
- +4 −4 tests/src/python/test_qgsshortcutsmanager.py
@@ -0,0 +1,70 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsgui.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsGui | ||
{ | ||
%Docstring | ||
QgsGui is a singleton class containing various registry and other global members | ||
related to GUI classes. | ||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsgui.h" | ||
%End | ||
public: | ||
|
||
|
||
|
||
static QgsGui *instance(); | ||
%Docstring | ||
Returns a pointer to the singleton instance. | ||
:rtype: QgsGui | ||
%End | ||
|
||
static QgsEditorWidgetRegistry *editorWidgetRegistry(); | ||
%Docstring | ||
Returns the global editor widget registry, used for managing all known edit widget factories. | ||
:rtype: QgsEditorWidgetRegistry | ||
%End | ||
|
||
static QgsShortcutsManager *shortcutsManager(); | ||
%Docstring | ||
Returns the global shortcuts manager, used for managing a QAction and QShortcut sequences. | ||
:rtype: QgsShortcutsManager | ||
%End | ||
|
||
static QgsLayerTreeEmbeddedWidgetRegistry *layerTreeEmbeddedWidgetRegistry(); | ||
%Docstring | ||
Returns the global layer tree embedded widget registry, used for registering widgets that may be embedded into layer tree view. | ||
:rtype: QgsLayerTreeEmbeddedWidgetRegistry | ||
%End | ||
|
||
static QgsMapLayerActionRegistry *mapLayerActionRegistry(); | ||
%Docstring | ||
Returns the global map layer action registry, used for registering map layer actions. | ||
:rtype: QgsMapLayerActionRegistry | ||
%End | ||
|
||
~QgsGui(); | ||
|
||
private: | ||
QgsGui( const QgsGui &other ); | ||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsgui.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
Oops, something went wrong.