|
QGIS API Documentation
2.2.0-Valmiera
|
#include <qgsattributedialog.h>

Public Slots | |
| void | accept () |
| int | exec () |
| void | show () |
| void | dialogDestroyed () |
Public Member Functions | |
| QgsAttributeDialog (QgsVectorLayer *vl, QgsFeature *thepFeature, bool featureOwner, 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, QgsAttributeEditorContext context=QgsAttributeEditorContext()) | |
| Create an attribute dialog for a given layer and feature. | |
| ~QgsAttributeDialog () | |
| void | saveGeometry () |
| Saves the size and position for the next time this dialog box will be used. | |
| void | restoreGeometry () |
| Restores the size and position from the last time this dialog box was used. | |
| void | setHighlight (QgsHighlight *h) |
| QDialog * | dialog () |
| QgsFeature * | feature () |
| bool | editable () |
| Is this dialog editable? | |
Protected Member Functions | |
| bool | eventFilter (QObject *obj, QEvent *event) |
Private Member Functions | |
| void | init () |
Private Attributes | |
| QDialog * | mDialog |
| QString | mSettingsPath |
| QgsAttributeEditorContext | mContext |
| QgsVectorLayer * | mLayer |
| QgsFeature * | mFeature |
| bool | mFeatureOwner |
| QgsHighlight * | mHighlight |
| int | mFormNr |
| bool | mShowDialogButtons |
| QString | mReturnvarname |
| bool | mEditable |
Static Private Attributes | |
| static int | sFormCounter = 0 |
| static QString | sSettingsPath = "/Windows/AttributeDialog/" |
Definition at line 33 of file qgsattributedialog.h.
| QgsAttributeDialog::QgsAttributeDialog | ( | QgsVectorLayer * | vl, |
| QgsFeature * | thepFeature, | ||
| bool | featureOwner, | ||
| 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 65 of file qgsattributedialog.cpp.
References QgsAttributeEditorContext::adjustForLayer(), init(), mContext, mLayer, and QgsAttributeEditorContext::setDistanceArea().
| QgsAttributeDialog::QgsAttributeDialog | ( | QgsVectorLayer * | vl, |
| QgsFeature * | thepFeature, | ||
| bool | featureOwner, | ||
| QWidget * | parent = 0, |
||
| bool | showDialogButtons = true, |
||
| 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 50 of file qgsattributedialog.cpp.
References QgsAttributeEditorContext::adjustForLayer(), init(), mContext, and mLayer.
| QgsAttributeDialog::~QgsAttributeDialog | ( | ) |
Definition at line 537 of file qgsattributedialog.cpp.
References QgsVectorLayer::editorLayout(), mDialog, mFeature, mFeatureOwner, mHighlight, mLayer, saveGeometry(), and QgsVectorLayer::UiFileLayout.
|
slot |
Definition at line 562 of file qgsattributedialog.cpp.
References QgsFields::count(), QgsVectorLayer::isEditable(), mContext, mFeature, mLayer, QgsVectorLayer::pendingFields(), QgsAttributeEditorContext::proxyWidget(), QgsAttributeEditor::retrieveValue(), and QgsFeature::setAttribute().
Referenced by QgsDualView::attributeAdded(), QgsDualView::attributeDeleted(), init(), QgsDualView::reloadAttribute(), and QgsDualView::saveEditChanges().
|
inline |
Definition at line 79 of file qgsattributedialog.h.
Referenced by QgsDualView::attributeAdded(), QgsDualView::attributeDeleted(), QgsDualView::editingToggled(), QgsDualView::featureDeleted(), QgsDualView::init(), QgsDualView::on_mFeatureList_currentEditSelectionChanged(), QgsDualView::reloadAttribute(), and QgsDualView::saveEditChanges().
|
slot |
Definition at line 632 of file qgsattributedialog.cpp.
References mDialog, mFormNr, mLayer, mReturnvarname, and QgsPythonRunner::run().
Referenced by init().
|
inline |
Is this dialog editable?
Definition at line 88 of file qgsattributedialog.h.
Referenced by QgsDualView::saveEditChanges().
|
protected |
Definition at line 654 of file qgsattributedialog.cpp.
References mDialog, and mHighlight.
|
slot |
Definition at line 578 of file qgsattributedialog.cpp.
References mDialog, and QgsDebugMsg.
|
inline |
Definition at line 81 of file qgsattributedialog.h.
Referenced by QgsDualView::attributeAdded(), QgsDualView::attributeDeleted(), QgsDualView::editingToggled(), QgsDualView::featureDeleted(), init(), QgsDualView::on_mFeatureList_currentEditSelectionChanged(), QgsDualView::reloadAttribute(), and QgsDualView::saveEditChanges().
|
private |
Definition at line 81 of file qgsattributedialog.cpp.
References accept(), QgsAttributeEditorElement::AeTypeContainer, QgsFeature::attribute(), QgsVectorLayer::attributeAlias(), QgsVectorLayer::attributeDisplayName(), QgsVectorLayer::attributeEditorElements(), QgsFields::count(), QgsAttributeEditor::createAttributeEditor(), QgsRelationEditorWidget::createRelationEditor(), QgsAttributeEditor::createWidgetFromDef(), QgsVectorLayer::dataProvider(), QgsVectorLayer::dateFormat(), dialogDestroyed(), QgsAttributeEditorContext::distanceArea(), QgsVectorLayer::editForm(), QgsVectorLayer::editFormInit(), QgsVectorLayer::editorLayout(), QgsVectorLayer::EditorWidgetV2, QgsVectorLayer::editType(), QgsExpression::evalErrorString(), QgsExpression::evaluate(), feature(), QgsVectorLayer::fieldEditable(), file, GEO_NONE, QgsFeature::geometry(), QgsVectorLayer::getFeatures(), QgsExpression::hasEvalError(), QgsExpression::hasParserError(), QgsMapLayer::id(), QgsFeature::id(), QgsRelation::id(), QgsVectorLayer::Immutable, index, QgsProject::instance(), QgsVectorLayer::isEditable(), QgsFields::isEmpty(), QgsRelation::isValid(), QgsVectorLayer::labelOnTop(), mContext, mDialog, mEditable, mFeature, mFormNr, mLayer, mReturnvarname, mShowDialogButtons, QgsAttributeEditorElement::name(), QgsMapLayer::name(), QgsExpression::needsGeometry(), QgsFeatureIterator::nextFeature(), QgsVectorLayer::pendingFields(), QgsVectorLayer::Photo, QgsDebugMsg, QgsRelationManager::referencedRelations(), QgsRelationManager::relation(), QgsProject::relationManager(), restoreGeometry(), QgsPythonRunner::run(), QgsDistanceArea::setEllipsoid(), QgsDistanceArea::setEllipsoidalMode(), QgsExpression::setGeomCalculator(), QgsFeature::setGeometry(), QgsDistanceArea::setSourceCrs(), QgsVectorLayer::TabLayout, tr, QgsField::type(), QgsAttributeEditorElement::type(), QgsVectorLayer::UiFileLayout, and QgsVectorLayer::WebView.
Referenced by QgsAttributeDialog().
| void QgsAttributeDialog::restoreGeometry | ( | ) |
Restores the size and position from the last time this dialog box was used.
Definition at line 612 of file qgsattributedialog.cpp.
References mDialog, and mSettingsPath.
Referenced by init().
| void QgsAttributeDialog::saveGeometry | ( | ) |
Saves the size and position for the next time this dialog box will be used.
Definition at line 603 of file qgsattributedialog.cpp.
References mDialog, and mSettingsPath.
Referenced by ~QgsAttributeDialog().
| void QgsAttributeDialog::setHighlight | ( | QgsHighlight * | h | ) |
Definition at line 621 of file qgsattributedialog.cpp.
References mHighlight.
|
slot |
Definition at line 591 of file qgsattributedialog.cpp.
References mDialog.
|
private |
Definition at line 107 of file qgsattributedialog.h.
Referenced by accept(), init(), and QgsAttributeDialog().
|
private |
Definition at line 104 of file qgsattributedialog.h.
Referenced by dialogDestroyed(), eventFilter(), exec(), init(), restoreGeometry(), saveGeometry(), show(), and ~QgsAttributeDialog().
|
private |
Definition at line 117 of file qgsattributedialog.h.
Referenced by init().
|
private |
Definition at line 109 of file qgsattributedialog.h.
Referenced by accept(), init(), and ~QgsAttributeDialog().
|
private |
Definition at line 110 of file qgsattributedialog.h.
Referenced by ~QgsAttributeDialog().
|
private |
Definition at line 112 of file qgsattributedialog.h.
Referenced by dialogDestroyed(), and init().
|
private |
Definition at line 111 of file qgsattributedialog.h.
Referenced by eventFilter(), setHighlight(), and ~QgsAttributeDialog().
|
private |
Definition at line 108 of file qgsattributedialog.h.
Referenced by accept(), dialogDestroyed(), init(), QgsAttributeDialog(), and ~QgsAttributeDialog().
|
private |
Definition at line 114 of file qgsattributedialog.h.
Referenced by dialogDestroyed(), and init().
|
private |
Definition at line 105 of file qgsattributedialog.h.
Referenced by restoreGeometry(), and saveGeometry().
|
private |
Definition at line 113 of file qgsattributedialog.h.
Referenced by init().
|
staticprivate |
Definition at line 119 of file qgsattributedialog.h.
|
staticprivate |
Definition at line 120 of file qgsattributedialog.h.
1.8.1.2