|
QGIS API Documentation
master-59fd5e0
|
#include <qgsvectorlayerundocommand.h>
Inheritance diagram for QgsVectorLayerUndoCommandChangeAttribute:
Collaboration diagram for QgsVectorLayerUndoCommandChangeAttribute:Public Member Functions | |
| QgsVectorLayerUndoCommandChangeAttribute (QgsVectorLayerEditBuffer *buffer, QgsFeatureId fid, int fieldIndex, const QVariant &newValue) | |
| virtual void | redo () |
| virtual void | undo () |
Private Attributes | |
| QgsFeatureId | mFid |
| int | mFieldIndex |
| bool | mFirstChange |
| QVariant | mNewValue |
| QVariant | mOldValue |
Definition at line 98 of file qgsvectorlayerundocommand.h.
| QgsVectorLayerUndoCommandChangeAttribute::QgsVectorLayerUndoCommandChangeAttribute | ( | QgsVectorLayerEditBuffer * | buffer, |
| QgsFeatureId | fid, | ||
| int | fieldIndex, | ||
| const QVariant & | newValue | ||
| ) |
Definition at line 217 of file qgsvectorlayerundocommand.cpp.
References FID_IS_NEW, QgsVectorLayerEditBuffer::mAddedFeatures, QgsVectorLayerUndoCommand::mBuffer, QgsVectorLayerEditBuffer::mChangedAttributeValues, mFid, mFieldIndex, mFirstChange, and mOldValue.
| void QgsVectorLayerUndoCommandChangeAttribute::redo | ( | ) | [virtual] |
Definition at line 285 of file qgsvectorlayerundocommand.cpp.
References QgsVectorLayerEditBuffer::attributeValueChanged(), FID_IS_NEW, QgsVectorLayerEditBuffer::mAddedFeatures, QgsVectorLayerUndoCommand::mBuffer, QgsVectorLayerEditBuffer::mChangedAttributeValues, mFid, mFieldIndex, and mNewValue.
| void QgsVectorLayerUndoCommandChangeAttribute::undo | ( | ) | [virtual] |
Definition at line 246 of file qgsvectorlayerundocommand.cpp.
References QgsFeature::attribute(), QgsVectorLayerEditBuffer::attributeValueChanged(), FID_IS_NEW, QgsVectorLayer::getFeatures(), QgsVectorLayerUndoCommand::layer(), QgsVectorLayerEditBuffer::mAddedFeatures, QgsVectorLayerUndoCommand::mBuffer, QgsVectorLayerEditBuffer::mChangedAttributeValues, mFid, mFieldIndex, mFirstChange, mOldValue, QgsFeatureIterator::nextFeature(), QgsFeatureRequest::NoGeometry, QgsFeatureRequest::setFilterFid(), QgsFeatureRequest::setFlags(), and QgsFeatureRequest::setSubsetOfAttributes().
Definition at line 106 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandChangeAttribute(), redo(), and undo().
int QgsVectorLayerUndoCommandChangeAttribute::mFieldIndex [private] |
Definition at line 107 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandChangeAttribute(), redo(), and undo().
bool QgsVectorLayerUndoCommandChangeAttribute::mFirstChange [private] |
Definition at line 110 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandChangeAttribute(), and undo().
QVariant QgsVectorLayerUndoCommandChangeAttribute::mNewValue [private] |
Definition at line 109 of file qgsvectorlayerundocommand.h.
Referenced by redo().
QVariant QgsVectorLayerUndoCommandChangeAttribute::mOldValue [private] |
Definition at line 108 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandChangeAttribute(), and undo().