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

QIMPenProfile Class Reference

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

Collaboration diagram for QIMPenProfile:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Style { ToggleCases, BothCases }

Public Member Functions

 QIMPenProfile (const QString &fn)
const QStringname () const
const QStringdescription () const
Style style () const
bool mono () const
void setStyle (Style s)
bool canSelectStyle () const
int multiStrokeTimeout () const
void setMultiStrokeTimeout (int t)
bool matchWords () const
QIMPenCharSetuppercase ()
QIMPenCharSetlowercase ()
QIMPenCharSetnumeric ()
QIMPenCharSetpunctuation ()
QIMPenCharSetsymbol ()
QIMPenCharSetshortcut ()
QIMPenCharSetfind (QIMPenCharSet::Type t)
QIMPenCharSetListcharSets ()

Private Member Functions

QString userConfig ()
void loadData ()

Private Attributes

QIMPenCharSetList sets
QString filename
QString pname
QString pdesc
Style pstyle
bool tstyle
int msTimeout
bool wordMatch
bool pmono

Member Enumeration Documentation

enum QIMPenProfile::Style
 

Enumeration values:
ToggleCases 
BothCases 

Definition at line 34 of file qimpenprofile.h.


Constructor & Destructor Documentation

QIMPenProfile::QIMPenProfile const QString fn  ) 
 

Definition at line 29 of file qimpenprofile.cpp.

References BothCases, Config::File, filename, QString::fromLatin1(), Config::hasKey(), msTimeout, pdesc, pmono, pname, pstyle, Config::readBoolEntry(), Config::readEntry(), Config::readNumEntry(), s, Config::setGroup(), sets, t, ToggleCases, tstyle, userConfig(), and wordMatch.


Member Function Documentation

bool QIMPenProfile::canSelectStyle  )  const [inline]
 

Definition at line 39 of file qimpenprofile.h.

References tstyle.

Referenced by QIMPenSetup::selectProfile().

QIMPenCharSetList & QIMPenProfile::charSets  ) 
 

Definition at line 249 of file qimpenprofile.cpp.

References loadData(), and sets.

Referenced by QIMPenSetup::accept(), HandwritingTrainer::HandwritingTrainer(), QIMPenEdit::QIMPenEdit(), QIMPenEdit::selectCharSet(), HandwritingTrainer::selectCharSet(), QIMPenEdit::selectCharSetVisible(), and QIMPenEdit::setProfile().

const QString& QIMPenProfile::description  )  const [inline]
 

Definition at line 32 of file qimpenprofile.h.

References pdesc.

QIMPenCharSet * QIMPenProfile::find QIMPenCharSet::Type  t  ) 
 

Definition at line 256 of file qimpenprofile.cpp.

References loadData(), and sets.

Referenced by lowercase(), numeric(), punctuation(), shortcut(), symbol(), and uppercase().

void QIMPenProfile::loadData  )  [private]
 

Definition at line 105 of file qimpenprofile.cpp.

References QIMPenCombining::addCombined(), Global::applicationFileName(), Config::File, filename, QIMPenCharSet::isEmpty(), QString::isEmpty(), QIMPenCharSet::load(), mono(), QPEApplication::qpeDir(), Config::readEntry(), s, Config::setGroup(), sets, upper(), QIMPenCharSet::Upper, and QIMPenCharSet::User.

Referenced by charSets(), and find().

QIMPenCharSet * QIMPenProfile::lowercase  ) 
 

Definition at line 224 of file qimpenprofile.cpp.

References find(), and QIMPenCharSet::Lower.

Referenced by QIMPenInput::matchedCharacters(), and QIMPenInput::selectProfile().

bool QIMPenProfile::matchWords  )  const [inline]
 

Definition at line 44 of file qimpenprofile.h.

References wordMatch.

Referenced by QIMPenInput::selectProfile().

bool QIMPenProfile::mono  )  const [inline]
 

Definition at line 36 of file qimpenprofile.h.

References pmono.

Referenced by loadData().

int QIMPenProfile::multiStrokeTimeout  )  const [inline]
 

