15 #ifndef QGSVECTORLAYEREDITBUFFER_H
16 #define QGSVECTORLAYEREDITBUFFER_H
41 virtual bool isModified()
const;
60 virtual bool changeAttributeValue(
QgsFeatureId fid,
int field,
const QVariant &newValue,
const QVariant &oldValue = QVariant() );
64 virtual bool addAttribute(
const QgsField &field );
67 virtual bool deleteAttribute(
int attr );
85 virtual bool commitChanges( QStringList& commitErrors );
88 virtual void rollBack();
111 void undoIndexChanged(
int index );
115 void layerModified();
120 void attributeValueChanged(
QgsFeatureId fid,
int idx,
const QVariant & );
121 void attributeAdded(
int idx );
122 void attributeDeleted(
int idx );
125 void committedAttributesDeleted(
const QString& layerId,
const QgsAttributeList& deletedAttributes );
126 void committedAttributesAdded(
const QString& layerId,
const QList<QgsField>& addedAttributes );
127 void committedFeaturesAdded(
const QString& layerId,
const QgsFeatureList& addedFeatures );
128 void committedFeaturesRemoved(
const QString& layerId,
const QgsFeatureIds& deletedFeatureIds );
129 void committedAttributeValuesChanges(
const QString& layerId,
const QgsChangedAttributesMap& changedAttributesValues );
130 void committedGeometriesChanges(
const QString& layerId,
const QgsGeometryMap& changedGeometries );
142 void updateChangedAttributes(
QgsFeature &f );
145 void handleAttributeAdded(
int index );
148 void handleAttributeDeleted(
int index );
154 void updateLayerFields();
191 #endif // QGSVECTORLAYEREDITBUFFER_H