#include <AddrbookApp.h>
Inheritance diagram for CPersonEdit::

Public Methods | |
| CPersonEdit (int x, int y, int width, int height) | |
| ~CPersonEdit () | |
| void | draw (CGfxScreen *S) |
| Draw method - The widget should draw itslelf to the passed CGfxScreen. More... | |
| void | updateField (int x, int y, int maxlen, string filter) |
| void | setFieldDisplay (string text) |
| void | updateEdit (int row, int field) |
| string | getField (int i, CPerson *p) |
| void | setField (int i, string s, CPerson *p) |
| int | keyHandler (char key) |
| virtual int | getMin () |
| Returns minimum value of the scroll region. More... | |
| virtual int | getMax () |
| Returns maximum value of the scroll region. More... | |
| virtual int | getPos () |
| Returns current position in the scroll region. More... | |
| virtual void | setPos (int pos) |
| Sets the current item/line to be selected. More... | |
| virtual void | scrollUp () |
| Scrolls up one. More... | |
| virtual void | scrollDown () |
| Scrolls down one. More... | |
Public Attributes | |
| CTextArea * | textarea |
| CPerson * | m_person |
| string | m_filter |
| int | m_curfield |
| int | m_liststart |
This is a widget that displays and allows editing of a CPerson record. It has a variable number of fields and impliments CScrollable so you can scroll through the fields with a scrollbar. It is a CGfxWidget because it is meant to be put on the top screen which does not allow input. All input to this widget should be done with a keyboard and a scrollbar.
|
||||||||||||||||||||
|
|
|
|
|
|
|
Draw method - The widget should draw itslelf to the passed CGfxScreen. This will be called when the screen is being redrawn. The widget should draw itself using its m_x and m_y members as a starting co-ordinate. The drawing should be all on the passed CGfxScreen or the front lcd screen with libdj.TextScreen Reimplemented from CGfxWidget. |
|
||||||||||||
|
|
|
|
Returns maximum value of the scroll region.
Reimplemented from CScrollable. |
|
|
Returns minimum value of the scroll region.
Reimplemented from CScrollable. |
|
|
Returns current position in the scroll region.
Reimplemented from CScrollable. |
|
|
|
|
|
Scrolls down one.
Reimplemented from CScrollable. |
|
|
Scrolls up one.
Reimplemented from CScrollable. |
|
||||||||||||||||
|
|
|
|
|
|
|
Sets the current item/line to be selected.
Reimplemented from CScrollable. |
|
||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001