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::UpdateCellCommand Class Reference

Update cell ID according to x/y-coordinates. More...

#include <commands.hpp>

Inheritance diagram for CSMWorld::UpdateCellCommand:
Collaboration diagram for CSMWorld::UpdateCellCommand:

Public Member Functions

 UpdateCellCommand (IdTable &model, int row, QUndoCommand *parent=0)
 
virtual void redo ()
 
virtual void undo ()
 

Private Attributes

IdTablemModel
 
int mRow
 
QModelIndex mIndex
 
QVariant mNew
 
QVariant mOld
 

Detailed Description

Update cell ID according to x/y-coordinates.

Note
The new value will be calculated in the first call to redo instead of the constructor to accommodate multiple coordinate-affecting commands being executed in a macro.

Constructor & Destructor Documentation

CSMWorld::UpdateCellCommand::UpdateCellCommand ( IdTable model,
int  row,
QUndoCommand parent = 0 
)

Member Function Documentation

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

Member Data Documentation

QModelIndex CSMWorld::UpdateCellCommand::mIndex
private
IdTable& CSMWorld::UpdateCellCommand::mModel
private
QVariant CSMWorld::UpdateCellCommand::mNew
private
QVariant CSMWorld::UpdateCellCommand::mOld
private
int CSMWorld::UpdateCellCommand::mRow
private

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