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 *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-15 17:50:29 +02:00
|
|
|
|
|
|
|
class QgsRelationReferenceWidgetWrapper : QgsEditorWidgetWrapper
|
|
|
|
{
|
2017-05-08 08:36:06 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
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>
|
2014-09-15 17:50:29 +02:00
|
|
|
%End
|
|
|
|
|
2017-05-08 08:36:06 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsrelationreferencewidgetwrapper.h"
|
|
|
|
%End
|
2014-09-15 17:50:29 +02:00
|
|
|
public:
|
2017-12-12 11:44:10 +10:00
|
|
|
|
2017-05-08 08:36:06 +02:00
|
|
|
explicit QgsRelationReferenceWidgetWrapper( QgsVectorLayer *vl,
|
2014-09-15 17:50:29 +02:00
|
|
|
int fieldIdx,
|
2017-05-08 08:36:06 +02:00
|
|
|
QWidget *editor,
|
|
|
|
QgsMapCanvas *canvas,
|
|
|
|
QgsMessageBar *messageBar,
|
2017-05-01 18:13:15 +02:00
|
|
|
QWidget *parent /TransferThis/ = 0 );
|
2017-12-12 11:44:10 +10:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsRelationReferenceWidgetWrapper
|
|
|
|
%End
|
2014-09-15 17:50:29 +02:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
virtual QWidget *createWidget( QWidget *parent );
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
virtual void initWidget( QWidget *editor );
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2017-05-08 08:36:06 +02:00
|
|
|
virtual QVariant value() const;
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2017-05-08 08:36:06 +02:00
|
|
|
virtual bool valid() const;
|
|
|
|
|
|
|
|
virtual void showIndeterminateState();
|
|
|
|
|
2014-09-15 17:50:29 +02:00
|
|
|
|
|
|
|
public slots:
|
2017-05-01 18:13:15 +02:00
|
|
|
virtual void setValue( const QVariant &value );
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2014-09-15 17:50:29 +02:00
|
|
|
virtual void setEnabled( bool enabled );
|
2016-05-09 14:46:51 +02:00
|
|
|
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2016-05-09 14:46:51 +02:00
|
|
|
protected:
|
2016-11-02 13:39:07 +10:00
|
|
|
|
2017-11-16 11:50:15 +01:00
|
|
|
virtual void updateConstraintWidgetStatus();
|
2017-05-08 08:36:06 +02:00
|
|
|
|
|
|
|
|
2014-09-15 17:50:29 +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 *
|
|
|
|
************************************************************************/
|