mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			127 lines
		
	
	
		
			4.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			127 lines
		
	
	
		
			4.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/gui/qgsattributeformeditorwidget.h                               *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
class QgsAttributeFormEditorWidget : QgsAttributeFormWidget
 | 
						|
{
 | 
						|
%Docstring(signature="appended")
 | 
						|
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.
 | 
						|
 | 
						|
.. versionadded:: 2.16
 | 
						|
%End
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgsattributeformeditorwidget.h"
 | 
						|
%End
 | 
						|
  public:
 | 
						|
 | 
						|
    explicit QgsAttributeFormEditorWidget( QgsEditorWidgetWrapper *editorWidget, const QString &widgetType,
 | 
						|
                                           QgsAttributeForm *form  /TransferThis/ );
 | 
						|
%Docstring
 | 
						|
Constructor for QgsAttributeFormEditorWidget.
 | 
						|
 | 
						|
: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
 | 
						|
%End
 | 
						|
 | 
						|
    ~QgsAttributeFormEditorWidget();
 | 
						|
 | 
						|
    virtual void createSearchWidgetWrappers( const QgsAttributeEditorContext &context = QgsAttributeEditorContext() );
 | 
						|
 | 
						|
 | 
						|
    void initialize( const QVariant &initialValue, bool mixedValues = false, const QVariantList &additionalFieldValues = QVariantList() );
 | 
						|
%Docstring
 | 
						|
Resets the widget to an initial value.
 | 
						|
 | 
						|
:param initialValue: initial value to show in widget
 | 
						|
:param mixedValues: set to ``True`` to initially show the mixed values state
 | 
						|
:param additionalFieldValues: a variant map of additional field names with their corresponding values
 | 
						|
%End
 | 
						|
 | 
						|
    bool hasChanged() const;
 | 
						|
%Docstring
 | 
						|
Returns ``True`` if the widget's value has been changed since it was initialized.
 | 
						|
 | 
						|
.. seealso:: :py:func:`initialize`
 | 
						|
%End
 | 
						|
 | 
						|
    QVariant currentValue() const;
 | 
						|
%Docstring
 | 
						|
Returns the current value of the attached editor widget.
 | 
						|
%End
 | 
						|
 | 
						|
    void setConstraintStatus( const QString &constraint, const QString &description, const QString &err, QgsEditorWidgetWrapper::ConstraintResult result );
 | 
						|
%Docstring
 | 
						|
Set the constraint status for this widget.
 | 
						|
%End
 | 
						|
 | 
						|
    void setConstraintResultVisible( bool editable );
 | 
						|
%Docstring
 | 
						|
Set the constraint result label visible or invisible according to the layer editable status
 | 
						|
%End
 | 
						|
 | 
						|
    QgsEditorWidgetWrapper *editorWidget() const;
 | 
						|
%Docstring
 | 
						|
Returns the editor widget wrapper
 | 
						|
 | 
						|
.. versionadded:: 3.10
 | 
						|
%End
 | 
						|
 | 
						|
  public slots:
 | 
						|
 | 
						|
    void setIsMixed( bool mixed );
 | 
						|
%Docstring
 | 
						|
Sets whether the widget should be displayed in a "mixed values" mode.
 | 
						|
 | 
						|
:param mixed: set to ``True`` to show in a mixed values state
 | 
						|
%End
 | 
						|
 | 
						|
    void changesCommitted();
 | 
						|
%Docstring
 | 
						|
Called when field values have been committed;
 | 
						|
%End
 | 
						|
 | 
						|
  signals:
 | 
						|
 | 
						|
 void valueChanged( const QVariant &value );
 | 
						|
%Docstring
 | 
						|
Emitted when the widget's value changes
 | 
						|
 | 
						|
:param value: new widget value
 | 
						|
 | 
						|
.. deprecated:: QGIS 3.10
 | 
						|
   use valuesChanged instead
 | 
						|
%End
 | 
						|
 | 
						|
    void valuesChanged( const QVariant &value, const QVariantList &additionalFieldValues );
 | 
						|
%Docstring
 | 
						|
Emitted when the widget's value changes
 | 
						|
 | 
						|
:param value: new widget value
 | 
						|
:param additionalFieldValues: of the potential additional fields
 | 
						|
 | 
						|
.. versionadded:: 3.10
 | 
						|
%End
 | 
						|
 | 
						|
};
 | 
						|
 | 
						|
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/gui/qgsattributeformeditorwidget.h                               *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 |