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

Undo/Redo action for removing items from the chart of accounts. More...

#include <FdCommandsCoa.hpp>

Collaboration diagram for FdCoaRemove:
Collaboration graph
[legend]

Public Member Functions

 FdCoaRemove (FdModelCoa *coa, QList< FdItemCoa_p > selected)
void redo ()
void undo ()

Private Attributes

FdModelCoamCoa
QList< locationCoamMap

Detailed Description

Undo/Redo action for removing items from the chart of accounts.

Items may be removed from different parent at the same time. In order to keep this action undoable, we need to know which item comes from wich parent and where it was placed in its parent children list. Therefore, this class has a private member mMap, mapping moved items with their old parent and row, a QList of #location.

See Also
FdModelCoa::removeSelected().

Definition at line 109 of file FdCommandsCoa.hpp.

Constructor & Destructor Documentation

FdCoaRemove::FdCoaRemove ( FdModelCoa coa,
QList< FdItemCoa_p >  selected 
)

Definition at line 132 of file FdCommandsCoa.cpp.

Member Function Documentation

void FdCoaRemove::redo ( )

Definition at line 158 of file FdCommandsCoa.cpp.

void FdCoaRemove::undo ( )

Definition at line 166 of file FdCommandsCoa.cpp.

Member Data Documentation

FdModelCoa* FdCoaRemove::mCoa
private

Definition at line 116 of file FdCommandsCoa.hpp.

QList<locationCoa> FdCoaRemove::mMap
private

Definition at line 117 of file FdCommandsCoa.hpp.


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