#include <NoteForm.h>
Inheritance diagram for NoteForm:
Public Methods | |
NoteForm () FORM_SECTION2 | |
constructor; does nothing. More... | |
~NoteForm () FORM_SECTION2 | |
destructor; removes the currently allocated string. More... | |
Char * | getNote () FORM_SECTION2 |
void | initForm (Char *title_str, Char *note_str) FORM_SECTION2 |
the starting string can be a pointer to a character strin or NULL, in which case new note is assumed; currently stored string is disposed of and re-allocated The last_caller field is set to 0. More... | |
bool | updatedData (UInt16 form_id) FORM_SECTION2 |
checks whether a given form id should update its data according to data stored by this form. More... | |
Static Public Methods | |
NoteForm * | instance () FORM_SECTION2 |
| |
Private Methods | |
void | deleteNote () FORM_SECTION2 |
deletes the _note attribute, only if necessary. More... | |
void | updateScrollBar () FORM_SECTION2 |
update the scroll bar with the values hinted by the note field. More... | |
void | scroll (Int16 lines_to_scroll, Boolean update_scroll_bar) FORM_SECTION2 |
scroll the note by a specified number of lines. More... | |
void | pageScroll (WinDirectionType direction) FORM_SECTION2 |
scroll the note a whole page up or down. More... | |
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 | handleFldChangedEvent () FORM_SECTION2 |
handles events generated when field are changed. More... | |
Boolean | handleSclRepeatEvent (UInt16 new_value, UInt16 value) FORM_SECTION2 |
handles events generated by the scrollbar. More... | |
Private Attributes | |
UInt16 | _last_caller |
contains the last valid form which called this form (i.e. to which we exited with ok/delete). More... | |
Char * | _title |
current form title. More... | |
Char * | _note |
data edited is stored here. More... | |
Static Private Attributes | |
NoteForm * | _instance |
internal reference to this object. More... |
This class is that it holds an internal buffer containing the edited note. The buffer is allocated dynamically and can be filled in before startup (so that a pre-written note is displayed). The contents of the buffer can be retrieved at any point, even after the form was closed. This is due to the fact that the actual form object for the entire life-time of the program.
Definition at line 37 of file NoteForm.h.
|
constructor; does nothing.
|
|
destructor; removes the currently allocated string.
|
|
deletes the _note attribute, only if necessary.
|
|
|
|
called when ctl select event occurs.
Reimplemented from Form. |
|
handles events generated when field are changed.
Reimplemented from Form. |
|
called when key down event occurs.
Reimplemented from Form. |
|
called when form open event occurs.
Reimplemented from Form. |
|
handles events generated by the scrollbar.
Reimplemented from Form. |
|
the starting string can be a pointer to a character strin or NULL, in which case new note is assumed; currently stored string is disposed of and re-allocated The last_caller field is set to 0.
|
|
|
|
scroll the note a whole page up or down.
|
|
scroll the note by a specified number of lines.
|
|
checks whether a given form id should update its data according to data stored by this form.
|
|
update the scroll bar with the values hinted by the note field.
|
|
internal reference to this object.
Definition at line 66 of file NoteForm.h. |
|
contains the last valid form which called this form (i.e. to which we exited with ok/delete).
Definition at line 68 of file NoteForm.h. |
|
data edited is stored here.
Definition at line 72 of file NoteForm.h. |
|
current form title.
Definition at line 70 of file NoteForm.h. |