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

120 lines
3.0 KiB
Plaintext
Raw Normal View History

2017-05-08 08:36:06 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgsmultiedittoolbutton.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsMultiEditToolButton : QToolButton
{
2017-05-08 08:36:06 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
A tool button widget which is displayed next to editor widgets in attribute forms, and
allows for controlling how the widget behaves and interacts with the form while in multi
edit mode.
2017-05-08 08:36:06 +02:00
.. versionadded:: 2.16
%End
%TypeHeaderCode
2017-05-08 08:36:06 +02:00
#include "qgsmultiedittoolbutton.h"
%End
public:
enum State
{
2017-05-08 08:36:06 +02:00
Default,
MixedValues,
Changed,
};
explicit QgsMultiEditToolButton( QWidget *parent /TransferThis/ = 0 );
2017-05-08 08:36:06 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsMultiEditToolButton.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param parent: parent object
2017-05-08 08:36:06 +02:00
%End
State state() const;
2017-05-08 08:36:06 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the current displayed state of the button.
2017-05-08 08:36:06 +02:00
%End
void setField( const QgsField &field );
2017-05-08 08:36:06 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets the field associated with this button. This is used to customise the widget menu
and tooltips to match the field properties.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param field: associated field
2017-05-08 08:36:06 +02:00
%End
public slots:
void setIsMixed( bool mixed );
2017-05-08 08:36:06 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets whether the associated field contains mixed values.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param mixed: whether field values are mixed
.. seealso:: :py:func:`isMixed`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`setIsChanged`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`resetChanges`
2017-05-08 08:36:06 +02:00
%End
void setIsChanged( bool changed );
2017-05-08 08:36:06 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets whether the associated field has changed.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param changed: whether field has changed
.. seealso:: :py:func:`isChanged`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`setIsMixed`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`resetChanges`
2017-05-08 08:36:06 +02:00
%End
void resetChanges();
2017-05-08 08:36:06 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Resets the changed state for the field.
.. seealso:: :py:func:`setIsMixed`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`setIsChanged`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`changesCommitted`
2017-05-08 08:36:06 +02:00
%End
void changesCommitted();
2017-05-08 08:36:06 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Called when field values have been changed and field now contains all the same values.
.. seealso:: :py:func:`resetChanges`
2017-05-08 08:36:06 +02:00
%End
signals:
void setFieldValueTriggered();
2017-05-08 08:36:06 +02:00
%Docstring
Emitted when the "set field value for all features" option is selected.
%End
void resetFieldValueTriggered();
2017-05-08 08:36:06 +02:00
%Docstring
Emitted when the "reset to original values" option is selected.
%End
};
2017-05-08 08:36:06 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgsmultiedittoolbutton.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/