16#ifndef QGSVECTORLAYERUNDOCOMMAND_H
17#define QGSVECTORLAYERUNDOCOMMAND_H
21#include <QUndoCommand>
55 int id()
const override {
return -1; }
56 bool mergeWith(
const QUndoCommand * )
override {
return false; }
106 void undo()
override;
107 void redo()
override;
132 void undo()
override;
133 void redo()
override;
134 int id()
const override {
return 1; }
135 bool mergeWith(
const QUndoCommand *other )
override;
163 void undo()
override;
164 void redo()
override;
191 void undo()
override;
192 void redo()
override;
216 void undo()
override;
217 void redo()
override;
225 QVariantMap mOldEditorWidgetConfig;
227 QMap<QgsFeatureId, QVariant> mDeletedValues;
250 void undo()
override;
251 void redo()
override;
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Encapsulate a field in an attribute table or data source.
A geometry is the spatial representation of a feature.
Undo command for adding a new attribute to a vector layer.
Undo command for adding a feature to a vector layer.
Undo command for modifying an attribute of a feature from a vector layer.
Undo command for modifying the geometry of a feature from a vector layer.
Undo command for removing an existing attribute from a vector layer.
Undo command for deleting a feature from a vector layer.
Undo command for renaming an existing attribute of a vector layer.
Base class for undo commands within a QgsVectorLayerEditBuffer.
QgsVectorLayer * layer()
Returns the layer associated with the undo command.
bool mergeWith(const QUndoCommand *) override
QgsVectorLayerUndoCommand(QgsVectorLayerEditBuffer *buffer)
Constructor for QgsVectorLayerUndoCommand.
Represents a vector layer which manages a vector based data sets.
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features