Classes | |
struct | KKeyServer::Sym |
Represents a key symbol. More... | |
struct | KKeyServer::Key |
Represents a key press. More... | |
struct | KKeyServer::Variations |
TODO: please document this class. More... | |
Enumerations | |
enum | ExtraModFlag { MODE_SWITCH = 0x2000 } |
Functions | |
bool | initializeMods () |
void | initializeVariations () |
void | intializeKKeyLabels () |
uint | modX (KKey::ModFlag mod) |
bool | keyboardHasWinKey () |
uint | modXShift () |
uint | modXLock () |
uint | modXCtrl () |
uint | modXAlt () |
uint | modXNumLock () |
uint | modXWin () |
uint | modXScrollLock () |
uint | accelModMaskX () |
bool | keyQtToSym (int keyQt, uint &keySym) |
bool | keyQtToMod (int keyQt, uint &mod) |
bool | symToKeyQt (uint keySym, int &keyQt) |
bool | modToModQt (uint mod, int &modQt) |
bool | modToModX (uint mod, uint &modX) |
bool | modXToModQt (uint modX, int &modQt) |
bool | modXToMod (uint modX, uint &mod) |
bool | codeXToSym (uchar codeX, uint modX, uint &sym) |
QString | modToString (uint mod, bool bUserSpace) |
QString | modToStringInternal (uint mod) |
QString | modToStringUser (uint mod) |
bool | stringToSymMod (const QString &, uint &sym, uint &mod) |
void | keyQtToKeyX (uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX) |
Variables | |
ModInfo | g_rgModInfo [KKey::MOD_FLAG_COUNT] |
SymVariation | g_rgSymVariation [] |
const SymName | g_rgSymNames [] |
const TransKey | g_rgQtToSymX [] |
bool | g_bInitializedMods |
bool | g_bInitializedVariations |
bool | g_bInitializedKKeyLabels |
bool | g_bMacLabels |
uint | g_modXNumLock |
uint | g_modXScrollLock |
Detailed Description
A collection of functions for the conversion of key presses and their modifiers from the window system (X11) specific format to the generic format and vice-versa.Enumeration Type Documentation
|
Supplement enum KKey::ModFlag
Definition at line 18 of file kkeyserver_x11.h. |
Function Documentation
|
TODO: please document. Definition at line 288 of file kkeyserver_x11.cpp. References endl(), and modX(). Referenced by accelModMaskX(), keyboardHasWinKey(), modToModX(), modX(), modXNumLock(), modXScrollLock(), modXToMod(), modXToModQt(), and modXWin(). |
|
Returns the equivalent X modifier mask of the given modifier flag.
References initializeMods(). Referenced by codeXToSym(), initializeMods(), modToModX(), KKeyNative::modX(), modXToMod(), and modXToModQt(). |
|
Returns true if the current keyboard layout supports the Win key. Specifically, whether the Super or Meta keys are assigned to an X modifier.
References initializeMods(). Referenced by KKeyNative::keyboardHasWinKey(). |
|
Returns the X11 Shift modifier mask/flag.
|
|
Returns the X11 Lock modifier mask/flag.
Referenced by KKeyNative::modXLock(). |
|
Returns the X11 Ctrl modifier mask/flag.
|
|
Returns the X11 Alt (Mod1) modifier mask/flag.
|
|
Returns the X11 NumLock modifier mask/flag.
References initializeMods(). Referenced by KKeyNative::modXNumLock(). |
|
Returns the X11 Win (Mod3) modifier mask/flag.
References initializeMods(). |
|
Returns the X11 ScrollLock modifier mask/flag.
References initializeMods(). Referenced by KKeyNative::modXScrollLock(). |
|
Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and Win (if available). Definition at line 537 of file kkeyserver_x11.cpp. References initializeMods(). Referenced by KKeyNative::accelModMaskX(). |
|
Extracts the symbol from the given Qt key and converts it to a symbol.
References KKeyServer::Sym::initQt(), and KKeyServer::Sym::m_sym. Referenced by KKey::init(). |
|
Extracts the modifiers from the given Qt key and converts them in a mask of ORed KKey::ModFlag modifiers.
Referenced by KKey::init(). |
|
Converts the given symbol to a Qt key code.
References KKeyServer::Sym::qt(). |
|
Converts the mask of ORed KKey::ModFlag modifiers to a mask of ORed Qt key code modifiers.
|
|
Converts the mask of ORed KKey::ModFlag modifiers to a mask of ORed X11 modifiers.
References endl(), initializeMods(), and modX(). Referenced by KKeyNative::init(). |
|
Converts the mask of ORed X11 modifiers to a mask of ORed Qt key code modifiers.
References initializeMods(), and modX(). Referenced by KKeyNative::keyCodeQt(). |
|
Converts the mask of ORed X11 modifiers to a mask of ORed KKey::ModFlag modifiers.
References initializeMods(), and modX(). Referenced by KKeyServer::Key::key(), and KKeyNative::key(). |
|
Converts a X11 key code and a mask of ORed X11 modifiers into a X11 symbol. converts it to a symbol.
References modX(). Referenced by KKeyNative::init(). |
|
Converts the mask of ORed KKey::ModFlag modifiers to a user-readable string.
Referenced by KKey::modFlagLabel(), and KKey::toString(). |
Variable Documentation
|
Initial value: Definition at line 70 of file kkeyserver_x11.cpp. |
|
Initial value: Definition at line 78 of file kkeyserver_x11.cpp. |
|
Initial value: Definition at line 89 of file kkeyserver_x11.cpp. |