|
QGIS API Documentation 4.3.0-Master (16eddb2670e)
|
An attribute table dialog for a vector layer. More...
#include <qgsattributedialog.h>

Public Slots | |
| void | accept () override |
| void | reject () override |
| void | show () |
| Show the dialog non-blocking. Reparents this dialog to be a child of the dialog form. | |
Public Member Functions | |
| QgsAttributeDialog (QgsVectorLayer *vl, QgsFeature *thepFeature, bool featureOwner, QWidget *parent=nullptr, bool showDialogButtons=true, const QgsAttributeEditorContext &context=QgsAttributeEditorContext()) | |
| Create an attribute dialog for a given layer and feature. | |
| ~QgsAttributeDialog () override | |
| QgsAttributeForm * | attributeForm () const |
| Returns the attribute form. | |
| QgsMapLayerActionContext | createActionContext () override |
| Creates a QgsMapLayerActionContext. | |
| bool | editable () const |
| Is this dialog editable? | |
| bool | event (QEvent *e) override |
| Intercept window activate/deactivate events to show/hide the highlighted feature. | |
| const QgsFeature * | feature () const |
| Returns the current feature of the attribute form. | |
| void | setEditCommandMessage (const QString &message) |
| Sets the edit command message (Undo) that will be used when the dialog is accepted. | |
| void | setExtraContextScope (QgsExpressionContextScope *extraScope) |
| Sets extraScope as an additional expression context scope to be used for calculations in this form. | |
| void | setHighlight (QgsHighlight *h) |
| setHighlight | |
| void | setMode (QgsAttributeEditorContext::Mode mode) |
| Toggles the form mode. | |
| void | showEvent (QShowEvent *event) override |
| Public Member Functions inherited from QgsMapLayerActionContextGenerator | |
| virtual | ~QgsMapLayerActionContextGenerator () |
An attribute table dialog for a vector layer.
Definition at line 39 of file qgsattributedialog.h.
| QgsAttributeDialog::QgsAttributeDialog | ( | QgsVectorLayer * | vl, |
| QgsFeature * | thepFeature, | ||
| bool | featureOwner, | ||
| QWidget * | parent = nullptr, | ||
| bool | showDialogButtons = true, | ||
| const QgsAttributeEditorContext & | context = QgsAttributeEditorContext() ) |
Create an attribute dialog for a given layer and feature.
| vl | The layer for which the dialog will be generated |
| thepFeature | A feature for which the dialog will be generated |
| featureOwner | Set to true, if the dialog should take ownership of the feature |
| parent | A parent widget for the dialog |
| showDialogButtons | true: Show the dialog buttons accept/cancel |
| context | The context in which this dialog is created |
Definition at line 33 of file qgsattributedialog.cpp.
|
override |
Definition at line 40 of file qgsattributedialog.cpp.
|
overrideslot |
Definition at line 73 of file qgsattributedialog.cpp.
|
inline |
Returns the attribute form.
Definition at line 75 of file qgsattributedialog.h.
|
overridevirtual |
Creates a QgsMapLayerActionContext.
Implements QgsMapLayerActionContextGenerator.
Definition at line 189 of file qgsattributedialog.cpp.
|
inline |
Is this dialog editable?
true, if this dialog was created in an editable manner. Definition at line 87 of file qgsattributedialog.h.
|
override |
Intercept window activate/deactivate events to show/hide the highlighted feature.
| e | The event |
Definition at line 174 of file qgsattributedialog.cpp.
|
inline |
Returns the current feature of the attribute form.
Definition at line 80 of file qgsattributedialog.h.
|
overrideslot |
Definition at line 110 of file qgsattributedialog.cpp.
|
inline |
Sets the edit command message (Undo) that will be used when the dialog is accepted.
| message | The message |
Definition at line 101 of file qgsattributedialog.h.
| void QgsAttributeDialog::setExtraContextScope | ( | QgsExpressionContextScope * | extraScope | ) |
Sets extraScope as an additional expression context scope to be used for calculations in this form.
Definition at line 184 of file qgsattributedialog.cpp.
| void QgsAttributeDialog::setHighlight | ( | QgsHighlight * | h | ) |
setHighlight
| h | The highlight. Ownership is taken. |
Definition at line 66 of file qgsattributedialog.cpp.
| void QgsAttributeDialog::setMode | ( | QgsAttributeEditorContext::Mode | mode | ) |
Toggles the form mode.
| mode | form mode. For example, if set to QgsAttributeEditorContext::AddFeatureMode, the dialog will be editable even with an invalid feature and will add a new feature when the form is accepted. |
Definition at line 155 of file qgsattributedialog.cpp.
|
slot |
Show the dialog non-blocking. Reparents this dialog to be a child of the dialog form.
Definition at line 90 of file qgsattributedialog.cpp.
|
override |
Definition at line 98 of file qgsattributedialog.cpp.