Undo/Redo action for removing items from the chart of accounts. More...
#include <FdCommandsCoa.hpp>
Public Member Functions | |
FdCoaRemove (FdModelCoa *coa, QList< FdItemCoa_p > selected) | |
void | redo () |
void | undo () |
Private Attributes | |
FdModelCoa * | mCoa |
QList< locationCoa > | mMap |
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.
Definition at line 109 of file FdCommandsCoa.hpp.
FdCoaRemove::FdCoaRemove | ( | FdModelCoa * | coa, |
QList< FdItemCoa_p > | selected | ||
) |
Definition at line 132 of file FdCommandsCoa.cpp.
void FdCoaRemove::redo | ( | ) |
Definition at line 158 of file FdCommandsCoa.cpp.
void FdCoaRemove::undo | ( | ) |
Definition at line 166 of file FdCommandsCoa.cpp.
|
private |
Definition at line 116 of file FdCommandsCoa.hpp.
|
private |
Definition at line 117 of file FdCommandsCoa.hpp.