2017-05-07 17:59:12 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsgui.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-05-28 09:46:32 +10:00
|
|
|
class QgsGui : QObject
|
2017-05-07 17:59:12 +10:00
|
|
|
{
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
QgsGui is a singleton class containing various registry and other global members
|
|
|
|
related to GUI classes.
|
|
|
|
|
2017-05-07 17:59:12 +10:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsgui.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2019-05-28 09:46:32 +10:00
|
|
|
enum ProjectCrsBehavior
|
|
|
|
{
|
|
|
|
UseCrsOfFirstLayerAdded,
|
|
|
|
UsePresetCrs,
|
|
|
|
};
|
|
|
|
|
2017-05-07 17:59:12 +10:00
|
|
|
|
|
|
|
|
|
|
|
static QgsGui *instance();
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns a pointer to the singleton instance.
|
2017-05-07 17:59:12 +10:00
|
|
|
%End
|
|
|
|
|
2017-05-15 09:56:52 +10:00
|
|
|
|
2019-02-06 11:53:00 +01:00
|
|
|
static QgsEditorWidgetRegistry *editorWidgetRegistry() /KeepReference/;
|
2017-05-07 17:59:12 +10:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the global editor widget registry, used for managing all known edit widget factories.
|
2017-05-07 17:59:12 +10:00
|
|
|
%End
|
|
|
|
|
2019-02-06 11:53:00 +01:00
|
|
|
static QgsSourceSelectProviderRegistry *sourceSelectProviderRegistry() /KeepReference/;
|
2017-09-04 08:00:14 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the global source select provider registry, used for managing all known source select widget factories.
|
2017-09-04 08:00:14 +02:00
|
|
|
%End
|
|
|
|
|
2017-05-07 18:08:31 +10:00
|
|
|
static QgsShortcutsManager *shortcutsManager();
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the global shortcuts manager, used for managing a QAction and QShortcut sequences.
|
2017-05-07 18:08:31 +10:00
|
|
|
%End
|
|
|
|
|
2019-02-06 11:53:00 +01:00
|
|
|
static QgsLayerTreeEmbeddedWidgetRegistry *layerTreeEmbeddedWidgetRegistry() /KeepReference/;
|
2017-05-07 18:15:55 +10:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the global layer tree embedded widget registry, used for registering widgets that may be embedded into layer tree view.
|
2017-05-07 18:15:55 +10:00
|
|
|
%End
|
|
|
|
|
2019-02-06 11:53:00 +01:00
|
|
|
static QgsMapLayerActionRegistry *mapLayerActionRegistry() /KeepReference/;
|
2017-05-07 20:34:03 +10:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the global map layer action registry, used for registering map layer actions.
|
2017-05-07 20:34:03 +10:00
|
|
|
%End
|
|
|
|
|
2019-02-06 11:53:00 +01:00
|
|
|
static QgsLayoutItemGuiRegistry *layoutItemGuiRegistry() /KeepReference/;
|
2017-07-07 12:17:37 +10:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the global layout item GUI registry, used for registering the GUI behavior of layout items.
|
2017-07-07 12:17:37 +10:00
|
|
|
%End
|
|
|
|
|
2019-02-06 11:53:00 +01:00
|
|
|
static QgsProcessingGuiRegistry *processingGuiRegistry() /KeepReference/;
|
2018-04-09 07:53:34 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the global processing gui registry, used for registering the GUI behavior of processing algorithms.
|
|
|
|
|
|
|
|
.. versionadded:: 3.2
|
2018-07-04 16:03:49 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
static QgsProcessingRecentAlgorithmLog *processingRecentAlgorithmLog();
|
|
|
|
%Docstring
|
|
|
|
Returns the global processing recent algorithm log, used for tracking recently used processing algorithms.
|
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
2018-10-27 10:38:06 +10:00
|
|
|
%End
|
|
|
|
|
2019-02-06 11:53:00 +01:00
|
|
|
static QgsDataItemGuiProviderRegistry *dataItemGuiProviderRegistry() /KeepReference/;
|
2018-10-27 10:38:06 +10:00
|
|
|
%Docstring
|
|
|
|
Returns the global data item GUI provider registry, used for tracking providers which affect the browser
|
|
|
|
GUI.
|
|
|
|
|
|
|
|
.. versionadded:: 3.6
|
2018-04-09 07:53:34 +02:00
|
|
|
%End
|
2018-04-07 11:13:14 +02:00
|
|
|
|
2017-12-04 13:41:42 +10:00
|
|
|
static void enableAutoGeometryRestore( QWidget *widget, const QString &key = QString() );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
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.
|
2018-09-14 10:47:35 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
static QgsWindowManagerInterface *windowManager();
|
|
|
|
%Docstring
|
|
|
|
Returns the global window manager, if set.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`setWindowManager`
|
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
static void setWindowManager( QgsWindowManagerInterface *manager /Transfer/ );
|
|
|
|
%Docstring
|
|
|
|
Sets the global window ``manager``. Ownership is transferred to the QgsGui instance.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`windowManager`
|
|
|
|
|
2018-10-24 18:23:12 +02:00
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
enum HigFlag
|
|
|
|
{
|
|
|
|
HigMenuTextIsTitleCase,
|
|
|
|
HigDialogTitleIsTitleCase
|
|
|
|
};
|
|
|
|
typedef QFlags<QgsGui::HigFlag> HigFlags;
|
|
|
|
|
|
|
|
|
|
|
|
static QgsGui::HigFlags higFlags();
|
|
|
|
%Docstring
|
2018-10-26 07:19:50 +10:00
|
|
|
Returns the platform's HIG flags.
|
2018-10-24 18:23:12 +02:00
|
|
|
|
2018-09-14 10:47:35 +10:00
|
|
|
.. versionadded:: 3.4
|
2017-12-04 13:41:42 +10:00
|
|
|
%End
|
|
|
|
|
2017-05-07 17:59:12 +10:00
|
|
|
~QgsGui();
|
|
|
|
|
|
|
|
private:
|
|
|
|
QgsGui( const QgsGui &other );
|
|
|
|
};
|
|
|
|
|
2018-10-24 18:23:12 +02:00
|
|
|
QFlags<QgsGui::HigFlag> operator|(QgsGui::HigFlag f1, QFlags<QgsGui::HigFlag> f2);
|
|
|
|
|
|
|
|
|
2017-05-07 17:59:12 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsgui.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|