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

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

#include <FdCommandsJournal.hpp>

Collaboration diagram for FdJournalSetData:
Collaboration graph
[legend]

Public Member Functions

 FdJournalSetData (FdModelJournal *journal, FdItemJournal_p entry, JournalColumn column, QVariant newValue, QUndoCommand *parent=0)
void redo ()
void undo ()

Private Attributes

FdModelJournalmJournal
FdItemJournal_p mEntry
JournalColumn mColumn
QVariant mOldValue
QVariant mNewValue

Detailed Description

Undo/Redo action for setting entry data.

The QUndoCommand manages data change for the entry mEntry 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 31 of file FdCommandsJournal.hpp.

Constructor & Destructor Documentation

FdJournalSetData::FdJournalSetData ( FdModelJournal journal,
FdItemJournal_p  entry,
JournalColumn  column,
QVariant  newValue,
QUndoCommand *  parent = 0 
)

Definition at line 24 of file FdCommandsJournal.cpp.

Member Function Documentation

void FdJournalSetData::redo ( )

Definition at line 53 of file FdCommandsJournal.cpp.

void FdJournalSetData::undo ( )

Definition at line 58 of file FdCommandsJournal.cpp.

Member Data Documentation

JournalColumn FdJournalSetData::mColumn
private

Definition at line 36 of file FdCommandsJournal.hpp.

FdItemJournal_p FdJournalSetData::mEntry
private

Definition at line 35 of file FdCommandsJournal.hpp.

FdModelJournal* FdJournalSetData::mJournal
private

Definition at line 34 of file FdCommandsJournal.hpp.

QVariant FdJournalSetData::mNewValue
private

Definition at line 38 of file FdCommandsJournal.hpp.

QVariant FdJournalSetData::mOldValue
private

Definition at line 37 of file FdCommandsJournal.hpp.


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