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

Undo/Redo action for adding an item to the chart of accounts. More...

#include <FdCommandsCoa.hpp>

Collaboration diagram for FdCoaAddItem:
Collaboration graph
[legend]

Public Member Functions

 FdCoaAddItem (FdModelCoa *coa, FdItemCoa_p parent, FdItemCoa_p item, int row)
void redo ()
void undo ()

Private Attributes

FdModelCoamCoa
FdItemCoa_p mParent
FdItemCoa_p mItem
int mRow
double mWasAccount

Detailed Description

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.

Constructor & Destructor Documentation

FdCoaAddItem::FdCoaAddItem ( FdModelCoa coa,
FdItemCoa_p  parent,
FdItemCoa_p  item,
int  row 
)

Definition at line 24 of file FdCommandsCoa.cpp.

Member Function Documentation

void FdCoaAddItem::redo ( )

Definition at line 31 of file FdCommandsCoa.cpp.

void FdCoaAddItem::undo ( )

Definition at line 41 of file FdCommandsCoa.cpp.

Member Data Documentation

FdModelCoa* FdCoaAddItem::mCoa
private

Definition at line 43 of file FdCommandsCoa.hpp.

FdItemCoa_p FdCoaAddItem::mItem
private

Definition at line 45 of file FdCommandsCoa.hpp.

FdItemCoa_p FdCoaAddItem::mParent
private

Definition at line 44 of file FdCommandsCoa.hpp.

int FdCoaAddItem::mRow
private

Definition at line 46 of file FdCommandsCoa.hpp.

double FdCoaAddItem::mWasAccount
private

Definition at line 47 of file FdCommandsCoa.hpp.


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