|
QGIS API Documentation
2.6.0-Brighton
|
This class should be subclassed for every configurable editor widget type. More...
#include <qgseditorconfigwidget.h>

Public Member Functions | |
| QgsEditorConfigWidget (QgsVectorLayer *vl, int fieldIdx, QWidget *parent) | |
| Create a new configuration widget. | |
| virtual QgsEditorWidgetConfig | config ()=0 |
| Create a configuration from the current GUI state. | |
| virtual void | setConfig (const QgsEditorWidgetConfig &config)=0 |
| Update the configuration widget to represent the given configuration. | |
| int | field () |
| Returns the field for which this configuration widget applies. | |
| QgsVectorLayer * | layer () |
| Returns the layer for which this configuration widget applies. | |
| virtual | ~QgsEditorConfigWidget () |
| Destructor. | |
This class should be subclassed for every configurable editor widget type.
It implements the GUI configuration widget and transforms this to/from a configuration.
It will only be instantiated by {
|
explicit |
Create a new configuration widget.
| vl | The layer for which the configuration dialog will be created |
| fieldIdx | The index of the field on the layer for which this dialog will be created |
| parent | A parent widget |
|
inlinevirtual |
Destructor.
|
pure virtual |
Create a configuration from the current GUI state.
Implemented in QgsDateTimeEditConfig, QgsValueRelationConfigDlg, QgsCheckBoxConfigDlg, QgsPhotoConfigDlg, QgsTextEditConfigDlg, QgsUniqueValuesConfigDlg, QgsWebViewWidgetConfigDlg, QgsDummyConfigDlg, QgsValueMapConfigDlg, QgsRangeConfigDlg, and QgsRelationReferenceConfigDlg.
| int QgsEditorConfigWidget::field | ( | ) |
Returns the field for which this configuration widget applies.
| QgsVectorLayer * QgsEditorConfigWidget::layer | ( | ) |
Returns the layer for which this configuration widget applies.
|
pure virtual |
Update the configuration widget to represent the given configuration.
| config | The configuration which should be represented by this widget |
Implemented in QgsDateTimeEditConfig, QgsValueRelationConfigDlg, QgsCheckBoxConfigDlg, QgsPhotoConfigDlg, QgsTextEditConfigDlg, QgsUniqueValuesConfigDlg, QgsWebViewWidgetConfigDlg, QgsDummyConfigDlg, QgsValueMapConfigDlg, QgsRangeConfigDlg, and QgsRelationReferenceConfigDlg.
1.8.1.2