15 #ifndef QGSVECTORLAYEREDITBUFFER_H
16 #define QGSVECTORLAYEREDITBUFFER_H
41 virtual bool isModified()
const;
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();
121 void attributeAdded(
int idx );
122 void attributeDeleted(
int idx );
128 void committedFeaturesRemoved(
const QString& layerId,
const QgsFeatureIds& deletedFeatureIds );
142 void updateChangedAttributes(
QgsFeature &f );
145 void handleAttributeAdded(
int index );
148 void handleAttributeDeleted(
int index );
154 void updateLayerFields();
191 #endif // QGSVECTORLAYEREDITBUFFER_H
const QgsGeometryMap & changedGeometries()
Changed geometries which are not commited.
QgsVectorLayerEditBuffer()
const QgsChangedAttributesMap & changedAttributeValues()
Changed attributes values which are not commited.
Container of fields for a vector layer.
A geometry is the spatial representation of a feature.
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.
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
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.