FreeDebks  1.0.3
 All Classes Files Functions Variables Friends Pages
Public Member Functions | Private Attributes | List of all members
FdCoaSetData Class Reference

Undo/Redo action for setting item data. More...

#include <FdCommandsCoa.hpp>

Collaboration diagram for FdCoaSetData:
Collaboration graph
[legend]

Public Member Functions

 FdCoaSetData (FdModelCoa *coa, FdItemCoa_p item, CoaColumn column, QVariant newValue)
void redo ()
void undo ()

Private Attributes

FdModelCoamCoa
FdItemCoa_p mItem
CoaColumn mColumn
QVariant mOldValue
QVariant mNewValue

Detailed Description

Undo/Redo action for setting item data.

The QUndoCommand manages data change for the item mItem at column mColumn. In order to be undoable/redoable, the old value is stored in mOldValue and the new one in mNewValue.

Definition at line 80 of file FdCommandsCoa.hpp.

Constructor & Destructor Documentation

FdCoaSetData::FdCoaSetData ( FdModelCoa coa,
FdItemCoa_p  item,
CoaColumn  column,
QVariant  newValue 
)

Definition at line 97 of file FdCommandsCoa.cpp.

Member Function Documentation

void FdCoaSetData::redo ( )

Definition at line 121 of file FdCommandsCoa.cpp.

void FdCoaSetData::undo ( )

Definition at line 126 of file FdCommandsCoa.cpp.

Member Data Documentation

FdModelCoa* FdCoaSetData::mCoa
private

Definition at line 87 of file FdCommandsCoa.hpp.

CoaColumn FdCoaSetData::mColumn
private

Definition at line 89 of file FdCommandsCoa.hpp.

FdItemCoa_p FdCoaSetData::mItem
private

Definition at line 88 of file FdCommandsCoa.hpp.

QVariant FdCoaSetData::mNewValue
private

Definition at line 91 of file FdCommandsCoa.hpp.

QVariant FdCoaSetData::mOldValue
private

Definition at line 90 of file FdCommandsCoa.hpp.


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