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

Undo/Redo action for dragging and droping of items in the chart of accounts. More...

#include <FdCommandsCoa.hpp>

Collaboration diagram for FdCoaDragDrop:
Collaboration graph
[legend]

Public Member Functions

 FdCoaDragDrop (FdModelCoa *coa, QList< FdItemCoa_p > items, FdItemCoa_p newParent, int row)
void redo ()
void undo ()

Private Attributes

FdModelCoamCoa
QList< FdItemCoa_p > mItems
FdCoaRemovemRemove
FdItemCoa_p mNewParent
int mRow
double mWasAccount

Detailed Description

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.

Constructor & Destructor Documentation

FdCoaDragDrop::FdCoaDragDrop ( FdModelCoa coa,
QList< FdItemCoa_p >  items,
FdItemCoa_p  newParent,
int  row 
)

Definition at line 49 of file FdCommandsCoa.cpp.

Member Function Documentation

void FdCoaDragDrop::redo ( )

Definition at line 77 of file FdCommandsCoa.cpp.

void FdCoaDragDrop::undo ( )

Definition at line 85 of file FdCommandsCoa.cpp.

Member Data Documentation

FdModelCoa* FdCoaDragDrop::mCoa
private

Definition at line 68 of file FdCommandsCoa.hpp.

QList<FdItemCoa_p> FdCoaDragDrop::mItems
private

Definition at line 69 of file FdCommandsCoa.hpp.

FdItemCoa_p FdCoaDragDrop::mNewParent
private

Definition at line 71 of file FdCommandsCoa.hpp.

FdCoaRemove* FdCoaDragDrop::mRemove
private

Definition at line 70 of file FdCommandsCoa.hpp.

int FdCoaDragDrop::mRow
private

Definition at line 72 of file FdCommandsCoa.hpp.

double FdCoaDragDrop::mWasAccount
private

Definition at line 73 of file FdCommandsCoa.hpp.


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