16#ifndef QGSVECTORLAYERUNDOPASSTHROUGHCOMMAND_H
17#define QGSVECTORLAYERUNDOPASSTHROUGHCOMMAND_H
56 bool rollBackToSavePoint();
64 bool setSavePoint(
const QString &savePointId = QString() );
75 void setErrorMessage(
const QString &errorMessage );
81 QString errorMessage()
const;
87 bool mRecreateSavePoint;
107 void undo()
override;
108 void redo()
override;
138 void undo()
override;
139 void redo()
override;
165 void undo()
override;
166 void redo()
override;
168 int id()
const override {
return 1; }
169 bool mergeWith(
const QUndoCommand *other )
override;
175 bool mFirstChange =
true;
197 void undo()
override;
198 void redo()
override;
202 const int mFieldIndex;
203 const QVariant mNewValue;
227 void undo()
override;
228 void redo()
override;
234 QMap<int, bool> mFirstChanges;
254 void undo()
override;
255 void redo()
override;
278 void undo()
override;
279 void redo()
override;
283 const int mOriginalFieldIndex;
304 void undo()
override;
305 void redo()
override;
309 const QString mNewName;
310 const QString mOldName;
332 void undo()
override;
333 void redo()
override;
338 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