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

QIMPenEdit Class Reference

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

Collaboration diagram for QIMPenEdit:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 QIMPenEdit (QIMPenProfile *p, QWidget *parent=0, const char *name=0)
void setProfile (QIMPenProfile *p)
void selectCharSet (QIMPenCharSet *c)

Protected Slots

void prevChar ()
void nextChar ()
void clearChar ()
void selectChar (int)
void selectCharSet (int)
void selectCharSetVisible (int)
void addChar ()
void addNewChar ()
void removeChar ()
void defaultChars ()
void newStroke (QIMPenStroke *)

Protected Member Functions

void fillCharList ()
void enableButtons ()
QIMPenCharfindPrev ()
QIMPenCharfindNext ()
void setCurrentChar (QIMPenChar *)

Protected Attributes

QIMPenWidgetpw
QComboBox * charSetCombo
QListBox * charList
QPushButton * newBtn
QPushButton * addBtn
QPushButton * removeBtn
QPushButton * prevBtn
QPushButton * nextBtn
uint currentCode
QIMPenCharcurrentChar
QIMPenCharinputChar
QIMPenCharSetcurrentSet
QIMPenProfileprofile

Detailed Description

Class to allow users to input totally useless character definitions which could match any number of the default set.

Definition at line 80 of file qimpensetup.h.


Constructor & Destructor Documentation

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

Definition at line 313 of file qimpensetup.cpp.

References addBtn, addChar(), addNewChar(), charList, charSetCombo, QIMPenProfile::charSets(), clearChar(), currentChar, currentCode, defaultChars(), enableButtons(), inputChar, left_xpm, newBtn, newStroke(), nextBtn, nextChar(), prevBtn, prevChar(), profile, pw, removeBtn, removeChar(), right_xpm, selectChar(), selectCharSetVisible(), and tr.


Member Function Documentation

void QIMPenEdit::addChar  )  [protected, slot]
 

Definition at line 578 of file qimpensetup.cpp.

References QIMPenCharSet::addChar(), QIMPenChar::character(), QIMPenCharSet::characters(), QIMPenChar::clear(), QIMPenChar::clearFlag(), currentCode, currentSet, QIMPenChar::Deleted, inputChar, QIMPenChar::isEmpty(), QIMPenChar::setCharacter(), setCurrentChar(), QIMPenChar::System, and QIMPenChar::testFlag().

Referenced by addNewChar(), and QIMPenEdit().

void QIMPenEdit::addNewChar  )  [protected, slot]
 

Definition at line 607 of file qimpensetup.cpp.

References addChar(), charList, CharListItem::code(), currentCode, fillCharList(), i, inputChar, QIMPenChar::isEmpty(), TRUE, and QIMPenInputCharDlg::unicode().

Referenced by QIMPenEdit().

void QIMPenEdit::clearChar  )  [protected, slot]
 

Definition at line 529 of file qimpensetup.cpp.

References QIMPenWidget::clear(), QIMPenChar::clear(), enableButtons(), inputChar, and pw.

Referenced by QIMPenEdit().

void QIMPenEdit::defaultChars  )  [protected, slot]
 

Definition at line 639 of file qimpensetup.cpp.

References QIMPenChar::character(), QIMPenCharSet::characters(), QIMPenChar::clearFlag(), currentChar, currentCode, currentSet, QIMPenChar::Deleted, FALSE, QIMPenCharSet::removeChar(), setCurrentChar(), QIMPenChar::System, QIMPenChar::testFlag(), and TRUE.

Referenced by QIMPenEdit().

void QIMPenEdit::enableButtons  )  [protected]
 

Definition at line 453 of file qimpensetup.cpp.

References add, addBtn, currentChar, inputChar, QIMPenChar::isEmpty(), newBtn, and removeBtn.

Referenced by clearChar(), newStroke(), QIMPenEdit(), and setProfile().

void QIMPenEdit::fillCharList  )  [protected]
 

Fill the character list box with the characters. Duplicates are not inserted.

Definition at line 430 of file qimpensetup.cpp.

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

Referenced by addNewChar(), and selectCharSet().

QIMPenChar * QIMPenEdit::findNext  )  [protected]
 

Find the next character with the same code as the current one. returns 0 if there is no next character.

Definition at line 487 of file qimpensetup.cpp.

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

Referenced by nextChar(), removeChar(), and setCurrentChar().

QIMPenChar * QIMPenEdit::findPrev  )  [protected]
 

Find the previous character with the same code as the current one. returns 0 if there is no previous character.

Definition at line 465 of file qimpensetup.cpp.

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

Referenced by prevChar(), removeChar(), and setCurrentChar().

void QIMPenEdit::newStroke QIMPenStroke  )  [protected, slot]
 

Definition at line 672 of file qimpensetup.cpp.

References QIMPenChar::addStroke(), enableButtons(), and inputChar.

Referenced by QIMPenEdit().

void QIMPenEdit::nextChar  )  [protected, slot]
 

Definition at line 522 of file qimpensetup.cpp.

References findNext(), and setCurrentChar().

Referenced by QIMPenEdit().

void QIMPenEdit::prevChar  )  [protected, slot]
 

Definition at line 515 of file qimpensetup.cpp.

