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

KeyNames Class Reference

#include </home/clem/local/src/opie/noncore/applets/keyhelper/keyhelperapplet/misc/KeyNames.h>

Collaboration diagram for KeyNames:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

static const QStringgetName (int code)
static int getCode (const QString &s)
static void clearName ()
static void setCode (const QString &s, int code)
static void clearCode ()
static void reset ()
static const QStringgetName (int code)
static void clearName ()
static int getCode (const QString &s)
static void setCode (const QString &s, int code)
static void clearCode ()
static void reset ()
static int find (const QString &key)
static const QStringfind (int)

Static Private Member Functions

static void setCodeMap ()
static void setNameMap ()
static void setCodeMap ()
static void setNameMap ()

Static Private Attributes

static QMap< QString, int > codemap
static QMap< int, QStringnamemap
static QString tmpname
static QMap< QString, int > codemap
static QMap< int, QStringnamemap

Member Function Documentation

static void KeyNames::clearCode  )  [inline, static]
 

Definition at line 35 of file KeyNames.h.

References QMap< Key, T >::clear(), and codemap.

static void KeyNames::clearCode  )  [inline, static]
 

Definition at line 22 of file KeyNames.h.

References QMap< Key, T >::clear(), and codemap.

Referenced by KeycfgReader::load(), and reset().

static void KeyNames::clearName  )  [inline, static]
 

Definition at line 19 of file KeyNames.h.

References QMap< Key, T >::clear(), and namemap.

static void KeyNames::clearName  )  [inline, static]
 

Definition at line 14 of file KeyNames.h.

References QMap< Key, T >::clear(), and namemap.

const QString & KeyNames::find int   )  [static]
 

Definition at line 96 of file zkbnames.cpp.

References QMap< Key, T >::end(), QMap< Key, T >::find(), init_kn_maps(), QMap< Key, T >::isEmpty(), and Null_String.

int KeyNames::find const QString key  )  [static]
 

Definition at line 83 of file zkbnames.cpp.

References QMap< Key, T >::end(), QMap< Key, T >::find(), init_kn_maps(), and QMap< Key, T >::isEmpty().

Referenced by ZkbXmlHandler::str2key().

static int KeyNames::getCode const QString s  )  [inline, static]
 

Definition at line 22 of file KeyNames.h.

References codemap, QMap< Key, T >::contains(), QMap< Key, T >::isEmpty(), and setCodeMap().

int KeyNames::getCode const QString s  )  [static]
 

Definition at line 278 of file KeyNames.cpp.

References codemap, QMap< Key, T >::contains(), QMap< Key, T >::isEmpty(), setCodeMap(), and val.

Referenced by KeyHelperWidget::doEvent(), ModifiersHandler::endElement(), ExtensionsHandler::endElement(), KeyAction::init(), KeyHelper::setDefault(), RepeaterHandler::startElement(), ModifiersHandler::startElement(), MappingsHandler::startElement(), and ExtensionsHandler::startElement().

static const QString& KeyNames::getName int  code  )  [inline, static]
 

Definition at line 11 of file KeyNames.h.

References QMap< Key, T >::contains(), QMap< Key, T >::isEmpty(), namemap, QString::null, and setNameMap().

const QString & KeyNames::getName int  code  )  [static]
 

Definition at line 294 of file KeyNames.cpp.

References QMap< Key, T >::contains(), QMap< Key, T >::isEmpty(), namemap, setNameMap(), QString::sprintf(), and tmpname.

Referenced by KHCWidget::onClick_Gen(), KeyLauncher::onKeyPress(), KHCWidget::onPress_Map(), and KHCWidget::onPress_Org().

static void KeyNames::reset  )  [inline, static]
 

Definition at line 38 of file KeyNames.h.

References clearCode().

static void KeyNames::reset  )  [inline, static]
 

Definition at line 25 of file KeyNames.h.

References clearCode().

Referenced by KeycfgReader::load().

static void KeyNames::setCode const QString s,
int  code
[inline, static]
 

Definition at line 30 of file KeyNames.h.

References codemap, QMap< Key, T >::contains(), and QMap< Key, T >::insert().

static void KeyNames::setCode const QString s,
int  code
[inline, static]
 

Definition at line 17 of file KeyNames.h.

References codemap, QMap< Key, T >::contains(), and QMap< Key, T >::insert().

Referenced by ModifiersHandler::endElement().

static void KeyNames::setCodeMap  )  [static, private]
 

void KeyNames::setCodeMap  )  [static, private]
 

Definition at line 257 of file KeyNames.cpp.

References QMap< Key, T >::clear(), code, codemap, i, QMap< Key, T >::insert(), name, and stKeyNames.

Referenced by getCode().

static void KeyNames::setNameMap  )  [static, private]
 

void KeyNames::setNameMap  )  [static, private]
 

Definition at line 267 of file KeyNames.cpp.

References QMap< Key, T >::clear(), i, QMap< Key, T >::insert(), name, namemap, and stKeyNames.

Referenced by getName().


Member Data Documentation

QMap<QString, int> KeyNames::codemap [static, private]
 

Definition at line 42 of file KeyNames.h.

QMap< QString, int > KeyNames::codemap [static, private]
 

Definition at line 3 of file KeyNames.cpp.

Referenced by clearCode(), getCode(), setCode(), and setCodeMap().

QMap<int, QString> KeyNames::namemap [static, private]
 

Definition at line 43 of file KeyNames.h.

QMap< int, QString > KeyNames::namemap [static, private]
 

Definition at line 4 of file KeyNames.cpp.

Referenced by clearName(), getName(), and setNameMap().

QString KeyNames::tmpname [static, private]
 

Definition at line 5 of file KeyNames.cpp.

Referenced by getName().


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