Undo/Redo action for dragging and droping of items in the chart of accounts. More...
#include <FdCommandsCoa.hpp>
Public Member Functions | |
FdCoaDragDrop (FdModelCoa *coa, QList< FdItemCoa_p > items, FdItemCoa_p newParent, int row) | |
void | redo () |
void | undo () |
Private Attributes | |
FdModelCoa * | mCoa |
QList< FdItemCoa_p > | mItems |
FdCoaRemove * | mRemove |
FdItemCoa_p | mNewParent |
int | mRow |
double | mWasAccount |
Undo/Redo action for dragging and droping of items in the chart of accounts.
Items may be dropped from different parent into the same new parent. FdCoaRemove takes care of keeping this undoable.
The last field mWasAccount is used to restore the initial balance of an account which became a category by droping an item on it.
Definition at line 61 of file FdCommandsCoa.hpp.
FdCoaDragDrop::FdCoaDragDrop | ( | FdModelCoa * | coa, |
QList< FdItemCoa_p > | items, | ||
FdItemCoa_p | newParent, | ||
int | row | ||
) |
Definition at line 49 of file FdCommandsCoa.cpp.
void FdCoaDragDrop::redo | ( | ) |
Definition at line 77 of file FdCommandsCoa.cpp.
void FdCoaDragDrop::undo | ( | ) |
Definition at line 85 of file FdCommandsCoa.cpp.
|
private |
Definition at line 68 of file FdCommandsCoa.hpp.
|
private |
Definition at line 69 of file FdCommandsCoa.hpp.
|
private |
Definition at line 71 of file FdCommandsCoa.hpp.
|
private |
Definition at line 70 of file FdCommandsCoa.hpp.
|
private |
Definition at line 72 of file FdCommandsCoa.hpp.
|
private |
Definition at line 73 of file FdCommandsCoa.hpp.