Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

TransactionsForm Class Reference

functions and vars that manipulate the form which deals with transactions. More...

#include <TransactionsForm.h>

Inheritance diagram for TransactionsForm:

Form Collaboration diagram for TransactionsForm:

Collaboration graph
[legend]
List of all members.

Public Methods

 TransactionsForm () FORM_SECTION2
 constructor; dows nothing. More...

void adjustAccBalance () FORM_SECTION2
 creates a new transaction updating the balance in the new account. More...

void adjustClearedAccBalance () FORM_SECTION2
 updates the expected balance for the account. More...

void displayTotals () FORM_SECTION2
 updates the totals for the current account (if necessary) and draws them on the screen. More...

Boolean handleUpdateEvent (UInt16 update_code) FORM_SECTION2
 called when a form update event occurs (public in order to be able to force updates). More...


Static Public Methods

TransactionsForm * instance () FORM_SECTION2
 returns singleton reference to this object. More...


Private Methods

Boolean handleKeyDownEvent (WChar key_id, UInt16 modifiers) FORM_SECTION2
 called when key down event occurs. More...

Boolean handleOpenEvent () FORM_SECTION2
 called when form open event occurs. More...

Boolean handleCtlSelectEvent (UInt16 control_id) FORM_SECTION2
 called when ctl select event occurs. More...

Boolean handleTblSelectEvent (tblSelect &tbl_select) FORM_SECTION2
 called when a table select event occurs. More...

Boolean handleMenuEvent (UInt16 menu_item_id) FORM_SECTION2
 called when a menu event occurs. More...

Boolean handleCloseEvent () FORM_SECTION2
 this function is called when the form is closed. More...

void initCat () FORM_SECTION2
 init the category trigger. More...

void selectCat () FORM_SECTION2
 handle category selection. More...

void handleNewTransaction () FORM_SECTION2
 executes the necessary operations to start creating a new transaction. More...

void handleTransactionDetails () FORM_SECTION2
 handles transaction details. More...


Private Attributes

EditTransactionForm_edit_trans_form
Char _cat_name [dmCategoryLength]
 used to store the current category name. More...

TransactionsTable _trans_tbl
 the transactions table. More...


Static Private Attributes

TransactionsForm * _instance
 reference to this object. More...


Detailed Description

functions and vars that manipulate the form which deals with transactions.

Note:
the duplicate menu and button events are handled by handle* functions do eliminate code duplication

Definition at line 32 of file TransactionsForm.h.


Constructor & Destructor Documentation

TransactionsForm::TransactionsForm  
 

constructor; dows nothing.


Member Function Documentation

void TransactionsForm::adjustAccBalance  
 

creates a new transaction updating the balance in the new account.

void TransactionsForm::adjustClearedAccBalance  
 

updates the expected balance for the account.

void TransactionsForm::displayTotals  
 

updates the totals for the current account (if necessary) and draws them on the screen.

Boolean TransactionsForm::handleCloseEvent   [private, virtual]
 

this function is called when the form is closed.

Reimplemented from Form.

Boolean TransactionsForm::handleCtlSelectEvent UInt16    control_id [private, virtual]
 

called when ctl select event occurs.

Parameters:
control_id  id of the control for which the event was generated

Reimplemented from Form.

Boolean TransactionsForm::handleKeyDownEvent WChar    key_id,
UInt16    modifiers
[private, virtual]
 

called when key down event occurs.

Reimplemented from Form.

Boolean TransactionsForm::handleMenuEvent UInt16    menu_item_id [private, virtual]
 

called when a menu event occurs.

Reimplemented from Form.

void TransactionsForm::handleNewTransaction   [private]
 

executes the necessary operations to start creating a new transaction.

Boolean TransactionsForm::handleOpenEvent   [private, virtual]
 

called when form open event occurs.

Reimplemented from Form.

Boolean TransactionsForm::handleTblSelectEvent tblSelect &    tbl_select [private, virtual]
 

called when a table select event occurs.

Parameters:
tbl_select  forwarded tblSelect event data

Reimplemented from Form.

void TransactionsForm::handleTransactionDetails   [private]
 

handles transaction details.

Boolean TransactionsForm::handleUpdateEvent UInt16    update_code [virtual]
 

called when a form update event occurs (public in order to be able to force updates).

Parameters:
update_code  the update code signalled

Reimplemented from Form.

void TransactionsForm::initCat   [private]
 

init the category trigger.

TransactionsForm* TransactionsForm::instance   [static]
 

returns singleton reference to this object.

void TransactionsForm::selectCat   [private]
 

handle category selection.


Member Data Documentation

Char TransactionsForm::_cat_name[dmCategoryLength] [private]
 

used to store the current category name.

Definition at line 55 of file TransactionsForm.h.

EditTransactionForm* TransactionsForm::_edit_trans_form [private]
 

Definition at line 53 of file TransactionsForm.h.

TransactionsForm* TransactionsForm::_instance [static, private]
 

reference to this object.

Definition at line 51 of file TransactionsForm.h.

TransactionsTable TransactionsForm::_trans_tbl [private]
 

the transactions table.

Definition at line 58 of file TransactionsForm.h.


The documentation for this class was generated from the following file:
Generated on Thu Jan 16 23:11:15 2003 for FreeCoins by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002