QGIS API Documentation 3.41.0-Master (cea29feecf2)
|
Widget to show for child relations on an attribute form. More...
#include <qgsattributeformrelationeditorwidget.h>
Public Member Functions | |
QgsAttributeFormRelationEditorWidget (QgsRelationWidgetWrapper *wrapper, QgsAttributeForm *form) | |
Constructor. | |
void | createSearchWidgetWrappers (const QgsAttributeEditorContext &context=QgsAttributeEditorContext()) override |
Creates the search widget wrappers for the widget used when the form is in search mode. | |
QString | currentFilterExpression () const override |
Creates an expression matching the current search filter value and search properties represented in the widget. | |
void | setMultiEditFeatureIds (const QgsFeatureIds &fids) |
Set multiple feature to edit simultaneously. | |
Public Member Functions inherited from QgsAttributeFormWidget | |
QgsAttributeFormWidget (QgsWidgetWrapper *widget, QgsAttributeForm *form) | |
A new form widget for the wrapper widget on form. | |
~QgsAttributeFormWidget () override | |
void | addAdditionalSearchWidgetWrapper (QgsSearchWidgetWrapper *wrapper) |
Adds an additional search widget wrapper. | |
QgsAttributeForm * | form () const |
The form on which this widget is shown. | |
QgsVectorLayer * | layer () |
The layer for which this widget and its form is shown. | |
Mode | mode () const |
Returns the current mode for the widget. | |
void | resetSearch () |
Resets the search/filter value of the widget. | |
QWidget * | searchWidgetFrame () |
Returns the widget which should be used as a parent during construction of the search widget wrapper. | |
bool | searchWidgetToolButtonVisible () const |
The visibility of the search widget tool button, that allows (de)activating this search widgte or defines the comparison operator to use. | |
QList< QgsSearchWidgetWrapper * > | searchWidgetWrappers () |
Returns the search widget wrapper used in this widget. | |
void | setMode (Mode mode) |
Sets the current mode for the widget. | |
void | setSearchWidgetToolButtonVisible (bool searchWidgetToolButtonVisible) |
The visibility of the search widget tool button, that allows (de)activating this search widgte or defines the comparison operator to use. | |
void | setSearchWidgetWrapper (QgsSearchWidgetWrapper *wrapper) |
Sets the search widget wrapper for the widget used when the form is in search mode. | |
Additional Inherited Members | |
Public Types inherited from QgsAttributeFormWidget | |
enum | Mode { DefaultMode , MultiEditMode , SearchMode , AggregateSearchMode } |
Widget modes. More... | |
Protected Member Functions inherited from QgsAttributeFormWidget | |
QWidget * | editPage () const |
Returns a pointer to the EDIT page widget. | |
QWidget * | searchPage () const |
Returns a pointer to the search page widget. | |
void | setVisiblePageForMode (QgsAttributeFormWidget::Mode mode) |
Sets the visible page in the widget to the page matching the specified mode. | |
QStackedWidget * | stack () const |
Returns a pointer to the stacked widget managing edit and search page. | |
Widget to show for child relations on an attribute form.
Definition at line 32 of file qgsattributeformrelationeditorwidget.h.
|
explicit |
Constructor.
Definition at line 23 of file qgsattributeformrelationeditorwidget.cpp.
|
overridevirtual |
Creates the search widget wrappers for the widget used when the form is in search mode.
context | editor context (not available in Python bindings) |
Implements QgsAttributeFormWidget.
Definition at line 30 of file qgsattributeformrelationeditorwidget.cpp.
|
overridevirtual |
Creates an expression matching the current search filter value and search properties represented in the widget.
Reimplemented from QgsAttributeFormWidget.
Definition at line 41 of file qgsattributeformrelationeditorwidget.cpp.
void QgsAttributeFormRelationEditorWidget::setMultiEditFeatureIds | ( | const QgsFeatureIds & | fids | ) |
Set multiple feature to edit simultaneously.
fids | Multiple Id of features to edit |
Definition at line 50 of file qgsattributeformrelationeditorwidget.cpp.