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

MultiKey::Keys Class Reference

#include </home/clem/local/src/opie/inputmethods/multikey/keyboard.h>

Collaboration diagram for MultiKey::Keys:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Keys ()
 Keys (const char *filename)
 ~Keys ()
int width (const int row, const int col)
int rows ()
ushort uni (const int row, const int col)
int qcode (const int row, const int col)
bool pressed (const int row, const int col)
bool * pressedPtr (const int row, const int col)
ushort shift (const ushort)
ushort meta (const ushort)
ushort circumflex (const ushort)
ushort diaeresis (const ushort)
ushort baccent (const ushort)
ushort accent (const ushort)
QImage * pix (const int row, const int col)
int numKeys (const int row)
void setKeysFromFile (const char *filename)
void setKey (const int row, const int qcode, const ushort unicode, const int width, QImage *pix)
void setPressed (const int row, const int col, const bool pressed)

Public Attributes

QString lang
QString label

Private Attributes

QList< Keykeys [6]
QMap< ushort, ushort > shiftMap
QMap< ushort, ushort > metaMap
QMap< ushort, ushort > circumflexMap
QMap< ushort, ushort > diaeresisMap
QMap< ushort, ushort > baccentMap
QMap< ushort, ushort > accentMap

Classes

struct  Key

Constructor & Destructor Documentation

Keys::Keys  ) 
 

Definition at line 1366 of file keyboard.cpp.

References QString::isNull(), QPEApplication::qpeDir(), Config::readEntry(), Config::setGroup(), and setKeysFromFile().

Keys::Keys const char *  filename  ) 
 

Definition at line 1391 of file keyboard.cpp.

References setKeysFromFile().

Keys::~Keys  ) 
 

Definition at line 1614 of file keyboard.cpp.

References keys.


Member Function Documentation

ushort Keys::accent const   ushort  ) 
 

Definition at line 1701 of file keyboard.cpp.

References accentMap.

ushort Keys::baccent const   ushort  ) 
 

Definition at line 1695 of file keyboard.cpp.

References baccentMap.

ushort Keys::circumflex const   ushort  ) 
 

Definition at line 1683 of file keyboard.cpp.

References circumflexMap.

ushort Keys::diaeresis const   ushort  ) 
 

Definition at line 1689 of file keyboard.cpp.

References diaeresisMap.

ushort Keys::meta const   ushort  ) 
 

Definition at line 1677 of file keyboard.cpp.

References metaMap.

int Keys::numKeys const int  row  ) 
 

Definition at line 1661 of file keyboard.cpp.

References keys.

QImage * Keys::pix const int  row,
const int  col
 

Definition at line 1651 of file keyboard.cpp.

References keys.

bool Keys::pressed const int  row,
const int  col
 

Definition at line 1656 of file keyboard.cpp.

References keys.

bool * Keys::pressedPtr const int  row,
const int  col
 

Definition at line 1707 of file keyboard.cpp.

References keys.

int Keys::qcode const int  row,
const int  col
 

Definition at line 1646 of file keyboard.cpp.

References keys.

Referenced by setKeysFromFile().

int Keys::rows  ) 
 

Definition at line 1629 of file keyboard.cpp.

References keys.

void Keys::setKey const int  row,
const int  qcode,
const ushort  unicode,
const int  width,
QImage *  pix
 

Definition at line 1581 of file keyboard.cpp.

References at(), keys, MultiKey::Keys::Key::pix, MultiKey::Keys::Key::pressed, MultiKey::Keys::Key::qcode, MultiKey::Keys::Key::unicode, and MultiKey::Keys::Key::width.

Referenced by setKeysFromFile().

void Keys::setKeysFromFile const char *  filename  ) 
 

Definition at line 1397 of file keyboard.cpp.

References accentMap, QString::at(), baccentMap, buf, circumflexMap, QString::contains(), diaeresisMap, f, FALSE, QMap< Key, T >::insert(), IO_ReadOnly, kb_config_xpm, lang, QString::length(), lower(), metaMap, name, QFile::open(), qcode(), qDebug(), QTextStream::readLine(), QString::replace(), setKey(), shiftMap, t, and width().

Referenced by Keys().

void Keys::setPressed const int  row,
const int  col,
const bool  pressed
 

Definition at line 1666 of file keyboard.cpp.

References keys.

ushort Keys::shift const   ushort  ) 
 

Definition at line 1671 of file keyboard.cpp.

References shiftMap.

ushort Keys::uni const int  row,
const int  col
 

Definition at line 1640 of file keyboard.cpp.

References keys.

int Keys::width const int  row,
const int  col
 

Definition at line 1623 of file keyboard.cpp.

References keys.

Referenced by setKeysFromFile().


Member Data Documentation

QMap<ushort,ushort> MultiKey::Keys::accentMap [private]
 

Definition at line 101 of file keyboard.h.

Referenced by accent(), and setKeysFromFile().

QMap<ushort,ushort> MultiKey::Keys::baccentMap [private]
 

Definition at line 100 of file keyboard.h.

Referenced by baccent(), and setKeysFromFile().

QMap<ushort,ushort> MultiKey::Keys::circumflexMap [private]
 

Definition at line 98 of file keyboard.h.

Referenced by circumflex(), and setKeysFromFile().

QMap<ushort,ushort> MultiKey::Keys::diaeresisMap [private]
 

Definition at line 99 of file keyboard.h.

Referenced by diaeresis(), and setKeysFromFile().

QList<Key> MultiKey::Keys::keys[6] [private]
 

Definition at line 95 of file keyboard.h.

Referenced by numKeys(), pix(), pressed(), pressedPtr(), qcode(), rows(), setKey(), setPressed(), uni(), width(), and ~Keys().

QString MultiKey::Keys::label
 

Definition at line 81 of file keyboard.h.

QString MultiKey::Keys::lang
 

Definition at line 80 of file keyboard.h.

Referenced by setKeysFromFile().

QMap<ushort,ushort> MultiKey::Keys::metaMap [private]
 

Definition at line 97 of file keyboard.h.

Referenced by meta(), and setKeysFromFile().

QMap<ushort,ushort> MultiKey::Keys::shiftMap [private]
 

Definition at line 96 of file keyboard.h.

Referenced by setKeysFromFile(), and shift().


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