Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

HandwritingTrainer Class Reference

#include </home/clem/local/src/opie/inputmethods/handwriting/qimpenhelp.h>

Collaboration diagram for HandwritingTrainer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HandwritingTrainer (QIMPenProfile *p, QWidget *parent=0, const char *name=0)
 ~HandwritingTrainer ()

Private Slots

void selectChar (int)
void selectCharSet (int)
void noMatch ()
void matched (const QIMPenCharMatchList &ml)
void prevChar ()
void nextChar ()
void redrawChar ()
void beginStroke ()
void strokeEntered (QIMPenStroke *)

Private Member Functions

virtual void showEvent (QShowEvent *)
QString rateString (int rate) const
void setCurrentChar (QIMPenChar *c)
void fillCharList ()
QIMPenCharfindPrev ()
QIMPenCharfindNext ()

Private Attributes

QIMPenMatchmatcher
QIMPenCharSetcurrentSet
QIMPenCharcurrentChar
QIMPenProfileprofile
uint currentCode
QIMPenWidgetrefPw
QIMPenWidgetpracPw
QComboBox * charSetCombo
QListBox * charList
QLabel * result
QPushButton * prevBtn
QPushButton * nextBtn
QTimer * redrawTimer

Constructor & Destructor Documentation

HandwritingTrainer::HandwritingTrainer QIMPenProfile p,
QWidget *  parent = 0,
const char *  name = 0
 

Definition at line 135 of file qimpenhelp.cpp.

References beginStroke(), charList, charSetCombo, QIMPenProfile::charSets(), currentSet, left_xpm, matched(), matcher, nextBtn, nextChar(), noMatch(), pracPw, prevBtn, prevChar(), profile, redrawChar(), redrawTimer, refPw, result, right_xpm, selectChar(), selectCharSet(), QIMPenMatch::setCharSet(), QIMPenWidget::setReadOnly(), strokeEntered(), tr, and TRUE.

HandwritingTrainer::~HandwritingTrainer  ) 
 

Definition at line 207 of file qimpenhelp.cpp.


Member Function Documentation

void HandwritingTrainer::beginStroke  )  [private, slot]
 

Definition at line 344 of file qimpenhelp.cpp.

References redrawTimer.

Referenced by HandwritingTrainer().

void HandwritingTrainer::fillCharList  )  [private]
 

Definition at line 390 of file qimpenhelp.cpp.

References QIMPenCharSet::characters(), charList, CharListItem::code(), currentChar, currentSet, i, and QString::isEmpty().

Referenced by selectCharSet().

QIMPenChar * HandwritingTrainer::findNext  )  [private]
 

Definition at line 372 of file qimpenhelp.cpp.

References QIMPenCharSet::characters(), currentChar, currentCode, currentSet, QIMPenChar::Deleted, FALSE, and TRUE.

Referenced by nextChar(), and setCurrentChar().

QIMPenChar * HandwritingTrainer::findPrev  )  [private]
 

Definition at line 354 of file qimpenhelp.cpp.

References QIMPenCharSet::characters(), currentChar, currentCode, currentSet, QIMPenChar::Deleted, FALSE, and TRUE.

Referenced by prevChar(), and setCurrentChar().

void HandwritingTrainer::matched const QIMPenCharMatchList ml  )  [private, slot]
 

Definition at line 274 of file qimpenhelp.cpp.

References QValueList< T >::begin(), QIMPenChar::character(), currentChar, QValueList< T >::end(), Qtopia::escapeString(), i, IO_WriteOnly, rateString(), result, and tr.

Referenced by HandwritingTrainer().

void HandwritingTrainer::nextChar  )  [private, slot]
 

Definition at line 331 of file qimpenhelp.cpp.

References findNext(), and setCurrentChar().

Referenced by HandwritingTrainer().

void HandwritingTrainer::noMatch  )  [private, slot]
 

Definition at line 269 of file qimpenhelp.cpp.

References result, and tr.

Referenced by HandwritingTrainer().

void HandwritingTrainer::prevChar  )  [private, slot]
 

Definition at line 324 of file qimpenhelp.cpp.

References findPrev(), and setCurrentChar().

Referenced by HandwritingTrainer().

QString HandwritingTrainer::rateString int  rate  )  const [private]
 

Definition at line 315 of file qimpenhelp.cpp.

References tr.

Referenced by matched().

void HandwritingTrainer::redrawChar  )  [private, slot]
 

Definition at line 338 of file qimpenhelp.cpp.

