15 #ifndef QGSVECTORLAYEREDITBUFFER_H
16 #define QGSVECTORLAYEREDITBUFFER_H
41 bool isModified()
const;
60 bool changeAttributeValue(
QgsFeatureId fid,
int field,
const QVariant &newValue,
const QVariant &oldValue = QVariant() );
65 bool addAttribute(
const QgsField &field );
68 bool deleteAttribute(
int attr );
86 bool commitChanges( QStringList& commitErrors );
112 void undoIndexChanged(
int index );
116 void layerModified();
121 void attributeValueChanged(
QgsFeatureId fid,
int idx,
const QVariant & );
122 void attributeAdded(
int idx );
123 void attributeDeleted(
int idx );
126 void committedAttributesDeleted(
const QString& layerId,
const QgsAttributeList& deletedAttributes );
127 void committedAttributesAdded(
const QString& layerId,
const QList<QgsField>& addedAttributes );
128 void committedFeaturesAdded(
const QString& layerId,
const QgsFeatureList& addedFeatures );
129 void committedFeaturesRemoved(
const QString& layerId,
const QgsFeatureIds& deletedFeatureIds );
130 void committedAttributeValuesChanges(
const QString& layerId,
const QgsChangedAttributesMap& changedAttributesValues );
131 void committedGeometriesChanges(
const QString& layerId,
const QgsGeometryMap& changedGeometries );
141 void updateChangedAttributes(
QgsFeature &f );
144 void handleAttributeAdded(
int index );
147 void handleAttributeDeleted(
int index );
153 void updateLayerFields();
190 #endif // QGSVECTORLAYEREDITBUFFER_H