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
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.