16#ifndef QGSVECTORLAYERUNDOPASSTHROUGHCOMMAND_H
17#define QGSVECTORLAYERUNDOPASSTHROUGHCOMMAND_H
57 bool rollBackToSavePoint();
65 bool setSavePoint(
const QString &savePointId = QString() );
77 void setErrorMessage(
const QString &errorMessage );
84 QString errorMessage()
const;
90 bool mRecreateSavePoint;
111 void undo()
override;
112 void redo()
override;
143 void undo()
override;
144 void redo()
override;
171 void undo()
override;
172 void redo()
override;
174 int id()
const override {
return 1; }
175 bool mergeWith(
const QUndoCommand *other )
override;
181 bool mFirstChange =
true;
204 void undo()
override;
205 void redo()
override;
209 const int mFieldIndex;
210 const QVariant mNewValue;
235 void undo()
override;
236 void redo()
override;
242 QMap<int, bool> mFirstChanges;
263 void undo()
override;
264 void redo()
override;
288 void undo()
override;
289 void redo()
override;
293 const int mOriginalFieldIndex;
315 void undo()
override;
316 void redo()
override;
320 const QString mNewName;
321 const QString mOldName;
344 void undo()
override;
345 void redo()
override;
350 bool mUndone =
false;
Encapsulate a field in an attribute table or data source.
A geometry is the spatial representation of a feature.
This class allows including a set of layers in a database-side transaction, provided the layer data p...
Base class for undo commands within a QgsVectorLayerEditBuffer.
bool mergeWith(const QUndoCommand *) override
Undo command for adding attri to a vector layer in transaction group.
Undo command for adding a feature to a vector layer in transaction group mode.
QgsFeatureList features() const
List of features (added feaures can be modified by default values from database)
Undo command for changing attr value from a vector layer in transaction group.
Undo command for changing attributes' values from a vector layer in transaction group.
Undo command for changing feature geometry from a vector layer in transaction group.
Undo command for deleting attri of a vector layer in transaction group.
Undo command for deleting features from a vector layer in transaction group.
Undo command for deleting attri of a vector layer in transaction group.
Undo command for running a specific sql query in transaction group.
Undo command for vector layer in transaction group mode.
bool hasError() const
Returns error status.
QMap< int, QVariant > QgsAttributeMap
QList< QgsFeature > QgsFeatureList
QSet< QgsFeatureId > QgsFeatureIds
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features
QMap< QgsFeatureId, QgsFeature > QgsFeatureMap