References findPrev(), and setCurrentChar().

Referenced by QIMPenEdit().

void QIMPenEdit::removeChar  )  [protected, slot]
 

Definition at line 626 of file qimpensetup.cpp.

References currentChar, currentSet, QIMPenChar::Deleted, findNext(), findPrev(), QIMPenCharSet::removeChar(), setCurrentChar(), QIMPenChar::setFlag(), QIMPenChar::System, and QIMPenChar::testFlag().

Referenced by QIMPenEdit().

void QIMPenEdit::selectChar int   )  [protected, slot]
 

Definition at line 536 of file qimpensetup.cpp.

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

Referenced by QIMPenEdit(), and selectCharSet().

void QIMPenEdit::selectCharSet int   )  [protected, slot]
 

Definition at line 564 of file qimpensetup.cpp.

References charList, QIMPenProfile::charSets(), QIMPenChar::clear(), currentSet, fillCharList(), inputChar, QIMPenWidget::insertCharSet(), profile, pw, QIMPenWidget::removeCharSet(), selectChar(), and TRUE.

void QIMPenEdit::selectCharSet QIMPenCharSet c  ) 
 

Definition at line 413 of file qimpensetup.cpp.

References charSetCombo, QIMPenProfile::charSets(), i, and profile.

Referenced by selectCharSetVisible().

void QIMPenEdit::selectCharSetVisible int   )  [protected, slot]
 

Definition at line 553 of file qimpensetup.cpp.

References charSetCombo, QIMPenProfile::charSets(), i, profile, and selectCharSet().

Referenced by QIMPenEdit(), and setProfile().

void QIMPenEdit::setCurrentChar QIMPenChar  )  [protected]
 

Definition at line 505 of file qimpensetup.cpp.

References currentChar, findNext(), findPrev(), nextBtn, prevBtn, pw, and QIMPenWidget::showCharacter().

Referenced by addChar(), defaultChars(), nextChar(), prevChar(), removeChar(), and selectChar().

void QIMPenEdit::setProfile QIMPenProfile p  ) 
 

Definition at line 399 of file qimpensetup.cpp.

References charList, charSetCombo, QIMPenProfile::charSets(), enableButtons(), profile, and selectCharSetVisible().

Referenced by QIMPenSetup::loadProfiles(), and QIMPenSetup::selectProfile().


Member Data Documentation

QPushButton* QIMPenEdit::addBtn [protected]
 

Definition at line 115 of file qimpensetup.h.

Referenced by enableButtons(), and QIMPenEdit().

QListBox* QIMPenEdit::charList [protected]
 

Definition at line 113 of file qimpensetup.h.

Referenced by addNewChar(), fillCharList(), QIMPenEdit(), selectChar(), selectCharSet(), and setProfile().

QComboBox* QIMPenEdit::charSetCombo [protected]
 

Definition at line 112 of file qimpensetup.h.

Referenced by QIMPenEdit(), selectCharSet(), selectCharSetVisible(), and setProfile().

QIMPenChar* QIMPenEdit::currentChar [protected]
 

Definition at line 120 of file qimpensetup.h.

Referenced by defaultChars(), enableButtons(), fillCharList(), findNext(), QIMPenEdit(), removeChar(), selectChar(), and setCurrentChar().

uint QIMPenEdit::currentCode [protected]
 

Definition at line 119 of file qimpensetup.h.

Referenced by addChar(), addNewChar(), defaultChars(), findNext(), findPrev(), QIMPenEdit(), and selectChar().

QIMPenCharSet* QIMPenEdit::currentSet [protected]
 

Definition at line 122 of file qimpensetup.h.

Referenced by addChar(), defaultChars(), fillCharList(), findNext(), findPrev(), removeChar(), selectChar(), and selectCharSet().

QIMPenChar* QIMPenEdit::inputChar [protected]
 

Definition at line 121 of file qimpensetup.h.

Referenced by addChar(), addNewChar(), clearChar(), enableButtons(), newStroke(), QIMPenEdit(), selectChar(), and selectCharSet().

QPushButton* QIMPenEdit::newBtn [protected]
 

Definition at line 114 of file qimpensetup.h.

Referenced by enableButtons(), and QIMPenEdit().

QPushButton* QIMPenEdit::nextBtn [protected]
 

Definition at line 118 of file qimpensetup.h.

Referenced by QIMPenEdit(), and setCurrentChar().

QPushButton* QIMPenEdit::prevBtn [protected]
 

Definition at line 117 of file qimpensetup.h.

Referenced by QIMPenEdit(), and setCurrentChar().

QIMPenProfile* QIMPenEdit::profile [protected]
 

Definition at line 123 of file qimpensetup.h.

Referenced by QIMPenEdit(), selectCharSet(), selectCharSetVisible(), and setProfile().

QIMPenWidget* QIMPenEdit::pw [protected]
 

Definition at line 111 of file qimpensetup.h.

Referenced by clearChar(), QIMPenEdit(), selectCharSet(), and setCurrentChar().

QPushButton* QIMPenEdit::removeBtn [protected]
 

Definition at line 116 of file qimpensetup.h.

Referenced by enableButtons(), and QIMPenEdit().


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