mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-18 00:06:00 -04:00
136 lines
3.6 KiB
Plaintext
136 lines
3.6 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/editorwidgets/qgsrelationwidgetwrapper.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class QgsRelationWidgetWrapper : QgsWidgetWrapper
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsrelationwidgetwrapper.h"
|
|
%End
|
|
public:
|
|
|
|
explicit QgsRelationWidgetWrapper( QgsVectorLayer *vl, const QgsRelation &relation, QWidget *editor = 0, QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsRelationWidgetWrapper
|
|
%End
|
|
|
|
bool showLabel() const;
|
|
%Docstring
|
|
Defines if a title label should be shown for this widget.
|
|
Only has an effect after widget() has been called at least once.
|
|
|
|
.. versionadded:: 2.18
|
|
%End
|
|
|
|
void setShowLabel( bool showLabel );
|
|
%Docstring
|
|
Defines if a title label should be shown for this widget.
|
|
Only has an effect after widget() has been called at least once.
|
|
|
|
.. versionadded:: 2.18
|
|
%End
|
|
|
|
bool showLinkButton() const;
|
|
%Docstring
|
|
Determines if the "link feature" button should be shown
|
|
|
|
.. versionadded:: 2.18
|
|
%End
|
|
|
|
void setShowLinkButton( bool showLinkButton );
|
|
%Docstring
|
|
Determines if the "link feature" button should be shown
|
|
|
|
.. versionadded:: 2.18
|
|
%End
|
|
|
|
bool showSaveChildEditsButton() const;
|
|
%Docstring
|
|
Determines if the "save child layer edits" button should be shown
|
|
|
|
.. versionadded:: 3.14
|
|
%End
|
|
|
|
void setShowSaveChildEditsButton( bool showSaveChildEditsButton );
|
|
%Docstring
|
|
Determines if the "save child layer edits" button should be shown
|
|
|
|
.. versionadded:: 3.14
|
|
%End
|
|
|
|
bool showUnlinkButton() const;
|
|
%Docstring
|
|
Determines if the "unlink feature" button should be shown
|
|
|
|
.. versionadded:: 2.18
|
|
%End
|
|
|
|
void setShowUnlinkButton( bool showUnlinkButton );
|
|
%Docstring
|
|
Determines if the "unlink feature" button should be shown
|
|
|
|
.. versionadded:: 2.18
|
|
%End
|
|
|
|
QgsRelation relation() const;
|
|
%Docstring
|
|
The relation for which this wrapper is created.
|
|
|
|
.. versionadded:: 3.0
|
|
%End
|
|
|
|
void widgetValueChanged( const QString &attribute, const QVariant &newValue, bool attributeChanged );
|
|
%Docstring
|
|
Will be called when a value in the current edited form or table row
|
|
changes
|
|
|
|
Forward the signal to the embedded form
|
|
|
|
:param attribute: The name of the attribute that changed.
|
|
:param newValue: The new value of the attribute.
|
|
:param attributeChanged: If ``True``, it corresponds to an actual change of the feature attribute
|
|
|
|
.. versionadded:: 3.14
|
|
%End
|
|
|
|
|
|
protected:
|
|
virtual QWidget *createWidget( QWidget *parent );
|
|
|
|
virtual void initWidget( QWidget *editor );
|
|
|
|
virtual bool valid() const;
|
|
|
|
|
|
public slots:
|
|
virtual void setFeature( const QgsFeature &feature );
|
|
|
|
|
|
void setVisible( bool visible );
|
|
%Docstring
|
|
Sets the visibility of the wrapper's widget.
|
|
|
|
:param visible: set to ``True`` to show widget, ``False`` to hide widget
|
|
|
|
.. versionadded:: 2.16
|
|
%End
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/editorwidgets/qgsrelationwidgetwrapper.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|