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 );
114 void undoIndexChanged(
int index );
118 void layerModified();
123 void attributeValueChanged(
QgsFeatureId fid,
int idx,
const QVariant & );
124 void attributeAdded(
int idx );
125 void attributeDeleted(
int idx );
129 void committedAttributesDeleted(
const QString& layerId,
const QgsAttributeList& deletedAttributes );
130 void committedAttributesAdded(
const QString& layerId,
const QList<QgsField>& addedAttributes );
131 void committedFeaturesAdded(
const QString& layerId,
const QgsFeatureList& addedFeatures );
132 void committedFeaturesRemoved(
const QString& layerId,
const QgsFeatureIds& deletedFeatureIds );
133 void committedAttributeValuesChanges(
const QString& layerId,
const QgsChangedAttributesMap& changedAttributesValues );
134 void committedGeometriesChanges(
const QString& layerId,
const QgsGeometryMap& changedGeometries );
144 void updateChangedAttributes(
QgsFeature &f );
147 void handleAttributeAdded(
int index );
150 void handleAttributeDeleted(
int index );
156 void updateLayerFields();
193 #endif // QGSVECTORLAYEREDITBUFFER_H