KKeyServer Namespace Reference
A collection of functions for the conversion of key presses and their modifiers from the window system specific format to the generic format and vice-versa. More...
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 | modXModeSwitch () |
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) |
KDECORE_EXPORT int | qtButtonStateToMod (Qt::ButtonState s) |
KDECORE_EXPORT bool | stringToSymMod (const QString &, uint &sym, uint &mod) |
KDECORE_EXPORT void | keyQtToKeyX (uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX) |
Variables | |
ModInfo | g_rgModInfo [KKey::MOD_FLAG_COUNT] |
const SymName | g_rgSymNames [] |
SymVariation | g_rgSymVariation [] |
const TransKey | g_rgQtToSymX [] |
bool | g_bInitializedMods |
bool | g_bInitializedVariations |
bool | g_bInitializedKKeyLabels |
bool | g_bMacLabels |
uint | g_modXNumLock |
uint | g_modXScrollLock |
uint | g_modXModeSwitch |
Detailed Description
A collection of functions for the conversion of key presses and their modifiers from the window system specific format to the generic format and vice-versa.Enumeration Type Documentation
|
Supplement enum KKey::ModFlag
Definition at line 40 of file kkeyserver_x11.h. |
Function Documentation
|
TODO: please document.
Definition at line 329 of file kkeyserver_x11.cpp. References endl(), and modX(). Referenced by accelModMaskX(), keyboardHasWinKey(), modToModX(), modX(), modXModeSwitch(), modXNumLock(), modXScrollLock(), modXToMod(), modXToModQt(), and modXWin(). |
|
Returns the equivalent X modifier mask of the given modifier flag.
Definition at line 593 of file kkeyserver_x11.cpp. 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.
Definition at line 605 of file kkeyserver_x11.cpp. References initializeMods(). Referenced by KKeyNative::keyboardHasWinKey(). |
|
Returns the X11 Shift modifier mask/flag.
Definition at line 606 of file kkeyserver_x11.cpp. |
|
Returns the X11 Lock modifier mask/flag.
Definition at line 607 of file kkeyserver_x11.cpp. Referenced by KKeyNative::modXLock(). |
|
Returns the X11 Ctrl modifier mask/flag.
Definition at line 608 of file kkeyserver_x11.cpp. |
|
Returns the X11 Alt (Mod1) modifier mask/flag.
Definition at line 609 of file kkeyserver_x11.cpp. |
|
Returns the X11 NumLock modifier mask/flag.
Definition at line 610 of file kkeyserver_x11.cpp. References initializeMods(). Referenced by KKeyNative::modXNumLock(). |
|
Returns the X11 Win (Mod3) modifier mask/flag.
Definition at line 611 of file kkeyserver_x11.cpp. References initializeMods(). |
|
Returns the X11 ScrollLock modifier mask/flag.
Definition at line 612 of file kkeyserver_x11.cpp. References initializeMods(). Referenced by KKeyNative::modXScrollLock(). |
|
Returns the X11 Mode_switch modifier mask/flag.
Definition at line 613 of file kkeyserver_x11.cpp. References initializeMods(). Referenced by KKeyNative::modXModeSwitch(). |
|
Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and Win (if available).
Definition at line 615 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.
Definition at line 623 of file kkeyserver_x11.cpp. 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.
Definition at line 633 of file kkeyserver_x11.cpp. Referenced by KKey::init(). |
|
Converts the given symbol to a Qt key code.
Definition at line 645 of file kkeyserver_x11.cpp. References KKeyServer::Sym::qt(). |
|
Converts the mask of ORed KKey::ModFlag modifiers to a mask of ORed Qt key code modifiers.
Definition at line 652 of file kkeyserver_x11.cpp. |
|
Converts the mask of ORed KKey::ModFlag modifiers to a mask of ORed X11 modifiers.
Definition at line 706 of file kkeyserver_x11.cpp. 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.
Definition at line 728 of file kkeyserver_x11.cpp. References initializeMods(), and modX(). Referenced by KKeyNative::keyCodeQt(). |
|
Converts the mask of ORed X11 modifiers to a mask of ORed KKey::ModFlag modifiers.
Definition at line 746 of file kkeyserver_x11.cpp. 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.
Definition at line 759 of file kkeyserver_x11.cpp. References modX(). Referenced by KKeyNative::init(). |
|
Q_WS_WIN.
Definition at line 775 of file kkeyserver_x11.cpp. References QString::isEmpty(). Referenced by modToStringUser(). |
|
Converts the mask of ORed KKey::ModFlag modifiers to a user-readable string.
Definition at line 794 of file kkeyserver_x11.cpp. References modToString(). Referenced by KKey::modFlagLabel(), and KKey::toString(). |
|
Converts the Qt-compatible button state to x11 modifier.
|
Variable Documentation
|
Initial value:
Definition at line 108 of file kkeyserver_x11.cpp. |
|
Initial value:
Definition at line 117 of file kkeyserver_x11.cpp. |
|
Initial value:
Definition at line 143 of file kkeyserver_x11.cpp. |