QGIS/python/gui/qgsattributeformeditorwidget.sip.in

106 lines
3.4 KiB
Plaintext
Raw Normal View History

2017-05-23 14:36:52 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsattributeformeditorwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2017-11-01 19:44:41 +01:00
class QgsAttributeFormEditorWidget : QgsAttributeFormWidget
{
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
A widget consisting of both an editor widget and additional widgets for controlling the behavior
of the editor widget depending on a number of possible modes. For instance, if the parent attribute
form is in the multi edit mode, this widget will show both the editor widget and a tool button for
controlling the multi edit results.
2017-05-23 14:36:52 +02:00
.. versionadded:: 2.16
%End
2017-05-23 14:36:52 +02:00
%TypeHeaderCode
#include "qgsattributeformeditorwidget.h"
%End
public:
2017-11-01 19:44:41 +01:00
explicit QgsAttributeFormEditorWidget( QgsEditorWidgetWrapper *editorWidget, const QString &widgetType,
QgsAttributeForm *form /TransferThis/ );
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsAttributeFormEditorWidget.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param editorWidget: associated editor widget wrapper (for default/edit modes)
:param widgetType: the type identifier of the widget passed in the
wrapper
:param form: parent attribute form
2017-05-23 14:36:52 +02:00
%End
~QgsAttributeFormEditorWidget();
2017-11-01 19:44:41 +01:00
virtual void createSearchWidgetWrappers();
void initialize( const QVariant &initialValue, bool mixedValues = false );
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Resets the widget to an initial value.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param initialValue: initial value to show in widget
:param mixedValues: set to true to initially show the mixed values state
2017-05-23 14:36:52 +02:00
%End
bool hasChanged() const;
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns true if the widget's value has been changed since it was initialized.
.. seealso:: :py:func:`initialize`
2017-05-23 14:36:52 +02:00
%End
QVariant currentValue() const;
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the current value of the attached editor widget.
2017-05-23 14:36:52 +02:00
%End
void setConstraintStatus( const QString &constraint, const QString &description, const QString &err, QgsEditorWidgetWrapper::ConstraintResult result );
%Docstring
2017-12-15 10:36:55 -04:00
Set the constraint status for this widget.
%End
void setConstraintResultVisible( bool editable );
%Docstring
2017-12-15 10:36:55 -04:00
Set the constraint result lable visible or invisible according to the layer editable status
%End
public slots:
void setIsMixed( bool mixed );
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets whether the widget should be displayed in a "mixed values" mode.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param mixed: set to true to show in a mixed values state
2017-05-23 14:36:52 +02:00
%End
void changesCommitted();
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Called when field values have been committed;
2017-05-23 14:36:52 +02:00
%End
signals:
void valueChanged( const QVariant &value );
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Emitted when the widget's value changes
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param value: new widget value
2017-05-23 14:36:52 +02:00
%End
};
2017-05-23 14:36:52 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsattributeformeditorwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/