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

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

#include <FdCommandsResults.hpp>

Collaboration diagram for FdResultsSetData:
Collaboration graph
[legend]

Public Member Functions

 FdResultsSetData (FdModelResults *results, FdItemResults_p calculation, ResultsColumn column, QVariant newValue)
void redo ()
void undo ()

Private Attributes

FdModelResultsmResults
FdItemResults_p mCalculation
ResultsColumn mColumn
QVariant mOldValue
QVariant mNewValue

Detailed Description

Undo/Redo action for setting calculations data.

The QUndoCommand manages data change for the calculation mCalculation 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 73 of file FdCommandsResults.hpp.

Constructor & Destructor Documentation

FdResultsSetData::FdResultsSetData ( FdModelResults results,
FdItemResults_p  calculation,
ResultsColumn  column,
QVariant  newValue 
)

Definition at line 77 of file FdCommandsResults.cpp.

Member Function Documentation

void FdResultsSetData::redo ( )

Definition at line 94 of file FdCommandsResults.cpp.

void FdResultsSetData::undo ( )

Definition at line 99 of file FdCommandsResults.cpp.

Member Data Documentation

FdItemResults_p FdResultsSetData::mCalculation
private

Definition at line 81 of file FdCommandsResults.hpp.

ResultsColumn FdResultsSetData::mColumn
private

Definition at line 82 of file FdCommandsResults.hpp.

QVariant FdResultsSetData::mNewValue
private

Definition at line 84 of file FdCommandsResults.hpp.

QVariant FdResultsSetData::mOldValue
private

Definition at line 83 of file FdCommandsResults.hpp.

FdModelResults* FdResultsSetData::mResults
private

Definition at line 80 of file FdCommandsResults.hpp.


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