QGIS/python/gui/editorwidgets/qgsrelationreferencewidgetwrapper.sip

66 lines
2.4 KiB
Plaintext
Raw Normal View History

2017-05-08 08:36:06 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgsrelationreferencewidgetwrapper.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsRelationReferenceWidgetWrapper : QgsEditorWidgetWrapper
{
2017-05-08 08:36:06 +02:00
%Docstring
Wraps a relation reference widget.
Options:
<ul>
<li><b>ShowForm</b> <i>If True, an embedded form with the referenced feature will be shown.</i></li>
<li><b>MapIdentification</b> <i>Will offer a map tool to pick a referenced feature on the map canvas. Only use for layers with geometry.</i></li>
<li><b>ReadOnly</b> <i>If True, will represent the referenced widget in a read-only line edit. Can speed up loading.</i></li>
<li><b>AllowNULL</b> <i>Will offer NULL as a value.</i></li>
<li><b>Relation</b> <i>The ID of the relation that will be used to define this widget.</i></li>
ReadOnly
</ul>
%End
2017-05-08 08:36:06 +02:00
%TypeHeaderCode
#include "qgsrelationreferencewidgetwrapper.h"
%End
public:
2017-05-08 08:36:06 +02:00
explicit QgsRelationReferenceWidgetWrapper( QgsVectorLayer *vl,
int fieldIdx,
2017-05-08 08:36:06 +02:00
QWidget *editor,
QgsMapCanvas *canvas,
QgsMessageBar *messageBar,
QWidget *parent /TransferThis/ = 0 );
virtual QWidget *createWidget( QWidget *parent );
virtual void initWidget( QWidget *editor );
2017-05-08 08:36:06 +02:00
virtual QVariant value() const;
virtual bool valid() const;
virtual void showIndeterminateState();
public slots:
virtual void setValue( const QVariant &value );
virtual void setEnabled( bool enabled );
2016-05-09 14:46:51 +02:00
protected:
virtual void updateConstraintWidgetStatus();
2017-05-08 08:36:06 +02:00
};
2017-05-08 08:36:06 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgsrelationreferencewidgetwrapper.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/