QGIS API Documentation
2.0.1-Dufour
|
#include <qgsvectorlayerundocommand.h>
Public Member Functions | |
QgsVectorLayerUndoCommandDeleteAttribute (QgsVectorLayerEditBuffer *buffer, int fieldIndex) | |
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 | |
int | mFieldIndex |
bool | mProviderField |
int | mOriginIndex |
QgsField | mOldField |
QMap< QgsFeatureId, QVariant > | mDeletedValues |
Additional Inherited Members | |
Protected Attributes inherited from QgsVectorLayerUndoCommand | |
QgsVectorLayerEditBuffer * | mBuffer |
Definition at line 128 of file qgsvectorlayerundocommand.h.
QgsVectorLayerUndoCommandDeleteAttribute::QgsVectorLayerUndoCommandDeleteAttribute | ( | QgsVectorLayerEditBuffer * | buffer, |
int | fieldIndex | ||
) |
Definition at line 340 of file qgsvectorlayerundocommand.cpp.
References QgsFeature::attribute(), QgsFields::fieldOrigin(), QgsFields::fieldOriginIndex(), QgsFeature::id(), QgsVectorLayerUndoCommand::layer(), QgsVectorLayerEditBuffer::mAddedAttributes, QgsVectorLayerEditBuffer::mAddedFeatures, QgsVectorLayerUndoCommand::mBuffer, QgsVectorLayerEditBuffer::mChangedAttributeValues, mDeletedValues, mFieldIndex, mOldField, mOriginIndex, mProviderField, QgsFields::OriginProvider, and QgsVectorLayer::pendingFields().
|
virtual |
Definition at line 405 of file qgsvectorlayerundocommand.cpp.
References QgsVectorLayerEditBuffer::attributeDeleted(), QgsVectorLayerEditBuffer::handleAttributeDeleted(), QgsVectorLayerEditBuffer::mAddedAttributes, QgsVectorLayerUndoCommand::mBuffer, QgsVectorLayerEditBuffer::mDeletedAttributeIds, mFieldIndex, mOriginIndex, mProviderField, and QgsVectorLayerEditBuffer::updateLayerFields().
|
virtual |
Definition at line 371 of file qgsvectorlayerundocommand.cpp.
References QgsVectorLayerEditBuffer::attributeAdded(), FID_IS_NEW, QgsVectorLayerEditBuffer::handleAttributeAdded(), QgsFeature::id(), QgsVectorLayerEditBuffer::mAddedAttributes, QgsVectorLayerEditBuffer::mAddedFeatures, QgsVectorLayerUndoCommand::mBuffer, QgsVectorLayerEditBuffer::mChangedAttributeValues, QgsVectorLayerEditBuffer::mDeletedAttributeIds, mDeletedValues, mFieldIndex, mOldField, mOriginIndex, mProviderField, QgsFeature::setAttribute(), and QgsVectorLayerEditBuffer::updateLayerFields().
|
private |
Definition at line 142 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandDeleteAttribute(), and undo().
|
private |
Definition at line 137 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandDeleteAttribute(), redo(), and undo().
|
private |
Definition at line 140 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandDeleteAttribute(), and undo().
|
private |
Definition at line 139 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandDeleteAttribute(), redo(), and undo().
|
private |
Definition at line 138 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandDeleteAttribute(), redo(), and undo().