Definition at line 41 of file qimpenprofile.h.

References msTimeout.

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

const QString& QIMPenProfile::name  )  const [inline]
 

Definition at line 31 of file qimpenprofile.h.

References pname.

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

QIMPenCharSet * QIMPenProfile::numeric  ) 
 

Definition at line 229 of file qimpenprofile.cpp.

References find(), and QIMPenCharSet::Numeric.

Referenced by QIMPenInput::selectProfile().

QIMPenCharSet * QIMPenProfile::punctuation  ) 
 

Definition at line 234 of file qimpenprofile.cpp.

References find(), and QIMPenCharSet::Punctuation.

Referenced by QIMPenInput::matchedCharacters().

void QIMPenProfile::setMultiStrokeTimeout int  t  ) 
 

Definition at line 80 of file qimpenprofile.cpp.

References msTimeout, Config::setGroup(), userConfig(), and Config::writeEntry().

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

void QIMPenProfile::setStyle Style  s  ) 
 

Definition at line 69 of file qimpenprofile.cpp.

References pstyle, Config::setGroup(), ToggleCases, tstyle, userConfig(), and Config::writeEntry().

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

QIMPenCharSet * QIMPenProfile::shortcut  ) 
 

Definition at line 244 of file qimpenprofile.cpp.

References find(), and QIMPenCharSet::Shortcut.

Referenced by QIMPenInput::loadProfiles().

Style QIMPenProfile::style  )  const [inline]
 

Definition at line 35 of file qimpenprofile.h.

References pstyle.

Referenced by QIMPenInput::matchedCharacters(), QIMPenSetup::selectProfile(), and QIMPenInput::selectProfile().

QIMPenCharSet * QIMPenProfile::symbol  ) 
 

Definition at line 239 of file qimpenprofile.cpp.

References find(), and QIMPenCharSet::Symbol.

Referenced by QIMPenInput::matchedCharacters().

QIMPenCharSet * QIMPenProfile::uppercase  ) 
 

Definition at line 219 of file qimpenprofile.cpp.

References find(), and QIMPenCharSet::Upper.

Referenced by QIMPenInput::keypress(), QIMPenInput::matchedCharacters(), and QIMPenInput::selectProfile().

QString QIMPenProfile::userConfig  )  [private]
 

Definition at line 90 of file qimpenprofile.cpp.

References filename, QString::find(), QString::findRev(), QString::mid(), pos, and QString::truncate().

Referenced by QIMPenProfile(), setMultiStrokeTimeout(), and setStyle().


Member Data Documentation

QString QIMPenProfile::filename [private]
 

Definition at line 62 of file qimpenprofile.h.

Referenced by loadData(), QIMPenProfile(), and userConfig().

int QIMPenProfile::msTimeout [private]
 

Definition at line 67 of file qimpenprofile.h.

Referenced by multiStrokeTimeout(), QIMPenProfile(), and setMultiStrokeTimeout().

QString QIMPenProfile::pdesc [private]
 

Definition at line 64 of file qimpenprofile.h.

Referenced by description(), and QIMPenProfile().

bool QIMPenProfile::pmono [private]
 

Definition at line 69 of file qimpenprofile.h.

Referenced by mono(), and QIMPenProfile().

QString QIMPenProfile::pname [private]
 

Definition at line 63 of file qimpenprofile.h.

Referenced by name(), and QIMPenProfile().

Style QIMPenProfile::pstyle [private]
 

Definition at line 65 of file qimpenprofile.h.

Referenced by QIMPenProfile(), setStyle(), and style().

QIMPenCharSetList QIMPenProfile::sets [private]
 

Definition at line 61 of file qimpenprofile.h.

Referenced by charSets(), find(), loadData(), and QIMPenProfile().

bool QIMPenProfile::tstyle [private]
 

Definition at line 66 of file qimpenprofile.h.

Referenced by canSelectStyle(), QIMPenProfile(), and setStyle().

bool QIMPenProfile::wordMatch [private]
 

Definition at line 68 of file qimpenprofile.h.

Referenced by matchWords(), and QIMPenProfile().


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