Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Make a new global QgsGui singleton
Move QgsEditorWidgetRegistry from being a singleton itself to instead being a member of the QgsGui singleton
- Loading branch information
Showing
with
278 additions
and 117 deletions.
- +4 −3 doc/api_break.dox
- +0 −9 python/gui/editorwidgets/core/qgseditorwidgetregistry.sip
- +1 −0 python/gui/gui.sip
- +53 −0 python/gui/qgsgui.sip
- +5 −5 src/app/ogr/qgsvectorlayersaveasdialog.cpp
- +3 −2 src/app/qgisapp.cpp
- +4 −3 src/app/qgsattributetabledialog.cpp
- +3 −2 src/app/qgsattributetypedialog.cpp
- +4 −3 src/app/qgsfieldsproperties.cpp
- +5 −4 src/app/qgsidentifyresultsdialog.cpp
- +3 −2 src/app/qgsmergeattributesdialog.cpp
- +2 −0 src/gui/CMakeLists.txt
- +2 −2 src/gui/attributetable/qgsattributetabledelegate.cpp
- +3 −3 src/gui/attributetable/qgsattributetablemodel.cpp
- +2 −1 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
- +9 −8 src/gui/qgsattributeform.cpp
- +3 −2 src/gui/qgsattributeformeditorwidget.cpp
- +2 −1 src/gui/qgsformannotation.cpp
- +40 −0 src/gui/qgsgui.cpp
- +66 −0 src/gui/qgsgui.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
- +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
@@ -0,0 +1,53 @@ | ||
/************************************************************************ | ||
* 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. | ||
.. versionadded:: 3.0 | ||
:rtype: QgsEditorWidgetRegistry | ||
%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.