QGIS API Documentation  2.2.0-Valmiera
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
QgsVectorLayerUndoCommandChangeAttribute Class Reference

#include <qgsvectorlayerundocommand.h>

Inheritance diagram for QgsVectorLayerUndoCommandChangeAttribute:
Inheritance graph
[legend]
Collaboration diagram for QgsVectorLayerUndoCommandChangeAttribute:
Collaboration graph
[legend]

Public Member Functions

 QgsVectorLayerUndoCommandChangeAttribute (QgsVectorLayerEditBuffer *buffer, QgsFeatureId fid, int fieldIndex, const QVariant &newValue, const QVariant &oldValue)
virtual void undo ()
virtual void redo ()
- Public Member Functions inherited from QgsVectorLayerUndoCommand
 QgsVectorLayerUndoCommand (QgsVectorLayerEditBuffer *buffer)
QgsVectorLayerlayer ()
QgsGeometryCachecache ()
virtual int id () const
virtual bool mergeWith (QUndoCommand *)

Private Attributes

QgsFeatureId mFid
int mFieldIndex
QVariant mOldValue
QVariant mNewValue
bool mFirstChange

Additional Inherited Members

- Protected Attributes inherited from QgsVectorLayerUndoCommand
QgsVectorLayerEditBuffermBuffer

Detailed Description

Definition at line 98 of file qgsvectorlayerundocommand.h.

Constructor & Destructor Documentation

QgsVectorLayerUndoCommandChangeAttribute::QgsVectorLayerUndoCommandChangeAttribute ( QgsVectorLayerEditBuffer buffer,
QgsFeatureId  fid,
int  fieldIndex,
const QVariant &  newValue,
const QVariant &  oldValue 
)

Member Function Documentation

void QgsVectorLayerUndoCommandChangeAttribute::redo ( )
virtual
void QgsVectorLayerUndoCommandChangeAttribute::undo ( )
virtual

Member Data Documentation

QgsFeatureId QgsVectorLayerUndoCommandChangeAttribute::mFid
private
int QgsVectorLayerUndoCommandChangeAttribute::mFieldIndex
private
bool QgsVectorLayerUndoCommandChangeAttribute::mFirstChange
private

Definition at line 110 of file qgsvectorlayerundocommand.h.

Referenced by QgsVectorLayerUndoCommandChangeAttribute(), and undo().

QVariant QgsVectorLayerUndoCommandChangeAttribute::mNewValue
private

Definition at line 109 of file qgsvectorlayerundocommand.h.

Referenced by redo().

QVariant QgsVectorLayerUndoCommandChangeAttribute::mOldValue
private

Definition at line 108 of file qgsvectorlayerundocommand.h.

Referenced by QgsVectorLayerUndoCommandChangeAttribute(), and undo().


The documentation for this class was generated from the following files: