QGIS/python/gui/editorwidgets/qgsrelationwidgetwrapper.sip.in

113 lines
2.9 KiB
Plaintext
Raw Normal View History

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 *
************************************************************************/
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
%End
2017-05-08 08:36:06 +02:00
%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;
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
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
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
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
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
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
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
%End
protected:
2017-05-08 08:36:06 +02:00
virtual QWidget *createWidget( QWidget *parent );
virtual void initWidget( QWidget *editor );
virtual bool valid() const;
public slots:
2017-05-08 08:36:06 +02:00
virtual void setFeature( const QgsFeature &feature );
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
};
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 *
************************************************************************/