namespace KKeyServer

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. More...

List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods


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.

enum ExtraModFlag { MODE_SWITCH = 0x2000 }

ExtraModFlag

Supplement enum KKey::ModFlag

Sym (struct)

Sym

Represents a key symbol.

See also: KKey, KKeyServer

Key (struct)

Key

Represents a key press.

See also: KKey

Variations (struct)

Variations

TODO: please document this class

bool  initializeMods ()

initializeMods

uint  modX ( KKey::ModFlag modFlag )

modX

Returns the equivalent X modifier mask of the given modifier flag.

Parameters:
modFlagthe generic flags to check

Returns: the window system specific flags

bool  keyboardHasWinKey ()

keyboardHasWinKey

Returns true if the current keyboard layout supports the Win key. Specifically, whether the Super or Meta keys are assigned to an X modifier.

Returns: true if the keyboard has a Win key

See also: modXWin()

uint  modXShift ()

modXShift

Returns the X11 Shift modifier mask/flag.

Returns: the X11 Shift modifier mask/flag.

See also: accelModMaskX()

uint  modXLock ()

modXLock

Returns the X11 Lock modifier mask/flag.

Returns: the X11 Lock modifier mask/flag.

See also: accelModMaskX()

uint  modXCtrl ()

modXCtrl

Returns the X11 Ctrl modifier mask/flag.

Returns: the X11 Ctrl modifier mask/flag.

See also: accelModMaskX()

uint  modXAlt ()

modXAlt

Returns the X11 Alt (Mod1) modifier mask/flag.

Returns: the X11 Alt (Mod1) modifier mask/flag.

See also: accelModMaskX()

uint  modXNumLock ()

modXNumLock

Returns the X11 NumLock modifier mask/flag.

Returns: the X11 NumLock modifier mask/flag.

See also: accelModMaskX()

uint  modXWin ()

modXWin

Returns the X11 Win (Mod3) modifier mask/flag.

Returns: the X11 Win (Mod3) modifier mask/flag.

See also: keyboardHasWinKey(), accelModMaskX()

uint  modXScrollLock ()

modXScrollLock

Returns the X11 ScrollLock modifier mask/flag.

Returns: the X11 ScrollLock modifier mask/flag.

See also: accelModMaskX()

uint  accelModMaskX ()

accelModMaskX

Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and Win (if available).

See also: modXShift(), modXLock(), modXCtrl(), modXAlt(), modXNumLock(), modXWin(), modXScrollLock()

bool  keyQtToSym ( int keyQt, uint& sym )

keyQtToSym

Extracts the symbol from the given Qt key and converts it to a symbol.

Parameters:
keyQtthe qt key code
symif successful, the symbol will be written here

Returns: true if successful, false otherwise

See also: Qt::Key, Sym

bool  keyQtToMod ( int keyQt, uint& mod )

keyQtToMod

Extracts the modifiers from the given Qt key and converts them in a mask of ORed KKey::ModFlag modifiers.

Parameters:
keyQtthe qt key code
modif successful, the modifiers will be written here

Returns: true if successful, false otherwise

See also: Qt::Key

bool  symToKeyQt ( uint sym, int& keyQt )

symToKeyQt

Converts the given symbol to a Qt key code.

Parameters:
symthe symbol
keyQtif successful, the qt key code will be written here

Returns: true if successful, false otherwise

See also: Qt::Key, Sym

bool  modToModQt ( uint mod, int& modQt )

modToModQt

Converts the mask of ORed KKey::ModFlag modifiers to a mask of ORed Qt key code modifiers.

Parameters:
themask of KKey::ModFlag modifiers
themask of Qt key code modifiers will be written here, if successful

Returns: true if successful, false otherwise

See also: KKey, KKey

bool  modToModX ( uint mod, uint& modX )

modToModX

Converts the mask of ORed KKey::ModFlag modifiers to a mask of ORed X11 modifiers.

Parameters:
themask of KKey::ModFlag modifiers
themask of X11 modifiers will be written here, if successful

Returns: true if successful, false otherwise

See also: KKey

bool  modXToModQt ( uint modX, int& modQt )

modXToModQt

Converts the mask of ORed X11 modifiers to a mask of ORed Qt key code modifiers.

Parameters:
themask of X11 modifiers
themask of Qt key code modifiers will be written here if successful

Returns: true if successful, false otherwise

See also: Qt::Key

bool  modXToMod ( uint modX, uint& mod )

modXToMod

Converts the mask of ORed X11 modifiers to a mask of ORed KKey::ModFlag modifiers.

Parameters:
themask of X11 modifiers
themask of KKey::ModFlag modifiers will be written here, if successful

Returns: true if successful, false otherwise

See also: KKey

bool  codeXToSym ( uchar codeX, uint modX, uint& symX )

codeXToSym

Converts a X11 key code and a mask of ORed X11 modifiers into a X11 symbol. converts it to a symbol.

Parameters:
codeXthe X11 key code
modXthe mask of ORed X11 modifiers
symif successful, the X11 symbol will be written here

Returns: true if successful, false otherwise

See also: Qt::Key, Sym

QString  modToStringInternal ( uint mod )

modToStringInternal

QString  modToStringUser ( uint mod )

modToStringUser

Converts the mask of ORed KKey::ModFlag modifiers to a user-readable string.

Parameters:
modthe mask of ORed KKey::ModFlag modifiers

Returns: the user-readable string

bool  stringToSymMod ( const QString&, uint& sym, uint& mod )

stringToSymMod

Unimplemented?

void  keyQtToKeyX ( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX )

keyQtToKeyX

Unimplemented?


Generated by: caleb on tcdevel on Tue Jan 28 12:54:04 2003, using kdoc $.