QGIS API Documentation
2.0.1-Dufour
|
#include <qgsvectorlayerundocommand.h>
Public Member Functions | |
QgsVectorLayerUndoCommandAddAttribute (QgsVectorLayerEditBuffer *buffer, const QgsField &field) | |
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 | |
QgsField | mField |
int | mFieldIndex |
Additional Inherited Members | |
Protected Attributes inherited from QgsVectorLayerUndoCommand | |
QgsVectorLayerEditBuffer * | mBuffer |
Definition at line 114 of file qgsvectorlayerundocommand.h.
QgsVectorLayerUndoCommandAddAttribute::QgsVectorLayerUndoCommandAddAttribute | ( | QgsVectorLayerEditBuffer * | buffer, |
const QgsField & | field | ||
) |
Definition at line 312 of file qgsvectorlayerundocommand.cpp.
References QgsFields::count(), QgsVectorLayerUndoCommand::layer(), mFieldIndex, and QgsVectorLayer::pendingFields().
|
virtual |
Definition at line 330 of file qgsvectorlayerundocommand.cpp.
References QgsVectorLayerEditBuffer::attributeAdded(), QgsVectorLayerEditBuffer::handleAttributeAdded(), QgsVectorLayerEditBuffer::mAddedAttributes, QgsVectorLayerUndoCommand::mBuffer, mField, mFieldIndex, and QgsVectorLayerEditBuffer::updateLayerFields().
|
virtual |
Definition at line 319 of file qgsvectorlayerundocommand.cpp.
References QgsVectorLayerEditBuffer::attributeDeleted(), QgsFields::fieldOriginIndex(), QgsVectorLayerEditBuffer::handleAttributeDeleted(), QgsVectorLayerUndoCommand::layer(), QgsVectorLayerEditBuffer::mAddedAttributes, QgsVectorLayerUndoCommand::mBuffer, mFieldIndex, QgsVectorLayer::pendingFields(), and QgsVectorLayerEditBuffer::updateLayerFields().
|
private |
Definition at line 123 of file qgsvectorlayerundocommand.h.
Referenced by redo().
|
private |
Definition at line 124 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandAddAttribute(), redo(), and undo().