|
QGIS API Documentation
master-3f58142
|
#include <qgsvectorlayerundocommand.h>
Inheritance diagram for QgsVectorLayerUndoCommandAddAttribute:
Collaboration diagram for QgsVectorLayerUndoCommandAddAttribute:Public Member Functions | |
| QgsVectorLayerUndoCommandAddAttribute (QgsVectorLayerEditBuffer *buffer, const QgsField &field) | |
| virtual void | redo () |
| virtual void | undo () |
Private Attributes | |
| QgsField | mField |
| int | mFieldIndex |
Definition at line 106 of file qgsvectorlayerundocommand.h.
| QgsVectorLayerUndoCommandAddAttribute::QgsVectorLayerUndoCommandAddAttribute | ( | QgsVectorLayerEditBuffer * | buffer, |
| const QgsField & | field | ||
| ) |
Definition at line 300 of file qgsvectorlayerundocommand.cpp.
References QgsFields::count(), QgsVectorLayerUndoCommand::layer(), mFieldIndex, and QgsVectorLayer::pendingFields().
| void QgsVectorLayerUndoCommandAddAttribute::redo | ( | ) | [virtual] |
Definition at line 318 of file qgsvectorlayerundocommand.cpp.
References QgsVectorLayerEditBuffer::attributeAdded(), QgsVectorLayerEditBuffer::handleAttributeAdded(), QgsVectorLayerEditBuffer::mAddedAttributes, QgsVectorLayerUndoCommand::mBuffer, mField, mFieldIndex, and QgsVectorLayerEditBuffer::updateLayerFields().
| void QgsVectorLayerUndoCommandAddAttribute::undo | ( | ) | [virtual] |
Definition at line 307 of file qgsvectorlayerundocommand.cpp.
References QgsVectorLayerEditBuffer::attributeDeleted(), QgsFields::fieldOriginIndex(), QgsVectorLayerEditBuffer::handleAttributeDeleted(), QgsVectorLayerUndoCommand::layer(), QgsVectorLayerEditBuffer::mAddedAttributes, QgsVectorLayerUndoCommand::mBuffer, mFieldIndex, QgsVectorLayer::pendingFields(), and QgsVectorLayerEditBuffer::updateLayerFields().
Definition at line 115 of file qgsvectorlayerundocommand.h.
Referenced by redo().
int QgsVectorLayerUndoCommandAddAttribute::mFieldIndex [private] |
Definition at line 116 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandAddAttribute(), redo(), and undo().