OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
CSMWorld::ModifyCommand Class Reference

#include <commands.hpp>

Inheritance diagram for CSMWorld::ModifyCommand:
Collaboration diagram for CSMWorld::ModifyCommand:

Public Member Functions

 ModifyCommand (QAbstractItemModel &model, const QModelIndex &index, const QVariant &new_, QUndoCommand *parent=0)
 
virtual void redo ()
 
virtual void undo ()
 

Private Attributes

QAbstractItemModelmModel
 
QModelIndex mIndex
 
QVariant mNew
 
QVariant mOld
 
bool mHasRecordState
 
QModelIndex mRecordStateIndex
 
CSMWorld::RecordBase::State mOldRecordState
 

Constructor & Destructor Documentation

CSMWorld::ModifyCommand::ModifyCommand ( QAbstractItemModel model,
const QModelIndex &  index,
const QVariant &  new_,
QUndoCommand parent = 0 
)

Here is the call graph for this function:

Member Function Documentation

void CSMWorld::ModifyCommand::redo ( )
virtual
void CSMWorld::ModifyCommand::undo ( )
virtual

Member Data Documentation

bool CSMWorld::ModifyCommand::mHasRecordState
private
QModelIndex CSMWorld::ModifyCommand::mIndex
private
QAbstractItemModel* CSMWorld::ModifyCommand::mModel
private
QVariant CSMWorld::ModifyCommand::mNew
private
QVariant CSMWorld::ModifyCommand::mOld
private
CSMWorld::RecordBase::State CSMWorld::ModifyCommand::mOldRecordState
private
QModelIndex CSMWorld::ModifyCommand::mRecordStateIndex
private

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