Undo/Redo action for adding an item to the chart of accounts. More...
#include <FdCommandsCoa.hpp>
Public Member Functions | |
FdCoaAddItem (FdModelCoa *coa, FdItemCoa_p parent, FdItemCoa_p item, int row) | |
void | redo () |
void | undo () |
Private Attributes | |
FdModelCoa * | mCoa |
FdItemCoa_p | mParent |
FdItemCoa_p | mItem |
int | mRow |
double | mWasAccount |
Undo/Redo action for adding an item to the chart of accounts.
This is an undo/redo action for the chart of account (called by FdModelCoa), which handels user request for adding account and categories.
The last field mWasAccount is used to restore the initial balance of an account which became a category by adding an item on it.
Called by FdModelCoa::addCategory() and FdModelcoa::addAccount().
Definition at line 40 of file FdCommandsCoa.hpp.
FdCoaAddItem::FdCoaAddItem | ( | FdModelCoa * | coa, |
FdItemCoa_p | parent, | ||
FdItemCoa_p | item, | ||
int | row | ||
) |
Definition at line 24 of file FdCommandsCoa.cpp.
void FdCoaAddItem::redo | ( | ) |
Definition at line 31 of file FdCommandsCoa.cpp.
void FdCoaAddItem::undo | ( | ) |
Definition at line 41 of file FdCommandsCoa.cpp.
|
private |
Definition at line 43 of file FdCommandsCoa.hpp.
|
private |
Definition at line 45 of file FdCommandsCoa.hpp.
|
private |
Definition at line 44 of file FdCommandsCoa.hpp.
|
private |
Definition at line 46 of file FdCommandsCoa.hpp.
|
private |
Definition at line 47 of file FdCommandsCoa.hpp.