QGIS API Documentation
2.2.0-Valmiera
|
#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 310 of file qgsvectorlayerundocommand.cpp.
References QgsFields::count(), QgsFields::fieldOrigin(), QgsVectorLayerUndoCommand::layer(), mFieldIndex, QgsFields::OriginJoin, and QgsVectorLayer::pendingFields().
|
virtual |
Definition at line 332 of file qgsvectorlayerundocommand.cpp.
References QgsVectorLayerEditBuffer::attributeAdded(), QgsVectorLayerEditBuffer::handleAttributeAdded(), QgsVectorLayerEditBuffer::mAddedAttributes, QgsVectorLayerUndoCommand::mBuffer, mField, mFieldIndex, and QgsVectorLayerEditBuffer::updateLayerFields().
|
virtual |
Definition at line 321 of file qgsvectorlayerundocommand.cpp.
References QgsVectorLayerEditBuffer::attributeDeleted(), QgsFields::fieldOriginIndex(), QgsVectorLayerEditBuffer::handleAttributeDeleted(), index, 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().