QGIS API Documentation
2.2.0-Valmiera
|
#include <qgsvectorlayerundocommand.h>
Public Member Functions | |
QgsVectorLayerUndoCommandDeleteFeature (QgsVectorLayerEditBuffer *buffer, QgsFeatureId fid) | |
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 |
QgsFeature | mOldAddedFeature |
Additional Inherited Members | |
Protected Attributes inherited from QgsVectorLayerUndoCommand | |
QgsVectorLayerEditBuffer * | mBuffer |
Definition at line 66 of file qgsvectorlayerundocommand.h.
QgsVectorLayerUndoCommandDeleteFeature::QgsVectorLayerUndoCommandDeleteFeature | ( | QgsVectorLayerEditBuffer * | buffer, |
QgsFeatureId | fid | ||
) |
Definition at line 71 of file qgsvectorlayerundocommand.cpp.
References FID_IS_NEW, QgsVectorLayerEditBuffer::mAddedFeatures, QgsVectorLayerUndoCommand::mBuffer, mFid, and mOldAddedFeature.
|
virtual |
Definition at line 98 of file qgsvectorlayerundocommand.cpp.
References QgsVectorLayerEditBuffer::featureDeleted(), FID_IS_NEW, QgsVectorLayerEditBuffer::mAddedFeatures, QgsVectorLayerUndoCommand::mBuffer, QgsVectorLayerEditBuffer::mDeletedFeatureIds, and mFid.
|
virtual |
Definition at line 84 of file qgsvectorlayerundocommand.cpp.
References QgsVectorLayerEditBuffer::featureAdded(), FID_IS_NEW, QgsFeature::id(), QgsVectorLayerEditBuffer::mAddedFeatures, QgsVectorLayerUndoCommand::mBuffer, QgsVectorLayerEditBuffer::mDeletedFeatureIds, mFid, and mOldAddedFeature.
|
private |
Definition at line 75 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandDeleteFeature(), redo(), and undo().
|
private |
Definition at line 76 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandDeleteFeature(), and undo().