#include </home/clem/local/src/opie/inputmethods/handwriting/qimpenwidget.h>
Collaboration diagram for QIMPenWidget:

Public Slots | |
| void | removeStroke () |
Signals | |
| void | changeCharSet (QIMPenCharSet *cs) |
| void | changeCharSet (int) |
| void | beginStroke () |
| void | stroke (QIMPenStroke *ch) |
Public Member Functions | |
| QIMPenWidget (QWidget *parent) | |
| void | clear () |
| void | greyStroke () |
| void | setReadOnly (bool r) |
| void | insertCharSet (QIMPenCharSet *cs, int stretch=1, int pos=-1) |
| void | removeCharSet (int) |
| void | changeCharSet (QIMPenCharSet *cs, int pos) |
| void | clearCharSets () |
| void | showCharacter (QIMPenChar *, int speed=10) |
| virtual QSize | sizeHint () |
Protected Types | |
| typedef QList< CharSetEntry > | CharSetEntryList |
| typedef QListIterator< CharSetEntry > | CharSetEntryIterator |
| enum | Mode { Waiting, Input, Output } |
Protected Slots | |
| void | timeout () |
Protected Member Functions | |
| bool | selectSet (QPoint) |
| virtual void | mousePressEvent (QMouseEvent *e) |
| virtual void | mouseReleaseEvent (QMouseEvent *e) |
| virtual void | mouseMoveEvent (QMouseEvent *e) |
| virtual void | paintEvent (QPaintEvent *e) |
| virtual void | resizeEvent (QResizeEvent *e) |
Protected Attributes | |
| Mode | mode |
| bool | autoHide |
| bool | readOnly |
| QPoint | lastPoint |
| unsigned | pointIndex |
| int | strokeIndex |
| int | currCharSet |
| QTimer * | timer |
| QColor | strokeColor |
| QRect | dirtyRect |
| QIMPenChar * | outputChar |
| QIMPenStroke * | outputStroke |
| QIMPenStroke * | inputStroke |
| QIMPenStrokeList | strokes |
| CharSetEntryList | charSets |
| int | totalStretch |
Classes | |
| struct | CharSetEntry |
Definition at line 25 of file qimpenwidget.h.
|
|
Definition at line 68 of file qimpenwidget.h. |
|
|
Definition at line 67 of file qimpenwidget.h. |
|
|
Definition at line 55 of file qimpenwidget.h. |
|
|
Definition at line 38 of file qimpenwidget.cpp. References charSets, currCharSet, FALSE, inputStroke, mode, outputChar, outputStroke, qApp, readOnly, strokeColor, strokes, timeout(), timer, TRUE, and Waiting. |
|
|
Referenced by mousePressEvent(). |
|
|
|
|
|
|
|
||||||||||||
|
Definition at line 156 of file qimpenwidget.cpp. References charSets, QIMPenWidget::CharSetEntry::cs, currCharSet, and QIMPenWidget::CharSetEntry::stretch. Referenced by insertCharSet(), QIMPenInput::keypress(), QIMPenInput::matchedCharacters(), removeCharSet(), QIMPenInput::selectCharSet(), and selectSet(). |
|
|
Definition at line 59 of file qimpenwidget.cpp. References dirtyRect, mode, outputChar, outputStroke, strokes, timer, and Waiting. Referenced by QIMPenEdit::clearChar(), and HandwritingTrainer::setCurrentChar(). |
|
|
Definition at line 171 of file qimpenwidget.cpp. References charSets, and currCharSet. Referenced by QIMPenInput::selectProfile(). |
|
|
Definition at line 97 of file qimpenwidget.cpp. References QIMPenStroke::boundingRect(), dirtyRect, strokeColor, and strokes. Referenced by QIMPenInput::strokeEntered(), and HandwritingTrainer::strokeEntered(). |
|
||||||||||||||||
|
Insert a character set into the list. Definition at line 118 of file qimpenwidget.cpp. References changeCharSet(), charSets, QIMPenWidget::CharSetEntry::cs, currCharSet, QIMPenWidget::CharSetEntry::stretch, and totalStretch. Referenced by QIMPenEdit::selectCharSet(), HandwritingTrainer::selectCharSet(), and QIMPenInput::selectProfile(). |
|
|
Definition at line 327 of file qimpenwidget.cpp. References QIMPenStroke::addPoint(), Qt::black, QIMPenStroke::chain(), i, inputStroke, lastPoint, mode, p, and readOnly. |
|
|
Definition at line 290 of file qimpenwidget.cpp. References QIMPenStroke::beginInput(), beginStroke(), Qt::black, inputStroke, lastPoint, mode, outputChar, outputStroke, readOnly, selectSet(), strokes, timer, and Waiting. |
|
|
Definition at line 316 of file qimpenwidget.cpp. References charSets, QIMPenStroke::endInput(), inputStroke, mode, readOnly, stroke(), and Waiting. |
|
|
Definition at line 357 of file qimpenwidget.cpp. References QIMPenChar::boundingRect(), charSets, dirtyRect, Qt::gray, height, i, mode, off, outputChar, p, QIMPenChar::penStrokes(), QIMPenChar::startingPoint(), strokeColor, strokes, totalStretch, Waiting, width, and Opie::MM::y. |
|
|
Remove a character set from the list. Definition at line 139 of file qimpenwidget.cpp. References changeCharSet(), charSets, currCharSet, and totalStretch. Referenced by QIMPenEdit::selectCharSet(), and HandwritingTrainer::selectCharSet(). |
|
|
Definition at line 81 of file qimpenwidget.cpp. References QIMPenStroke::boundingRect(), dirtyRect, and strokes. |
|
|
Definition at line 439 of file qimpenwidget.cpp. References mode, outputChar, and showCharacter(). |
|
|
If the point p is over one of the character set titles, switch to the set and return TRUE. Definition at line 258 of file qimpenwidget.cpp. References changeCharSet(), charSets, currCharSet, FALSE, totalStretch, and width. Referenced by mousePressEvent(). |
|
|
Definition at line 33 of file qimpenwidget.h. References readOnly. Referenced by HandwritingTrainer::HandwritingTrainer(). |
|
||||||||||||
|
Display a character. speed determines how quickly the character is drawn. Definition at line 182 of file qimpenwidget.cpp. References QIMPenChar::boundingRect(), dirtyRect, QIMPenChar::isEmpty(), lastPoint, mode, outputChar, outputStroke, QIMPenChar::penStrokes(), pointIndex, QIMPenStroke::startingPoint(), strokeIndex, strokes, timer, Waiting, and width. Referenced by HandwritingTrainer::redrawChar(), resizeEvent(), QIMPenEdit::setCurrentChar(), and HandwritingTrainer::setCurrentChar(). |
|
|
Hopefully returns a sensible size. Definition at line 285 of file qimpenwidget.cpp. References charSets, and TITLE_WIDTH. Referenced by QIMPenInput::QIMPenInput(), and QIMPenInput::sizeHint(). |
|
|
Referenced by mouseReleaseEvent(). |
|
|
Handle drawing/clearing of characters. Definition at line 213 of file qimpenwidget.cpp. References Qt::black, QIMPenChar::boundingRect(), QIMPenStroke::chain(), dirtyRect, i, lastPoint, mode, off, outputChar, outputStroke, QIMPenChar::penStrokes(), pointIndex, QIMPenStroke::startingPoint(), QIMPenChar::startingPoint(), strokeIndex, strokes, timer, Waiting, and width. Referenced by QIMPenWidget(). |
|
|
Definition at line 72 of file qimpenwidget.h. |
|
|
Definition at line 85 of file qimpenwidget.h. Referenced by changeCharSet(), clearCharSets(), insertCharSet(), mouseReleaseEvent(), paintEvent(), QIMPenWidget(), removeCharSet(), selectSet(), and sizeHint(). |
|
|
Definition at line 77 of file qimpenwidget.h. Referenced by changeCharSet(), clearCharSets(), insertCharSet(), QIMPenWidget(), removeCharSet(), and selectSet(). |
|
|
Definition at line 80 of file qimpenwidget.h. Referenced by clear(), greyStroke(), paintEvent(), removeStroke(), showCharacter(), and timeout(). |
|
|
Definition at line 83 of file qimpenwidget.h. Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and QIMPenWidget(). |
|
|
Definition at line 74 of file qimpenwidget.h. Referenced by mouseMoveEvent(), mousePressEvent(), showCharacter(), and timeout(). |
|
|
Definition at line 71 of file qimpenwidget.h. Referenced by clear(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), paintEvent(), QIMPenWidget(), resizeEvent(), showCharacter(), and timeout(). |
|
|
Definition at line 81 of file qimpenwidget.h. Referenced by clear(), mousePressEvent(), paintEvent(), QIMPenWidget(), resizeEvent(), showCharacter(), and timeout(). |
|
|
Definition at line 82 of file qimpenwidget.h. Referenced by clear(), mousePressEvent(), QIMPenWidget(), showCharacter(), and timeout(). |
|
|
Definition at line 75 of file qimpenwidget.h. Referenced by showCharacter(), and timeout(). |
|
|
Definition at line 73 of file qimpenwidget.h. Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), QIMPenWidget(), and setReadOnly(). |
|
|
Definition at line 79 of file qimpenwidget.h. Referenced by greyStroke(), paintEvent(), and QIMPenWidget(). |
|
|
Definition at line 76 of file qimpenwidget.h. Referenced by showCharacter(), and timeout(). |
|
|
Definition at line 84 of file qimpenwidget.h. Referenced by clear(), greyStroke(), mousePressEvent(), paintEvent(), QIMPenWidget(), removeStroke(), showCharacter(), and timeout(). |
|
|
Definition at line 78 of file qimpenwidget.h. Referenced by clear(), mousePressEvent(), QIMPenWidget(), showCharacter(), and timeout(). |
|
|
Definition at line 86 of file qimpenwidget.h. Referenced by insertCharSet(), paintEvent(), removeCharSet(), and selectSet(). |
1.4.2