Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
3,240 additions
and 161 deletions.
- +32 −2 python/core/auto_generated/qgsattributeeditorelement.sip.in
- +4 −0 python/gui/auto_additions/qgsbasicrelationwidget.py
- +36 −3 python/gui/auto_generated/editorwidgets/qgsrelationwidgetwrapper.sip.in
- +110 −0 python/gui/auto_generated/qgsbasicrelationwidget.sip.in
- +7 −0 python/gui/auto_generated/qgsgui.sip.in
- +77 −0 python/gui/auto_generated/qgsrelationconfigwidget.sip.in
- +226 −0 python/gui/auto_generated/qgsrelationwidget.sip.in
- +75 −0 python/gui/auto_generated/qgsrelationwidgetfactory.sip.in
- +81 −0 python/gui/auto_generated/qgsrelationwidgetregistry.sip.in
- +5 −0 python/gui/gui_auto.sip
- +28 −1 src/core/qgsattributeeditorelement.cpp
- +30 −2 src/core/qgsattributeeditorelement.h
- +34 −12 src/core/qgseditformconfig.cpp
- +14 −0 src/gui/CMakeLists.txt
- +36 −19 src/gui/attributeformconfig/qgsattributewidgetedit.cpp
- +4 −0 src/gui/attributeformconfig/qgsattributewidgetedit.h
- +42 −27 src/gui/editorwidgets/qgsrelationwidgetwrapper.cpp
- +35 −5 src/gui/editorwidgets/qgsrelationwidgetwrapper.h
- +8 −3 src/gui/qgsattributeform.cpp
- +1 −0 src/gui/qgsattributeform.h
- +57 −0 src/gui/qgsbasicrelationconfigwidget.cpp
- +62 −0 src/gui/qgsbasicrelationconfigwidget.h
- +558 −0 src/gui/qgsbasicrelationwidget.cpp
- +172 −0 src/gui/qgsbasicrelationwidget.h
- +46 −0 src/gui/qgsbasicrelationwidgetfactory.cpp
- +48 −0 src/gui/qgsbasicrelationwidgetfactory.h
- +8 −0 src/gui/qgsgui.cpp
- +8 −0 src/gui/qgsgui.h
- +37 −0 src/gui/qgsrelationconfigwidget.cpp
- +87 −0 src/gui/qgsrelationconfigwidget.h
- +595 −0 src/gui/qgsrelationwidget.cpp
- +260 −0 src/gui/qgsrelationwidget.h
- +24 −0 src/gui/qgsrelationwidgetfactory.cpp
- +80 −0 src/gui/qgsrelationwidgetfactory.h
- +78 −0 src/gui/qgsrelationwidgetregistry.cpp
- +90 −0 src/gui/qgsrelationwidgetregistry.h
- +19 −6 src/gui/vector/qgsattributesformproperties.cpp
- +6 −1 src/gui/vector/qgsattributesformproperties.h
- +50 −80 src/ui/attributeformconfig/qgsattributewidgetrelationeditwidget.ui
- +70 −0 src/ui/qgsrelationeditorconfigwidgetbase.ui
@@ -0,0 +1,4 @@ | ||
# The following has been generated automatically from src/gui/qgsbasicrelationwidget.h | ||
QgsBasicRelationWidget.Button.baseClass = QgsBasicRelationWidget | ||
QgsBasicRelationWidget.Buttons.baseClass = QgsBasicRelationWidget | ||
Buttons = QgsBasicRelationWidget # dirty hack since SIP seems to introduce the flags in module |
@@ -0,0 +1,110 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsbasicrelationwidget.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
|
||
class QgsBasicRelationWidget : QgsRelationWidget | ||
{ | ||
%Docstring | ||
The default relation widget in QGIS. Successor of the now deprecated {:py:class:`QgsRelationEditorWidget`}. | ||
|
||
.. versionadded:: 3.18 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsbasicrelationwidget.h" | ||
%End | ||
public: | ||
|
||
enum Button | ||
{ | ||
Link, | ||
Unlink, | ||
SaveChildEdits, | ||
AddChildFeature, | ||
DuplicateChildFeature, | ||
DeleteChildFeature, | ||
ZoomToChildFeature, | ||
AllButtons | ||
}; | ||
typedef QFlags<QgsBasicRelationWidget::Button> Buttons; | ||
|
||
|
||
QgsBasicRelationWidget( const QVariantMap &config, QWidget *parent /TransferThis/ = 0 ); | ||
%Docstring | ||
Constructor | ||
|
||
:param config: widget configuration | ||
:param parent: parent widget | ||
%End | ||
|
||
void setViewMode( QgsDualView::ViewMode mode ); | ||
%Docstring | ||
Define the view mode for the dual view | ||
%End | ||
|
||
QgsDualView::ViewMode viewMode(); | ||
%Docstring | ||
Gets the view mode for the dual view | ||
%End | ||
|
||
void setEditorContext( const QgsAttributeEditorContext &context ); | ||
%Docstring | ||
Sets the editor ``context`` | ||
|
||
.. note:: | ||
|
||
if context cadDockWidget is null, it won't be possible to digitize | ||
the geometry of a referencing feature from this widget | ||
%End | ||
|
||
void setVisibleButtons( const Buttons &buttons ); | ||
%Docstring | ||
Defines the buttons which are shown | ||
%End | ||
|
||
Buttons visibleButtons() const; | ||
%Docstring | ||
Returns the buttons which are shown | ||
%End | ||
|
||
virtual QVariantMap config() const; | ||
|
||
%Docstring | ||
Returns the current configuration | ||
%End | ||
|
||
virtual void setConfig( const QVariantMap &config ); | ||
|
||
%Docstring | ||
Defines the current configuration | ||
%End | ||
|
||
virtual void setTitle( const QString &title ); | ||
|
||
%Docstring | ||
Sets the title of the root groupbox | ||
%End | ||
|
||
public slots: | ||
virtual void parentFormValueChanged( const QString &attribute, const QVariant &newValue ); | ||
|
||
|
||
}; | ||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsbasicrelationwidget.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
@@ -0,0 +1,77 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsrelationconfigwidget.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
class QgsRelationConfigWidget : QWidget | ||
{ | ||
%Docstring | ||
This class should be subclassed for every configurable relation widget type. | ||
|
||
It implements the GUI configuration widget and transforms this to/from a configuration. | ||
|
||
It will only be instantiated by {:py:class:`QgsRelationWidgetFactory`} | ||
|
||
.. versionadded:: 3.18 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsrelationconfigwidget.h" | ||
%End | ||
public: | ||
|
||
explicit QgsRelationConfigWidget( const QgsRelation &relation, QWidget *parent /TransferThis/ ); | ||
%Docstring | ||
Create a new configuration widget | ||
|
||
:param relation: The relation for which the configuration dialog will be created | ||
:param parent: A parent widget | ||
%End | ||
|
||
virtual QVariantMap config() = 0; | ||
%Docstring | ||
Create a configuration from the current GUI state | ||
|
||
:return: A widget configuration | ||
%End | ||
|
||
virtual void setConfig( const QVariantMap &config ) = 0; | ||
%Docstring | ||
Update the configuration widget to represent the given configuration. | ||
|
||
:param config: The configuration which should be represented by this widget | ||
%End | ||
|
||
QgsVectorLayer *layer(); | ||
%Docstring | ||
Returns the layer for which this configuration widget applies | ||
|
||
:return: The layer | ||
%End | ||
|
||
QgsRelation relation() const; | ||
%Docstring | ||
Returns the relation for which this configuration widget applies | ||
|
||
:return: The relation | ||
%End | ||
|
||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsrelationconfigwidget.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
Oops, something went wrong.