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

EditScheduledTransForm Class Reference

the form is used to create a new scheduled transaction or to modify an existing one, depending on the record_is_new member. More...

#include <EditScheduledTransForm.h>

Inheritance diagram for EditScheduledTransForm:

Form Collaboration diagram for EditScheduledTransForm:

Collaboration graph
[legend]
List of all members.

Public Methods

 EditScheduledTransForm () FORM_SECTION2
 constructor; does nothing. More...

void setRecordIsNew (Boolean b) FORM_SECTION2
 sets the value of the record_is_new attribute. More...

void newSession (scheduledStructure *s, DateType *trans_date) FORM_SECTION2
 Starts a new session. More...

Boolean save () FORM_SECTION2
 saves the transaction data and updates all the accounts involved. More...

void setDefaults () FORM_SECTION2
 set the values for some of the fields in the form (from the transaction record). More...

void setInterval (Repeat_interval interval) FORM_SECTION2
 sets the repetition interval for the transaction (both on-screen and in the structure). More...

void recordNow () FORM_SECTION2
 records a scheduled transaction, giving the option of altering the next date or not. More...

Boolean handleOpenEvent () FORM_SECTION2
 draws form and sets default values. More...

Boolean handleCtlSelectEvent (UInt16 control_id) FORM_SECTION2
 event handler for controls in the form. More...


Private Attributes

DateType * start_date
 pointer received from the EditTransactionForm. should point to the date field of the current transaction. More...

Char start_date_txt [dateStringLength]
 string holding the displayable text for start date. More...

Char end_date_txt [dateStringLength]
 string holding the displayable text for end date. More...

scheduledStructurest
 the current scheduled data. More...

Boolean record_is_new
 this is set to true if we want to create a new account and to false if we want the 'details' functionality. More...


Detailed Description

the form is used to create a new scheduled transaction or to modify an existing one, depending on the record_is_new member.

Todo:
automatically update the scheduled list on exit

Definition at line 31 of file EditScheduledTransForm.h.


Constructor & Destructor Documentation

EditScheduledTransForm::EditScheduledTransForm  
 

constructor; does nothing.


Member Function Documentation

Boolean EditScheduledTransForm::handleCtlSelectEvent UInt16    control_id [virtual]
 

event handler for controls in the form.

Reimplemented from Form.

Boolean EditScheduledTransForm::handleOpenEvent   [virtual]
 

draws form and sets default values.

Reimplemented from Form.

void EditScheduledTransForm::newSession scheduledStructure   s,
DateType *    trans_date
 

Starts a new session.

Receives a new pointer and sets the saved state to false. It also sets record_is_new to true

Parameters:
s  pointer to a scheduledStructure where data is to be written

void EditScheduledTransForm::recordNow  
 

records a scheduled transaction, giving the option of altering the next date or not.

Boolean EditScheduledTransForm::save  
 

saves the transaction data and updates all the accounts involved.

void EditScheduledTransForm::setDefaults  
 

set the values for some of the fields in the form (from the transaction record).

void EditScheduledTransForm::setInterval Repeat_interval    interval
 

sets the repetition interval for the transaction (both on-screen and in the structure).

Parameters:
interval  new interval

void EditScheduledTransForm::setRecordIsNew Boolean    b
 

sets the value of the record_is_new attribute.


Member Data Documentation

Char EditScheduledTransForm::end_date_txt[dateStringLength] [private]
 

string holding the displayable text for end date.

Definition at line 40 of file EditScheduledTransForm.h.

Boolean EditScheduledTransForm::record_is_new [private]
 

this is set to true if we want to create a new account and to false if we want the 'details' functionality.

Definition at line 45 of file EditScheduledTransForm.h.

scheduledStructure* EditScheduledTransForm::st [private]
 

the current scheduled data.

Definition at line 43 of file EditScheduledTransForm.h.

DateType* EditScheduledTransForm::start_date [private]
 

pointer received from the EditTransactionForm. should point to the date field of the current transaction.

Definition at line 35 of file EditScheduledTransForm.h.

Char EditScheduledTransForm::start_date_txt[dateStringLength] [private]
 

string holding the displayable text for start date.

Definition at line 38 of file EditScheduledTransForm.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