References currentChar, refPw, and QIMPenWidget::showCharacter().

Referenced by HandwritingTrainer(), and showEvent().

void HandwritingTrainer::selectChar int   )  [private, slot]
 

Definition at line 229 of file qimpenhelp.cpp.

References QIMPenCharSet::characters(), charList, currentChar, currentCode, currentSet, QIMPenChar::Deleted, result, and setCurrentChar().

Referenced by HandwritingTrainer(), and selectCharSet().

void HandwritingTrainer::selectCharSet int   )  [private, slot]
 

Definition at line 251 of file qimpenhelp.cpp.

References charList, QIMPenProfile::charSets(), currentSet, fillCharList(), QIMPenWidget::insertCharSet(), matcher, pracPw, profile, refPw, QIMPenWidget::removeCharSet(), result, selectChar(), QIMPenMatch::setCharSet(), and TRUE.

Referenced by HandwritingTrainer().

void HandwritingTrainer::setCurrentChar QIMPenChar c  )  [private]
 

Definition at line 217 of file qimpenhelp.cpp.

References QIMPenWidget::clear(), currentChar, findNext(), findPrev(), nextBtn, pracPw, prevBtn, redrawTimer, refPw, and QIMPenWidget::showCharacter().

Referenced by nextChar(), prevChar(), and selectChar().

void HandwritingTrainer::showEvent QShowEvent *   )  [private, virtual]
 

Definition at line 211 of file qimpenhelp.cpp.

References redrawChar(), and redrawTimer.

void HandwritingTrainer::strokeEntered QIMPenStroke  )  [private, slot]
 

Definition at line 349 of file qimpenhelp.cpp.

References QIMPenWidget::greyStroke(), and pracPw.

Referenced by HandwritingTrainer().


Member Data Documentation

QListBox* HandwritingTrainer::charList [private]
 

Definition at line 79 of file qimpenhelp.h.

Referenced by fillCharList(), HandwritingTrainer(), selectChar(), and selectCharSet().

QComboBox* HandwritingTrainer::charSetCombo [private]
 

Definition at line 78 of file qimpenhelp.h.

Referenced by HandwritingTrainer().

QIMPenChar* HandwritingTrainer::currentChar [private]
 

Definition at line 73 of file qimpenhelp.h.

Referenced by fillCharList(), findNext(), findPrev(), matched(), redrawChar(), selectChar(), and setCurrentChar().

uint HandwritingTrainer::currentCode [private]
 

Definition at line 75 of file qimpenhelp.h.

Referenced by findNext(), findPrev(), and selectChar().

QIMPenCharSet* HandwritingTrainer::currentSet [private]
 

Definition at line 72 of file qimpenhelp.h.

Referenced by fillCharList(), findNext(), findPrev(), HandwritingTrainer(), selectChar(), and selectCharSet().

QIMPenMatch* HandwritingTrainer::matcher [private]
 

Definition at line 71 of file qimpenhelp.h.

Referenced by HandwritingTrainer(), and selectCharSet().

QPushButton* HandwritingTrainer::nextBtn [private]
 

Definition at line 82 of file qimpenhelp.h.

Referenced by HandwritingTrainer(), and setCurrentChar().

QIMPenWidget* HandwritingTrainer::pracPw [private]
 

Definition at line 77 of file qimpenhelp.h.

Referenced by HandwritingTrainer(), selectCharSet(), setCurrentChar(), and strokeEntered().

QPushButton* HandwritingTrainer::prevBtn [private]
 

Definition at line 81 of file qimpenhelp.h.

Referenced by HandwritingTrainer(), and setCurrentChar().

QIMPenProfile* HandwritingTrainer::profile [private]
 

Definition at line 74 of file qimpenhelp.h.

Referenced by HandwritingTrainer(), and selectCharSet().

QTimer* HandwritingTrainer::redrawTimer [private]
 

Definition at line 83 of file qimpenhelp.h.

Referenced by beginStroke(), HandwritingTrainer(), setCurrentChar(), and showEvent().

QIMPenWidget* HandwritingTrainer::refPw [private]
 

Definition at line 76 of file qimpenhelp.h.

Referenced by HandwritingTrainer(), redrawChar(), selectCharSet(), and setCurrentChar().

QLabel* HandwritingTrainer::result [private]
 

Definition at line 80 of file qimpenhelp.h.

Referenced by HandwritingTrainer(), matched(), noMatch(), selectChar(), and selectCharSet().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:34:34 2005 for OPIE by  doxygen 1.4.2