Base class for all widgets shown on a QgsAttributeForm.
More...
#include <qgsattributeformwidget.h>
|
QWidget * | editPage () const |
| Returns a pointer to the EDIT page widget. More...
|
|
QWidget * | searchPage () const |
| Returns a pointer to the search page widget. More...
|
|
QStackedWidget * | stack () const |
| Returns a pointer to the stacked widget managing edit and search page. More...
|
|
Base class for all widgets shown on a QgsAttributeForm.
Consists of the widget which is visible in edit mode as well as the widget visible in search mode.
- Since
- QGIS 3.0
Definition at line 38 of file qgsattributeformwidget.h.
◆ Mode
Widget modes.
Enumerator |
---|
DefaultMode | Default mode, only the editor widget is shown.
|
MultiEditMode | Multi edit mode, both the editor widget and a QgsMultiEditToolButton is shown.
|
SearchMode | Layer search/filter mode.
|
AggregateSearchMode | Embedded in a search form, show additional aggregate function toolbutton.
|
Definition at line 45 of file qgsattributeformwidget.h.
◆ QgsAttributeFormWidget()
◆ addAdditionalSearchWidgetWrapper()
Adds an additional search widget wrapper.
Used to register a secondary search widget as used for "between" searches.
Definition at line 97 of file qgsattributeformwidget.cpp.
◆ createSearchWidgetWrappers()
◆ currentFilterExpression()
QString QgsAttributeFormWidget::currentFilterExpression |
( |
| ) |
const |
|
virtual |
◆ editPage()
QWidget * QgsAttributeFormWidget::editPage |
( |
| ) |
const |
|
protected |
Returns a pointer to the EDIT page widget.
- Note
- this method is in place for unit testing only, and is not considered stable API
-
not available in Python bindings
Definition at line 210 of file qgsattributeformwidget.cpp.
◆ form()
◆ layer()
◆ mode()
Mode QgsAttributeFormWidget::mode |
( |
| ) |
const |
|
inline |
◆ resetSearch()
void QgsAttributeFormWidget::resetSearch |
( |
| ) |
|
◆ searchPage()
QWidget * QgsAttributeFormWidget::searchPage |
( |
| ) |
const |
|
protected |
Returns a pointer to the search page widget.
- Note
- this method is in place for unit testing only, and is not considered stable API
-
not available in Python bindings
Definition at line 200 of file qgsattributeformwidget.cpp.
◆ searchWidgetFrame()
QWidget * QgsAttributeFormWidget::searchWidgetFrame |
( |
| ) |
|
Returns the widget which should be used as a parent during construction of the search widget wrapper.
- Note
- this method is in place for unit testing only, and is not considered stable API
Definition at line 80 of file qgsattributeformwidget.cpp.
◆ searchWidgetToolButtonVisible()
bool QgsAttributeFormWidget::searchWidgetToolButtonVisible |
( |
| ) |
const |
The visibility of the search widget tool button, that allows (de)activating this search widgte or defines the comparison operator to use.
Definition at line 190 of file qgsattributeformwidget.cpp.
◆ searchWidgetWrappers()
Returns the search widget wrapper used in this widget.
The wrapper must first be created using createSearchWidgetWrapper()
- Note
- this method is in place for unit testing only, and is not considered stable API
Definition at line 105 of file qgsattributeformwidget.cpp.
◆ setMode()
Sets the current mode for the widget.
The widget will adapt its state and visible widgets to reflect the updated mode. For example, showing multi edit tool buttons if the mode is set to MultiEditMode.
- Parameters
-
- See also
- mode()
Definition at line 69 of file qgsattributeformwidget.cpp.
◆ setSearchWidgetToolButtonVisible()
void QgsAttributeFormWidget::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.
Definition at line 195 of file qgsattributeformwidget.cpp.
◆ setSearchWidgetWrapper()
Sets the search widget wrapper for the widget used when the form is in search mode.
- Parameters
-
wrapper | search widget wrapper. |
- Note
- the search widget wrapper should be created using searchWidgetFrame() as its parent
-
this method is in place for unit testing only, and is not considered stable API
Definition at line 85 of file qgsattributeformwidget.cpp.
◆ stack()
QStackedWidget * QgsAttributeFormWidget::stack |
( |
| ) |
const |
|
protected |
Returns a pointer to the stacked widget managing edit and search page.
- Note
- this method is in place for unit testing only, and is not considered stable API
-
not available in Python bindings
Definition at line 205 of file qgsattributeformwidget.cpp.
The documentation for this class was generated from the following files: