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

AccountsForm Class Reference

contains function to manipulate the main form of the program the variables are defined in the .c file (due to visibility issues ;). More...

#include <AccountsForm.h>

Inheritance diagram for AccountsForm:

Form Collaboration diagram for AccountsForm:

Collaboration graph
[legend]
List of all members.

Public Methods

 AccountsForm () FORM_SECTION1
 constructor; does nothing. More...


Private Methods

void displayTotals () FORM_SECTION1
 calculates the totals (if necessary) and draws them on the screen. More...

void updatePopupTrigger (void) FORM_SECTION1
 reflect choice of visible accounts on popup trigger. More...

void resetIEAccounts () FORM_SECTION1
 sets the balances of Income and Expense accounts to 0. More...

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

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

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

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

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

Boolean handleUpdateEvent (UInt16 update_code) FORM_SECTION1
 called when a form update event occurs. More...

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

Boolean handlePenDownEvent (Int16 x_coord, Int16 y_coord) FORM_SECTION1
 handles events generated by the pen up. More...

Boolean handlePopSelect (popSelect &pop_select) FORM_SECTION1
 handles events generated by popups. More...


Private Attributes

EditTransactionForm_edit_trans_form
 object used to add transactions. More...

PreferencesForm _pref_form
 object handling the preferences form. More...

PurgeTransForm _purge_form
 object handling the form used to purge transactions. More...

TransactionsForm_transactions_form
 object to handle transaction display. More...

Char cat_name [dmCategoryLength]
 name of the current category. More...

AccountsTable ac_tbl
 the normal way to do this would be to declare a pointer to the object here and allocate it when the form is opened unfortunatelly memory management is not that straight forward for the palm. More...

Int16 last_screenX
 store last known pen X position. More...

Int16 last_screenY
 store last known pen Y position. More...


Detailed Description

contains function to manipulate the main form of the program the variables are defined in the .c file (due to visibility issues ;).

Definition at line 33 of file AccountsForm.h.


Constructor & Destructor Documentation

AccountsForm::AccountsForm  
 

constructor; does nothing.


Member Function Documentation

void AccountsForm::displayTotals   [private]
 

calculates the totals (if necessary) and draws them on the screen.

Boolean AccountsForm::handleCloseEvent   [private, virtual]
 

this function is called when the form is closed.

Reimplemented from Form.

Boolean AccountsForm::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 AccountsForm::handleKeyDownEvent WChar    key_id,
UInt16    modifiers
[private, virtual]
 

called when key down event occurs.

Reimplemented from Form.

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

called when a menu event occurs.

Reimplemented from Form.

Boolean AccountsForm::handleOpenEvent   [private, virtual]
 

called when form open event occurs.

Reimplemented from Form.

Boolean AccountsForm::handlePenDownEvent Int16    x_coord,
Int16    y_coord
[private, virtual]
 

handles events generated by the pen up.

Reimplemented from Form.

Boolean AccountsForm::handlePopSelect popSelect &    pop_select [private, virtual]
 

handles events generated by popups.

Reimplemented from Form.

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

called when a table select event occurs.

Parameters:
tbl_select  forwarded tblSelect event data

Reimplemented from Form.

Boolean AccountsForm::handleUpdateEvent UInt16    update_code [private, virtual]
 

called when a form update event occurs.

Parameters:
update_code  the update code signalled

Reimplemented from Form.

void AccountsForm::resetIEAccounts   [private]
 

sets the balances of Income and Expense accounts to 0.

void AccountsForm::updatePopupTrigger void    [private]
 

reflect choice of visible accounts on popup trigger.


Member Data Documentation

EditTransactionForm* AccountsForm::_edit_trans_form [private]
 

object used to add transactions.

Definition at line 41 of file AccountsForm.h.

PreferencesForm AccountsForm::_pref_form [private]
 

object handling the preferences form.

Definition at line 43 of file AccountsForm.h.

PurgeTransForm AccountsForm::_purge_form [private]
 

object handling the form used to purge transactions.

Definition at line 45 of file AccountsForm.h.

TransactionsForm* AccountsForm::_transactions_form [private]
 

object to handle transaction display.

Definition at line 47 of file AccountsForm.h.

AccountsTable AccountsForm::ac_tbl [private]
 

the normal way to do this would be to declare a pointer to the object here and allocate it when the form is opened unfortunatelly memory management is not that straight forward for the palm.

Definition at line 52 of file AccountsForm.h.

Char AccountsForm::cat_name[dmCategoryLength] [private]
 

name of the current category.

Definition at line 49 of file AccountsForm.h.

Int16 AccountsForm::last_screenX [private]
 

store last known pen X position.

Definition at line 54 of file AccountsForm.h.

Int16 AccountsForm::last_screenY [private]
 

store last known pen Y position.

Definition at line 56 of file AccountsForm.h.


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