16 #ifndef QGSVECTORLAYERUNDOCOMMAND_H 17 #define QGSVECTORLAYERUNDOCOMMAND_H 19 #include "qgis_core.h" 21 #include <QUndoCommand> 56 int id()
const override {
return -1; }
57 bool mergeWith(
const QUndoCommand * )
override {
return false; }
107 void undo()
override;
108 void redo()
override;
133 void undo()
override;
134 void redo()
override;
135 int id()
const override;
136 bool mergeWith(
const QUndoCommand * )
override;
164 void undo()
override;
165 void redo()
override;
192 void undo()
override;
193 void redo()
override;
217 void undo()
override;
218 void redo()
override;
226 QVariantMap mOldEditorWidgetConfig;
228 QMap<QgsFeatureId, QVariant> mDeletedValues;
252 void undo()
override;
253 void redo()
override;
Undo command for removing an existing attribute from a vector layer.
Undo command for deleting a feature from a vector layer.
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.
bool mergeWith(const QUndoCommand *) override
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.