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

CurrencyListForm Class Reference

This class displays a form which enables the user to browse all entries in the currency database. More...

#include <CurrencyListForm.h>

Inheritance diagram for CurrencyListForm:

Form Collaboration diagram for CurrencyListForm:

Collaboration graph
[legend]
List of all members.

Public Methods

 CurrencyListForm () FORM_SECTION1
 constructor; sets form variables. More...

Boolean handleUpdateEvent (UInt16 update_code) FORM_SECTION1
 handle updates (made public so that we can force the update). More...


Static Public Methods

CurrencyListForm * instance () FORM_SECTION1
 returns singleton reference to this object. More...

void drawCurrencyEntry (Int16 item_no, RectangleType *bounds, Char **txt) FORM_SECTION1
 callback for custom list drawing. More...


Private Methods

Boolean handleOpenEvent () FORM_SECTION1
 initialises form. More...

Boolean handleLstSelectEvent (UInt16 item) FORM_SECTION1
 handles selection of list items (pops up edit dialog). More...

Boolean handleCtlSelectEvent (UInt16 control_id) FORM_SECTION1
 handles controls. More...

Boolean handleKeyDownEvent (WChar key_id, UInt16 modifiers) FORM_SECTION1
 handles key presses. More...


Private Attributes

ListPtr _list
 pointer to list displaying currency entries. More...

EditCurrencyForm edit_currency_form
 object used to create/edit currencies. More...


Static Private Attributes

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


Detailed Description

This class displays a form which enables the user to browse all entries in the currency database.

The form also displays the default currency and allows for creation of new currency entries

Definition at line 31 of file CurrencyListForm.h.


Constructor & Destructor Documentation

CurrencyListForm::CurrencyListForm  
 

constructor; sets form variables.


Member Function Documentation

void CurrencyListForm::drawCurrencyEntry Int16    item_no,
RectangleType *    bounds,
Char **    txt
[static]
 

callback for custom list drawing.

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

handles controls.

Reimplemented from Form.

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

handles key presses.

Reimplemented from Form.

Boolean CurrencyListForm::handleLstSelectEvent UInt16    item [private, virtual]
 

handles selection of list items (pops up edit dialog).

Parameters:
item  item that has been selected

Reimplemented from Form.

Boolean CurrencyListForm::handleOpenEvent   [private, virtual]
 

initialises form.

Reimplemented from Form.

Boolean CurrencyListForm::handleUpdateEvent UInt16    update_code [virtual]
 

handle updates (made public so that we can force the update).

Reimplemented from Form.

CurrencyListForm* CurrencyListForm::instance   [static]
 

returns singleton reference to this object.


Member Data Documentation

CurrencyListForm* CurrencyListForm::_instance [static, private]
 

reference to this object.

Definition at line 47 of file CurrencyListForm.h.

ListPtr CurrencyListForm::_list [private]
 

pointer to list displaying currency entries.

Definition at line 49 of file CurrencyListForm.h.

EditCurrencyForm CurrencyListForm::edit_currency_form [private]
 

object used to create/edit currencies.

Definition at line 52 of file CurrencyListForm.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