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 | Sym |
Represents a key symbol. More... | |
struct | Key |
Represents a key press. More... | |
struct | Variations |
TODO: please document this class. More... | |
Enumerations | |
enum | ExtraModFlag { MODE_SWITCH = 0x2000 } |
Functions | |
KDECORE_EXPORT bool | initializeMods () |
KDECORE_EXPORT uint | modX (KKey::ModFlag modFlag) |
KDECORE_EXPORT bool | keyboardHasWinKey () |
KDECORE_EXPORT uint | modXShift () |
KDECORE_EXPORT uint | modXLock () |
KDECORE_EXPORT uint | modXCtrl () |
KDECORE_EXPORT uint | modXAlt () |
KDECORE_EXPORT uint | modXNumLock () |
KDECORE_EXPORT uint | modXWin () |
KDECORE_EXPORT uint | modXScrollLock () |
KDECORE_EXPORT uint | modXModeSwitch () |
KDECORE_EXPORT uint | accelModMaskX () |
KDECORE_EXPORT bool | keyQtToSym (int keyQt, uint &sym) |
KDECORE_EXPORT bool | keyQtToMod (int keyQt, uint &mod) |
KDECORE_EXPORT bool | symToKeyQt (uint sym, int &keyQt) |
KDECORE_EXPORT bool | modToModQt (uint mod, int &modQt) |
KDECORE_EXPORT bool | modToModX (uint mod, uint &modX) |
KDECORE_EXPORT bool | modXToModQt (uint modX, int &modQt) |
KDECORE_EXPORT int | qtButtonStateToMod (Qt::ButtonState s) |
KDECORE_EXPORT bool | modXToMod (uint modX, uint &mod) |
KDECORE_EXPORT bool | codeXToSym (uchar codeX, uint modX, uint &symX) |
KDECORE_EXPORT QString | modToStringInternal (uint mod) |
KDECORE_EXPORT QString | modToStringUser (uint mod) |
KDECORE_EXPORT bool | stringToSymMod (const QString &, uint &sym, uint &mod) |
KDECORE_EXPORT void | keyQtToKeyX (uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX) |
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.
Referenced by KGlobalAccelPrivate::x11MappingNotify(). |
|
Returns the equivalent X modifier mask of the given modifier flag.
Referenced by KKeyNative::modX(). |
|
Returns true if the current keyboard layout supports the Win key. Specifically, whether the Super or Meta keys are assigned to an X modifier.
Referenced by KKeyNative::keyboardHasWinKey(). |
|
Returns the X11 Shift modifier mask/flag.
Referenced by KGlobalAccelPrivate::x11KeyPress(). |
|
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.
Referenced by KGlobalAccelPrivate::grabKey(). |
|
Returns the X11 NumLock modifier mask/flag.
Referenced by KKeyNative::modXNumLock(), and KGlobalAccelPrivate::x11KeyPress(). |
|
Returns the X11 Win (Mod3) modifier mask/flag.
|
|
Returns the X11 ScrollLock modifier mask/flag.
Referenced by KKeyNative::modXScrollLock(). |
|
Returns the X11 Mode_switch modifier mask/flag.
Referenced by KKeyNative::modXModeSwitch(). |
|
Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and Win (if available).
Referenced by KKeyNative::accelModMaskX(). |
|
Extracts the symbol from the given Qt key and converts it to a symbol.
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.
|
|
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.
Referenced by KKeyNative::init(). |
|
Converts the mask of ORed X11 modifiers to a mask of ORed Qt key code modifiers.
Referenced by KKeyNative::keyCodeQt(). |
|
Converts the Qt-compatible button state to x11 modifier.
|
|
Converts the mask of ORed X11 modifiers to a mask of ORed KKey::ModFlag modifiers.
Referenced by KKeyNative::key(). |
|
Converts a X11 key code and a mask of ORed X11 modifiers into a X11 symbol. converts it to a symbol.
Referenced by KKeyNative::init(). |
|
Converts the mask of ORed KKey::ModFlag modifiers to a user-readable string.
Referenced by KKey::modFlagLabel(), and KKey::toString(). |