QGIS API Documentation
2.8.2-Wien
|
#include <qgsattributedialog.h>
Public Slots | |
void | accept () override |
void | show (bool autoDelete=true) |
Show the dialog non-blocking. |
Public Member Functions | |
QgsAttributeDialog (QgsVectorLayer *vl, QgsFeature *thepFeature, bool featureOwner, const QgsDistanceArea &myDa, QWidget *parent=0, bool showDialogButtons=true) | |
Create an attribute dialog for a given layer and feature. | |
QgsAttributeDialog (QgsVectorLayer *vl, QgsFeature *thepFeature, bool featureOwner, QWidget *parent=0, bool showDialogButtons=true, const QgsAttributeEditorContext &context=QgsAttributeEditorContext()) | |
Create an attribute dialog for a given layer and feature. | |
~QgsAttributeDialog () | |
QgsAttributeForm * | attributeForm () |
Q_DECL_DEPRECATED QDialog * | dialog () |
Returns reference to self. | |
bool | editable () |
Is this dialog editable? | |
const QgsFeature * | feature () |
void | restoreGeometry () |
Restores the size and position from the last time this dialog box was used. | |
void | saveGeometry () |
Saves the size and position for the next time this dialog box will be used. | |
void | setEditCommandMessage (const QString &message) |
Sets the edit command message (Undo) that will be used when the dialog is accepted. | |
void | setHighlight (QgsHighlight *h) |
setHighlight | |
void | setIsAddDialog (bool isAddDialog) |
Toggles the form mode between edit feature and add feature. |
Definition at line 35 of file qgsattributedialog.h.
QgsAttributeDialog::QgsAttributeDialog | ( | QgsVectorLayer * | vl, |
QgsFeature * | thepFeature, | ||
bool | featureOwner, | ||
const QgsDistanceArea & | myDa, | ||
QWidget * | parent = 0 , |
||
bool | showDialogButtons = true |
||
) |
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 |
myDa | A QgsDistanceArea which will be used for expressions |
parent | A parent widget for the dialog |
showDialogButtons | True: Show the dialog buttons accept/cancel |
Definition at line 28 of file qgsattributedialog.cpp.
QgsAttributeDialog::QgsAttributeDialog | ( | QgsVectorLayer * | vl, |
QgsFeature * | thepFeature, | ||
bool | featureOwner, | ||
QWidget * | parent = 0 , |
||
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 42 of file qgsattributedialog.cpp.
QgsAttributeDialog::~QgsAttributeDialog | ( | ) |
Definition at line 53 of file qgsattributedialog.cpp.
|
overrideslot |
Definition at line 84 of file qgsattributedialog.cpp.
|
inline |
Definition at line 94 of file qgsattributedialog.h.
|
inline |
Returns reference to self.
Only here for legacy compliance
Definition at line 92 of file qgsattributedialog.h.
|
inline |
Is this dialog editable?
Definition at line 103 of file qgsattributedialog.h.
|
inline |
Definition at line 96 of file qgsattributedialog.h.
void QgsAttributeDialog::restoreGeometry | ( | ) |
Restores the size and position from the last time this dialog box was used.
Definition at line 72 of file qgsattributedialog.cpp.
void QgsAttributeDialog::saveGeometry | ( | ) |
Saves the size and position for the next time this dialog box will be used.
Definition at line 67 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 119 of file qgsattributedialog.h.
void QgsAttributeDialog::setHighlight | ( | QgsHighlight * | h | ) |
setHighlight
h | The highlight. Ownership is taken. |
Definition at line 77 of file qgsattributedialog.cpp.
|
inline |
Toggles the form mode between edit feature and add feature.
If set to true, the dialog will be editable even with an invalid feature. If set to true, the dialog will add a new feature when the form is accepted.
isAddDialog | If set to true, turn this dialog into an add feature dialog. |
Definition at line 112 of file qgsattributedialog.h.
|
slot |
Show the dialog non-blocking.
Reparents this dialog to be a child of the dialog form and is deleted when closed.
Definition at line 90 of file qgsattributedialog.cpp.