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

QIMPenInput Class Reference

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

Collaboration diagram for QIMPenInput:

Collaboration graph
[legend]
List of all members.

Signals

void key (ushort, ushort, ushort, bool, bool)

Public Member Functions

 QIMPenInput (QWidget *parent=0, const char *name=0, WFlags wf=0)
virtual ~QIMPenInput ()
void resetState ()
QSize sizeHint () const

Private Types

enum  Mode { Normal, Switch, SwitchLock }

Private Slots

void wordPicked (const QString &)
void selectCharSet (int)
void beginStroke ()
void strokeEntered (QIMPenStroke *st)
void matchedCharacters (const QIMPenCharMatchList &cl)
void keypress (uint scan_uni)
void erase ()
void help ()
void setup ()
void backspace ()
void enter ()

Private Member Functions

void loadProfiles ()
void selectProfile (const QString &name)
void handleExtended (const QString &)
void updateWordMatch (QIMPenCharMatchList &ml)
void matchWords ()
void scanDict (const QDawg::Node *n, int ipos, const QString &str, int error)

Private Attributes

Mode mode
QRect prefRect
QIMPenWidgetpw
QPushButton * helpBtn
QPushButton * setupBtn
QIMPenSetupsetupDlg
QIMPenMatchmatcher
QGuardedPtr< HandwritingHelphelpDlg
QIMPenProfileprofile
QList< QIMPenProfileprofileList
QIMPenCharSetshortcutCharSet
QIMPenCharSetList baseSets
int currCharSet
QIMPenWordPickwordPicker

Detailed Description

Pen input widget.

Definition at line 40 of file qimpeninput.h.


Member Enumeration Documentation

enum QIMPenInput::Mode [private]
 

Enumeration values:
Normal 
Switch 
SwitchLock 

Definition at line 75 of file qimpeninput.h.


Constructor & Destructor Documentation

QIMPenInput::QIMPenInput QWidget *  parent = 0,
const char *  name = 0,
WFlags  wf = 0
 

Definition at line 138 of file qimpeninput.cpp.

References backspace(), beginStroke(), bs_xpm, currCharSet, enter(), enter_xpm, erase(), f, Global::fixedDawg(), help(), help_xpm, helpBtn, QIMPenMatch::isWordMatchingEnabled(), keypress(), loadProfiles(), matchedCharacters(), matcher, mode, Normal, pen_xpm, profile, profileList, pw, selectCharSet(), setup(), setupBtn, setupDlg, shortcutCharSet, QIMPenWidget::sizeHint(), strokeEntered(), TRUE, wordPicked(), and wordPicker.

QIMPenInput::~QIMPenInput  )  [virtual]
 

Definition at line 224 of file qimpeninput.cpp.

References helpDlg.


Member Function Documentation

void QIMPenInput::backspace  )  [private, slot]
 

Definition at line 501 of file qimpeninput.cpp.

References QIMPenMatch::backspace(), Qt::Key_Backspace, keypress(), and matcher.

Referenced by QIMPenInput().

void QIMPenInput::beginStroke  )  [private, slot]
 

Definition at line 330 of file qimpeninput.cpp.

Referenced by QIMPenInput().

void QIMPenInput::enter  )  [private, slot]
 

Definition at line 507 of file qimpeninput.cpp.

References Qt::Key_Return, keypress(), matcher, and QIMPenMatch::resetState().

Referenced by QIMPenInput().

void QIMPenInput::erase  )  [private, slot]
 

Definition at line 339 of file qimpeninput.cpp.

References Qt::Key_Backspace, and keypress().

Referenced by QIMPenInput().

void QIMPenInput::handleExtended const QString  )  [private]
 

Definition at line 460 of file qimpeninput.cpp.

References QString::find(), QString::latin1(), QString::mid(), odebug, oendl, and selectProfile().

Referenced by matchedCharacters().

void QIMPenInput::help  )  [private, slot]
 

Definition at line 469 of file qimpeninput.cpp.

References helpDlg, and profile.

Referenced by QIMPenInput().

void QIMPenInput::key ushort  ,
ushort  ,
ushort  ,
bool  ,
bool 
[signal]
 

Referenced by keypress().

void QIMPenInput::keypress uint  scan_uni  )  [private, slot]
 

Definition at line 417 of file qimpeninput.cpp.

References baseSets, QIMPenWidget::changeCharSet(), currCharSet, key(), Qt::Key_A, Qt::Key_Space, mode, Normal, profile, pw, Switch, SwitchLock, and QIMPenProfile::uppercase().

Referenced by backspace(), enter(), erase(), QIMPenInput(), and wordPicked().

void QIMPenInput::loadProfiles  )  [private]
 

Definition at line 236 of file qimpeninput.cpp.

References QIMPenCharSet::addChar(), QValueList< T >::begin(), QValueList< T >::end(), QDir::entryList(), list, p, profile, profileList, QPEApplication::qpeDir(), Config::readEntry(), selectProfile(), Config::setGroup(), QIMPenCharSet::setTitle(), QIMPenProfile::shortcut(), shortcutCharSet, and tr.

Referenced by QIMPenInput(), and setup().

void QIMPenInput::matchedCharacters const QIMPenCharMatchList cl  )  [private, slot]
 

Definition at line 344 of file qimpeninput.cpp.

References baseSets, QIMPenChar::Caps, QIMPenChar::CapsLock, QIMPenWidget::changeCharSet(), QIMPenChar::character(), currCharSet, QIMPenChar::data(), QIMPenChar::Extended, QValueList< T >::first(), handleExtended(), QIMPenProfile::lowercase(), mode, QIMPenChar::ModeBase, Normal, profile, QIMPenProfile::punctuation(), QIMPenChar::Punctuation, pw, QIMPenChar::Shortcut, shortcutCharSet, QIMPenProfile::style(), Switch, SwitchLock, QIMPenProfile::symbol(), QIMPenChar::Symbol, QIMPenProfile::ToggleCases, and QIMPenProfile::uppercase().

