16 #ifndef QGSVECTORLAYERUNDOCOMMAND_H
17 #define QGSVECTORLAYERUNDOCOMMAND_H
19 #include <QUndoCommand>
45 virtual int id()
const {
return -1; }
46 virtual bool mergeWith( QUndoCommand * ) {
return false; }
88 virtual int id()
const;
89 virtual bool mergeWith(
const QUndoCommand * );
QMap< QgsFeatureId, QVariant > mDeletedValues
QgsVectorLayerUndoCommandAddFeature(QgsVectorLayerEditBuffer *buffer, QgsFeature &f)
virtual bool mergeWith(QUndoCommand *)
QgsVectorLayerEditBuffer * mBuffer
QgsGeometryCache * cache()
A geometry is the spatial representation of a feature.
~QgsVectorLayerUndoCommandChangeGeometry()
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QgsVectorLayerUndoCommandAddAttribute(QgsVectorLayerEditBuffer *buffer, const QgsField &field)
QgsGeometryCache * cache()
QgsVectorLayerUndoCommandDeleteAttribute(QgsVectorLayerEditBuffer *buffer, int fieldIndex)
QgsFeature mOldAddedFeature
Encapsulate a field in an attribute table or data source.
QgsVectorLayerUndoCommandChangeAttribute(QgsVectorLayerEditBuffer *buffer, QgsFeatureId fid, int fieldIndex, const QVariant &newValue)
QgsVectorLayerUndoCommand(QgsVectorLayerEditBuffer *buffer)
virtual bool mergeWith(const QUndoCommand *)
QgsVectorLayerUndoCommandChangeGeometry(QgsVectorLayerEditBuffer *buffer, QgsFeatureId fid, QgsGeometry *newGeom)
QgsVectorLayerUndoCommandDeleteFeature(QgsVectorLayerEditBuffer *buffer, QgsFeatureId fid)
Represents a vector layer which manages a vector based data sets.