2017-05-08 08:36:06 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/editorwidgets/qgsrelationwidgetwrapper.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-12-01 10:04:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
class QgsRelationWidgetWrapper : QgsWidgetWrapper
|
|
|
|
{
|
2017-05-08 08:36:06 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-05-08 08:36:06 +02:00
|
|
|
.. note::
|
|
|
|
|
|
|
|
not available in Python bindings
|
2015-12-01 10:04:20 +01:00
|
|
|
%End
|
|
|
|
|
2017-05-08 08:36:06 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsrelationwidgetwrapper.h"
|
|
|
|
%End
|
2015-12-01 10:04:20 +01:00
|
|
|
public:
|
2017-12-12 11:44:10 +10:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
explicit QgsRelationWidgetWrapper( QgsVectorLayer *vl, const QgsRelation &relation, QWidget *editor = 0, QWidget *parent /TransferThis/ = 0 );
|
2017-12-12 11:44:10 +10:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsRelationWidgetWrapper
|
|
|
|
%End
|
2015-12-01 10:04:20 +01:00
|
|
|
|
2016-08-19 14:22:40 +02:00
|
|
|
bool showLabel() const;
|
2017-05-08 08:36:06 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Defines if a title lable should be shown for this widget.
|
|
|
|
Only has an effect after widget() has been called at least once.
|
|
|
|
|
2017-05-08 08:36:06 +02:00
|
|
|
.. versionadded:: 2.18
|
|
|
|
%End
|
2016-08-19 14:22:40 +02:00
|
|
|
|
2016-09-21 20:41:35 +02:00
|
|
|
void setShowLabel( bool showLabel );
|
2017-05-08 08:36:06 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Defines if a title lable should be shown for this widget.
|
|
|
|
Only has an effect after widget() has been called at least once.
|
2017-05-08 08:36:06 +02:00
|
|
|
|
|
|
|
.. versionadded:: 2.18
|
|
|
|
%End
|
2016-09-21 20:41:35 +02:00
|
|
|
|
|
|
|
bool showLinkButton() const;
|
2017-05-08 08:36:06 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Determines if the "link feature" button should be shown
|
|
|
|
|
2017-05-08 08:36:06 +02:00
|
|
|
.. versionadded:: 2.18
|
|
|
|
%End
|
|
|
|
|
2016-09-21 20:41:35 +02:00
|
|
|
void setShowLinkButton( bool showLinkButton );
|
2017-05-08 08:36:06 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Determines if the "link feature" button should be shown
|
2017-05-08 08:36:06 +02:00
|
|
|
|
|
|
|
.. versionadded:: 2.18
|
|
|
|
%End
|
2016-09-21 20:41:35 +02:00
|
|
|
|
|
|
|
bool showUnlinkButton() const;
|
2017-05-08 08:36:06 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Determines if the "unlink feature" button should be shown
|
|
|
|
|
2017-05-08 08:36:06 +02:00
|
|
|
.. versionadded:: 2.18
|
|
|
|
%End
|
|
|
|
|
2016-09-21 20:41:35 +02:00
|
|
|
void setShowUnlinkButton( bool showUnlinkButton );
|
2017-05-08 08:36:06 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Determines if the "unlink feature" button should be shown
|
2017-05-08 08:36:06 +02:00
|
|
|
|
|
|
|
.. versionadded:: 2.18
|
|
|
|
%End
|
2016-08-19 14:22:40 +02:00
|
|
|
|
2017-11-01 21:14:34 +01:00
|
|
|
QgsRelation relation() const;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
The relation for which this wrapper is created.
|
|
|
|
|
2017-11-21 08:32:53 +01:00
|
|
|
.. versionadded:: 3.0
|
2017-11-01 21:14:34 +01:00
|
|
|
%End
|
|
|
|
|
2015-12-01 10:04:20 +01:00
|
|
|
protected:
|
2017-05-08 08:36:06 +02:00
|
|
|
virtual QWidget *createWidget( QWidget *parent );
|
|
|
|
|
|
|
|
virtual void initWidget( QWidget *editor );
|
|
|
|
|
|
|
|
virtual bool valid() const;
|
|
|
|
|
2015-12-01 10:04:20 +01:00
|
|
|
|
|
|
|
public slots:
|
2017-05-08 08:36:06 +02:00
|
|
|
virtual void setFeature( const QgsFeature &feature );
|
|
|
|
|
2016-08-19 14:22:40 +02:00
|
|
|
|
|
|
|
void setVisible( bool visible );
|
2017-05-08 08:36:06 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the visibility of the wrapper's widget.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param visible: set to true to show widget, false to hide widget
|
|
|
|
|
2017-05-08 08:36:06 +02:00
|
|
|
.. versionadded:: 2.16
|
|
|
|
%End
|
|
|
|
|
2015-12-01 10:04:20 +01:00
|
|
|
};
|
2017-05-08 08:36:06 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/editorwidgets/qgsrelationwidgetwrapper.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|