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

CPersonEdit Class Reference

A robust editor for editing a contact. More...

#include <AddrbookApp.h>

Inheritance diagram for CPersonEdit::

CGfxWidget CScrollable CWidget List of all members.

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

CTextAreatextarea
CPersonm_person
string m_filter
int m_curfield
int m_liststart

Detailed Description

A robust editor for editing a contact.

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.


Constructor & Destructor Documentation

CPersonEdit::CPersonEdit int    x,
int    y,
int    width,
int    height
 

CPersonEdit::~CPersonEdit  
 


Member Function Documentation

void CPersonEdit::draw CGfxScreen   S [virtual]
 

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.

string CPersonEdit::getField int    i,
CPerson   p
 

int CPersonEdit::getMax   [virtual]
 

Returns maximum value of the scroll region.

Reimplemented from CScrollable.

int CPersonEdit::getMin   [virtual]
 

Returns minimum value of the scroll region.

Reimplemented from CScrollable.

int CPersonEdit::getPos   [virtual]
 

Returns current position in the scroll region.

Reimplemented from CScrollable.

int CPersonEdit::keyHandler char    key
 

void CPersonEdit::scrollDown   [virtual]
 

Scrolls down one.

Reimplemented from CScrollable.

void CPersonEdit::scrollUp   [virtual]
 

Scrolls up one.

Reimplemented from CScrollable.

void CPersonEdit::setField int    i,
string    s,
CPerson   p
 

void CPersonEdit::setFieldDisplay string    text
 

void CPersonEdit::setPos int    pos [virtual]
 

Sets the current item/line to be selected.

Reimplemented from CScrollable.

void CPersonEdit::updateEdit int    row,
int    field
 

void CPersonEdit::updateField int    x,
int    y,
int    maxlen,
string    filter
 


Member Data Documentation

int CPersonEdit::m_curfield
 

string CPersonEdit::m_filter
 

int CPersonEdit::m_liststart
 

CPerson* CPersonEdit::m_person
 

CTextArea* CPersonEdit::textarea
 


The documentation for this class was generated from the following files:
Generated on Thu Dec 6 00:14:56 2001 for Dijinni by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001