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

Undo/Redo action for removing calculations. More...

#include <FdCommandsResults.hpp>

Collaboration diagram for FdResultsRemove:
Collaboration graph
[legend]

Public Member Functions

 FdResultsRemove (FdModelResults *model, QList< int > rows)
 FdResultsRemove (FdModelResults *model, QList< locationResults > location)
void redo ()
void undo ()

Private Member Functions

void init ()

Private Attributes

FdModelResultsmModel
QList< locationResultsmMap

Detailed Description

Undo/Redo action for removing calculations.

This QUndoCommand make it possible to undo/redo suppression of rows.

The constructor will get a QList of pointers to the corresponding FdItemResults. Index of calculations is neither absolute nor user defined. We store old items with the correspond rows in mMap, a QList of locationResults.

Definition at line 93 of file FdCommandsResults.hpp.

Constructor & Destructor Documentation

FdResultsRemove::FdResultsRemove ( FdModelResults model,
QList< int >  rows 
)

Definition at line 104 of file FdCommandsResults.cpp.

FdResultsRemove::FdResultsRemove ( FdModelResults model,
QList< locationResults location 
)

Definition at line 117 of file FdCommandsResults.cpp.

Member Function Documentation

void FdResultsRemove::init ( )
private

Definition at line 123 of file FdCommandsResults.cpp.

void FdResultsRemove::redo ( )

Definition at line 128 of file FdCommandsResults.cpp.

void FdResultsRemove::undo ( )

Definition at line 134 of file FdCommandsResults.cpp.

Member Data Documentation

QList<locationResults> FdResultsRemove::mMap
private

Definition at line 103 of file FdCommandsResults.hpp.

FdModelResults* FdResultsRemove::mModel
private

Definition at line 102 of file FdCommandsResults.hpp.


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