16 #ifndef QGSVECTORLAYERUNDOCOMMAND_H 17 #define QGSVECTORLAYERUNDOCOMMAND_H 19 #include <QUndoCommand> 55 virtual int id()
const override {
return -1; }
79 virtual void undo()
override;
80 virtual void redo()
override;
102 virtual void undo()
override;
103 virtual void redo()
override;
127 virtual void undo()
override;
128 virtual void redo()
override;
129 virtual int id()
const override;
156 virtual void undo()
override;
157 virtual void redo()
override;
182 virtual void undo()
override;
183 virtual void redo()
override;
205 virtual void undo()
override;
206 virtual void redo()
override;
237 virtual void undo()
override;
238 virtual void redo()
override;
Undo command for removing an existing attribute from a vector layer.
virtual bool mergeWith(const QUndoCommand *) override
Undo command for deleting a feature from a vector layer.
virtual int id() const override
QgsVectorLayerEditBuffer * mBuffer
Associated edit buffer.
QgsGeometryCache * cache()
Base class for undo commands within a QgsVectorLayerEditBuffer.
Undo command for modifying an attribute of a feature from a vector layer.
A geometry is the spatial representation of a feature.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Undo command for adding a feature to a vector layer.
Undo command for modifying the geometry of a feature from a vector layer.
QVariantMap QgsEditorWidgetConfig
Holds a set of configuration parameters for a editor widget wrapper.
QgsVectorLayer * layer()
Returns the layer associated with the undo command.
Undo command for renaming an existing attribute of a vector layer.
Encapsulate a field in an attribute table or data source.
Undo command for adding a new attribute to a vector layer.
QgsVectorLayerUndoCommand(QgsVectorLayerEditBuffer *buffer)
Constructor for QgsVectorLayerUndoCommand.
Represents a vector layer which manages a vector based data sets.