QGIS/python/gui/editorwidgets/qgsrelationreferencewidgetwrapper.sip
2017-05-09 08:59:07 +02:00

66 lines
2.4 KiB
Plaintext

/************************************************************************
* 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
{
%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
%TypeHeaderCode
#include "qgsrelationreferencewidgetwrapper.h"
%End
public:
explicit QgsRelationReferenceWidgetWrapper( QgsVectorLayer *vl,
int fieldIdx,
QWidget *editor,
QgsMapCanvas *canvas,
QgsMessageBar *messageBar,
QWidget *parent /TransferThis/ = 0 );
virtual QWidget *createWidget( QWidget *parent );
virtual void initWidget( QWidget *editor );
virtual QVariant value() const;
virtual bool valid() const;
virtual void showIndeterminateState();
public slots:
virtual void setValue( const QVariant &value );
virtual void setEnabled( bool enabled );
protected:
virtual void updateConstraintWidgetStatus( ConstraintResult status );
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgsrelationreferencewidgetwrapper.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/