#include <SplitsForm.h>
Inheritance diagram for SplitsForm:
Public Methods | |
SplitsForm () FORM_SECTION2 | |
constructor - initializes variables. More... | |
~SplitsForm () FORM_SECTION2 | |
destructor - disposes of allocated memory. More... | |
UInt16 | getCount () FORM_SECTION2 |
| |
void | setCount (UInt8 count) FORM_SECTION2 |
sets the value of splits_count; also updates the total_debits and credits variables. More... | |
UInt32 | getAccount (UInt8 index) FORM_SECTION2 |
returns the account associated with a given split. More... | |
void | setAccount (UInt8 index, UInt32 acc_uid) FORM_SECTION2 |
sets the account associated with a given split index. More... | |
Int32 | getAmount (UInt8 index) FORM_SECTION2 |
returns the amount associated with a given split index. More... | |
void | setAmount (UInt8 index, Int32 amount) FORM_SECTION2 |
sets the amount associated with a given split index. More... | |
void | deleteSplit (UInt8 index) FORM_SECTION2 |
deletes a given split. More... | |
void | deleteAllSplits () FORM_SECTION2 |
deletes all splits. More... | |
Boolean | handleUpdateEvent (UInt16 update_code) FORM_SECTION2 |
handles update events (public in order to be able to force updates). More... | |
Static Public Methods | |
SplitsForm * | instance () FORM_SECTION2 |
returns reference to SplitsForm instance. More... | |
Private Methods | |
Boolean | handleOpenEvent () FORM_SECTION2 |
draws form and table. More... | |
Boolean | handleKeyDownEvent (WChar key_id, UInt16 modifiers) FORM_SECTION2 |
handles pgup/down keys. More... | |
Boolean | handleCtlSelectEvent (UInt16 control_id) FORM_SECTION2 |
handles form controls. More... | |
Boolean | checkIndex (UInt8 index) FORM_SECTION2 |
checks whether the given split index is valid. More... | |
Boolean | handleTblSelectEvent (tblSelect &tbl_select) FORM_SECTION2 |
handles table events. More... | |
Private Attributes | |
SplitsTable | splits_tbl |
table used to display and select splits. More... | |
UInt8 | splits_count |
total number of splits for current transaction. More... | |
MemHandle | splits_data |
handle to memory area containing the array of splits. More... | |
UInt32 | total_debits |
total for debit splits. More... | |
UInt32 | total_credits |
total for credit splits. More... | |
EditSplitForm | edit_split_form |
object handling particular split editing. More... | |
Static Private Attributes | |
SplitsForm * | _instance |
singleton reference to this form. More... |
Definition at line 29 of file SplitsForm.h.
|
constructor - initializes variables.
|
|
destructor - disposes of allocated memory.
|
|
checks whether the given split index is valid.
|
|
deletes all splits.
|
|
deletes a given split.
|
|
returns the account associated with a given split.
|
|
returns the amount associated with a given split index.
|
|
|
|
handles form controls.
Reimplemented from Form. |
|
handles pgup/down keys.
Reimplemented from Form. |
|
draws form and table.
Reimplemented from Form. |
|
handles table events.
Reimplemented from Form. |
|
handles update events (public in order to be able to force updates).
Reimplemented from Form. |
|
returns reference to SplitsForm instance. Only allowed way to use the class |
|
sets the account associated with a given split index.
|
|
sets the amount associated with a given split index.
|
|
sets the value of splits_count; also updates the total_debits and credits variables.
|
|
singleton reference to this form.
Definition at line 91 of file SplitsForm.h. |
|
object handling particular split editing.
Definition at line 89 of file SplitsForm.h. |
|
total number of splits for current transaction.
Definition at line 81 of file SplitsForm.h. |
|
handle to memory area containing the array of splits.
Definition at line 83 of file SplitsForm.h. |
|
table used to display and select splits.
Definition at line 79 of file SplitsForm.h. |
|
total for credit splits.
Definition at line 87 of file SplitsForm.h. |
|
total for debit splits.
Definition at line 85 of file SplitsForm.h. |