15 #ifndef QGSVECTORLAYEREDITBUFFER_H
16 #define QGSVECTORLAYEREDITBUFFER_H
41 bool isModified()
const;
61 bool changeAttributeValue(
QgsFeatureId fid,
int field,
const QVariant &newValue,
const QVariant &oldValue = QVariant() );
66 bool addAttribute(
const QgsField &field );
69 bool deleteAttribute(
int attr );
87 bool commitChanges( QStringList& commitErrors );
113 void undoIndexChanged(
int index );
117 void layerModified();
122 void attributeValueChanged(
QgsFeatureId fid,
int idx,
const QVariant & );
123 void attributeAdded(
int idx );
124 void attributeDeleted(
int idx );
128 void committedAttributesDeleted(
const QString& layerId,
const QgsAttributeList& deletedAttributes );
129 void committedAttributesAdded(
const QString& layerId,
const QList<QgsField>& addedAttributes );
130 void committedFeaturesAdded(
const QString& layerId,
const QgsFeatureList& addedFeatures );
131 void committedFeaturesRemoved(
const QString& layerId,
const QgsFeatureIds& deletedFeatureIds );
132 void committedAttributeValuesChanges(
const QString& layerId,
const QgsChangedAttributesMap& changedAttributesValues );
133 void committedGeometriesChanges(
const QString& layerId,
const QgsGeometryMap& changedGeometries );
143 void updateChangedAttributes(
QgsFeature &f );
146 void handleAttributeAdded(
int index );
149 void handleAttributeDeleted(
int index );
155 void updateLayerFields();
192 #endif // QGSVECTORLAYEREDITBUFFER_H
const QgsGeometryMap & changedGeometries()
Changed geometries which are not commited.
QMap< QgsFeatureId, QgsGeometry > QgsGeometryMap
QMap< int, QVariant > QgsAttributeMap
QSet< QgsFeatureId > QgsFeatureIds
QList< QgsFeature > QgsFeatureList
const QgsChangedAttributesMap & changedAttributeValues()
Changed attributes values which are not commited.
Container of fields for a vector layer.
QgsChangedAttributesMap mChangedAttributeValues
Changed attributes values which are not commited.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QSet< int > QgsAttributeIds
QgsGeometryMap mChangedGeometries
Changed geometries which are not commited.
QList< int > QgsAttributeList
const QgsFeatureIds deletedFeatureIds()
QList< int > QgsAttributeList
QgsFeatureIds mDeletedFeatureIds
Deleted feature IDs which are not commited.
Encapsulate a field in an attribute table or data source.
const QList< QgsField > & addedAttributes()
added attributes fields which are not commited
const QgsFeatureMap & addedFeatures()
New features which are not commited.
QMap< QgsFeatureId, QgsFeature > QgsFeatureMap
QList< QgsField > mAddedAttributes
added attributes fields which are not commited
QMap< QgsFeatureId, QgsAttributeMap > QgsChangedAttributesMap
QgsFeatureMap mAddedFeatures
New features which are not commited.
Represents a vector layer which manages a vector based data sets.
const QgsAttributeList & deletedAttributeIds()
deleted attributes fields which are not commited.
QgsAttributeList mDeletedAttributeIds
deleted attributes fields which are not commited.