QGIS API Documentation
2.0.1-Dufour
|
#include <qgsvectorlayerundocommand.h>
Public Member Functions | |
QgsVectorLayerUndoCommandChangeAttribute (QgsVectorLayerEditBuffer *buffer, QgsFeatureId fid, int fieldIndex, const QVariant &newValue) | |
virtual void | undo () |
virtual void | redo () |
Public Member Functions inherited from QgsVectorLayerUndoCommand | |
QgsVectorLayerUndoCommand (QgsVectorLayerEditBuffer *buffer) | |
QgsVectorLayer * | layer () |
QgsGeometryCache * | cache () |
virtual int | id () const |
virtual bool | mergeWith (QUndoCommand *) |
Private Attributes | |
QgsFeatureId | mFid |
int | mFieldIndex |
QVariant | mOldValue |
QVariant | mNewValue |
bool | mFirstChange |
Additional Inherited Members | |
Protected Attributes inherited from QgsVectorLayerUndoCommand | |
QgsVectorLayerEditBuffer * | mBuffer |
Definition at line 98 of file qgsvectorlayerundocommand.h.
QgsVectorLayerUndoCommandChangeAttribute::QgsVectorLayerUndoCommandChangeAttribute | ( | QgsVectorLayerEditBuffer * | buffer, |
QgsFeatureId | fid, | ||
int | fieldIndex, | ||
const QVariant & | newValue | ||
) |
Definition at line 220 of file qgsvectorlayerundocommand.cpp.
References FID_IS_NEW, QgsVectorLayerEditBuffer::mAddedFeatures, QgsVectorLayerUndoCommand::mBuffer, QgsVectorLayerEditBuffer::mChangedAttributeValues, mFid, mFieldIndex, mFirstChange, and mOldValue.
|
virtual |
Definition at line 288 of file qgsvectorlayerundocommand.cpp.
References QgsVectorLayerEditBuffer::attributeValueChanged(), FID_IS_NEW, QgsVectorLayerEditBuffer::mAddedFeatures, QgsVectorLayerUndoCommand::mBuffer, QgsVectorLayerEditBuffer::mChangedAttributeValues, mFid, mFieldIndex, and mNewValue.
|
virtual |
Definition at line 249 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().
|
private |
Definition at line 106 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandChangeAttribute(), redo(), and undo().
|
private |
Definition at line 107 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandChangeAttribute(), redo(), and undo().
|
private |
Definition at line 110 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandChangeAttribute(), and undo().
|
private |
Definition at line 109 of file qgsvectorlayerundocommand.h.
Referenced by redo().
|
private |
Definition at line 108 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandChangeAttribute(), and undo().