1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsrelationwidgetregistry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsRelationWidgetRegistry
{
%Docstring(signature="appended")
Keeps track of the registered relations widgets. New widgets can be
registered, old ones deleted. The default
{:py:class:`QgsRelationEditorWidget`} is protected from removing.
.. versionadded:: 3.18
%End
%TypeHeaderCode
#include "qgsrelationwidgetregistry.h"
%End
public:
QgsRelationWidgetRegistry();
%Docstring
Constructor
%End
~QgsRelationWidgetRegistry();
void addRelationWidget( QgsAbstractRelationEditorWidgetFactory *widgetFactory /Transfer/ );
%Docstring
Adds a new registered relation ``widgetFactory``
%End
void removeRelationWidget( const QString &widgetType );
%Docstring
Removes a registered relation widget with given ``widgetType``
%End
QStringList relationWidgetNames() const;
%Docstring
Returns a list of names of registered relation widgets
%End
QMap<QString, QgsAbstractRelationEditorWidgetFactory *> factories() const;
%Docstring
Gets access to all registered factories
%End
QgsAbstractRelationEditorWidget *create( const QString &widgetType, const QVariantMap &config, QWidget *parent = 0 ) const /TransferBack/;
%Docstring
Create a relation widget of a given type for a given field.
:param widgetType: The widget type to create a relation editor for
:param config: The configuration of the widget
:param parent:
%End
QgsAbstractRelationEditorConfigWidget *createConfigWidget( const QString &widgetType, const QgsRelation &relation, QWidget *parent = 0 ) const /TransferBack/;
%Docstring
Creates a configuration widget
:param widgetType: The widget type to create a configuration widget for
:param relation: The relation for which this widget will be created
:param parent: The parent widget for the created widget
%End
void setDefaultWidgetType( const QString &widgetType );
%Docstring
Sets the default editor widget type. Does nothing if the provided widget
type is not present.
:param widgetType: The widget type to be used by default.
.. versionadded:: 3.20
%End
QString defaultWidgetType() const;
%Docstring
Returns the default editor widget type.
.. versionadded:: 3.20
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsrelationwidgetregistry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|