Referenced by QIMPenInput().

void QIMPenInput::matchWords  )  [private]
 

void QIMPenInput::resetState  ) 
 

Definition at line 514 of file qimpeninput.cpp.

References matcher, and QIMPenMatch::resetState().

Referenced by HandwritingImpl::resetState().

void QIMPenInput::scanDict const QDawg::Node n,
int  ipos,
const QString str,
int  error
[private]
 

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

Definition at line 320 of file qimpeninput.cpp.

References baseSets, QIMPenWidget::changeCharSet(), currCharSet, mode, Normal, pw, and Switch.

Referenced by QIMPenInput().

void QIMPenInput::selectProfile const QString name  )  [private]
 

Definition at line 264 of file qimpeninput.cpp.

References baseSets, QIMPenProfile::BothCases, QIMPenWidget::clearCharSets(), Global::fixedDawg(), helpDlg, QIMPenWidget::insertCharSet(), QIMPenMatch::isWordMatchingEnabled(), QIMPenProfile::lowercase(), matcher, QIMPenProfile::matchWords(), QIMPenProfile::multiStrokeTimeout(), QIMPenProfile::numeric(), profile, profileList, pw, QIMPenMatch::setMultiStrokeTimeout(), QIMPenMatch::setWordMatchingEnabled(), QIMPenProfile::style(), QIMPenProfile::uppercase(), and wordPicker.

Referenced by handleExtended(), and loadProfiles().

void QIMPenInput::setup  )  [private, slot]
 

Open the setup dialog

Definition at line 482 of file qimpeninput.cpp.

References QIMPenSetup::editor(), Global::hideInputMethod(), loadProfiles(), profile, qApp, setupDlg, Global::showInputMethod(), and TRUE.

Referenced by QIMPenInput().

QSize QIMPenInput::sizeHint  )  const
 

Definition at line 229 of file qimpeninput.cpp.

References pw, QIMPenWidget::sizeHint(), QIMPenWordPick::sizeHint(), and wordPicker.

void QIMPenInput::strokeEntered QIMPenStroke st  )  [private, slot]
 

Definition at line 334 of file qimpeninput.cpp.

References QIMPenWidget::greyStroke(), and pw.

Referenced by QIMPenInput().

void QIMPenInput::updateWordMatch QIMPenCharMatchList ml  )  [private]
 

void QIMPenInput::wordPicked const QString  )  [private, slot]
 

Definition at line 307 of file qimpeninput.cpp.

References QIMPenWordPick::clear(), i, Qt::Key_Backspace, keypress(), matcher, QIMPenMatch::resetState(), QIMPenMatch::word(), and wordPicker.

Referenced by QIMPenInput().


Member Data Documentation

QIMPenCharSetList QIMPenInput::baseSets [private]
 

Definition at line 89 of file qimpeninput.h.

Referenced by keypress(), matchedCharacters(), selectCharSet(), and selectProfile().

int QIMPenInput::currCharSet [private]
 

Definition at line 90 of file qimpeninput.h.

Referenced by keypress(), matchedCharacters(), QIMPenInput(), and selectCharSet().

QPushButton* QIMPenInput::helpBtn [private]
 

Definition at line 81 of file qimpeninput.h.

Referenced by QIMPenInput().

QGuardedPtr<HandwritingHelp> QIMPenInput::helpDlg [private]
 

Definition at line 85 of file qimpeninput.h.

Referenced by help(), selectProfile(), and ~QIMPenInput().

QIMPenMatch* QIMPenInput::matcher [private]
 

Definition at line 84 of file qimpeninput.h.

Referenced by backspace(), enter(), QIMPenInput(), resetState(), selectProfile(), and wordPicked().

Mode QIMPenInput::mode [private]
 

Definition at line 78 of file qimpeninput.h.

Referenced by keypress(), matchedCharacters(), QIMPenInput(), and selectCharSet().

QRect QIMPenInput::prefRect [private]
 

Definition at line 79 of file qimpeninput.h.

QIMPenProfile* QIMPenInput::profile [private]
 

Definition at line 86 of file qimpeninput.h.

Referenced by help(), keypress(), loadProfiles(), matchedCharacters(), QIMPenInput(), selectProfile(), and setup().

QList<QIMPenProfile> QIMPenInput::profileList [private]
 

Definition at line 87 of file qimpeninput.h.

Referenced by loadProfiles(), QIMPenInput(), and selectProfile().

QIMPenWidget* QIMPenInput::pw [private]
 

Definition at line 80 of file qimpeninput.h.

Referenced by keypress(), matchedCharacters(), QIMPenInput(), selectCharSet(), selectProfile(), sizeHint(), and strokeEntered().

QPushButton* QIMPenInput::setupBtn [private]
 

Definition at line 82 of file qimpeninput.h.

Referenced by QIMPenInput().

QIMPenSetup* QIMPenInput::setupDlg [private]
 

Definition at line 83 of file qimpeninput.h.

Referenced by QIMPenInput(), and setup().

QIMPenCharSet* QIMPenInput::shortcutCharSet [private]
 

Definition at line 88 of file qimpeninput.h.

Referenced by loadProfiles(), matchedCharacters(), and QIMPenInput().

QIMPenWordPick* QIMPenInput::wordPicker [private]
 

Definition at line 91 of file qimpeninput.h.

Referenced by QIMPenInput(), selectProfile(), sizeHint(), and wordPicked().


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