• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

Classes | Enumerations | Functions
KKeyServer Namespace Reference

Classes

struct  Key
 
struct  Sym
 
struct  Variations
 

Enumerations

enum  ExtraModFlag { MODE_SWITCH = 0x2000 }
 

Functions

bool initializeMods ()
 
uint modX (KKey::ModFlag modFlag)
 
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 &sym)
 
bool keyQtToMod (int keyQt, uint &mod)
 
bool symToKeyQt (uint sym, int &keyQt)
 
bool modToModQt (uint mod, int &modQt)
 
bool modToModX (uint mod, uint &modX)
 
bool modXToModQt (uint modX, int &modQt)
 
int qtButtonStateToMod (TQt::ButtonState s)
 
bool modXToMod (uint modX, uint &mod)
 
bool codeXToSym (uchar codeX, uint modX, uint &symX)
 
TQString modToStringInternal (uint mod)
 
TQString modToStringUser (uint mod)
 
uint stringUserToMod (const TQString &mod)
 
bool stringToSymMod (const TQString &, uint &sym, uint &mod)
 
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

◆ ExtraModFlag

enum KKeyServer::ExtraModFlag

Supplement enum KKey::ModFlag.

Since
3.1

Definition at line 40 of file kkeyserver_x11.h.

Function Documentation

◆ accelModMaskX()

uint KKeyServer::accelModMaskX ( )

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

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

◆ codeXToSym()

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

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
symXif successful, the X11 symbol will be written here
Returns
true if successful, false otherwise
See also
TQt::Key
Sym

◆ initializeMods()

bool KKeyServer::initializeMods ( )

TODO: please document.

◆ keyboardHasWinKey()

bool KKeyServer::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()

◆ keyQtToMod()

bool KKeyServer::keyQtToMod ( int  keyQt,
uint &  mod 
)

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
TQt::Key

◆ keyQtToSym()

bool KKeyServer::keyQtToSym ( int  keyQt,
uint &  sym 
)

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
TQt::Key
Sym

◆ modToModQt()

bool KKeyServer::modToModQt ( uint  mod,
int &  modQt 
)

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

Parameters
modthe mask of KKey::ModFlag modifiers
modQtthe mask of Qt key code modifiers will be written here, if successful
Returns
true if successful, false otherwise
See also
TQt::Key
KKey

◆ modToModX()

bool KKeyServer::modToModX ( uint  mod,
uint &  modX 
)

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

Parameters
modthe mask of KKey::ModFlag modifiers
modXthe mask of X11 modifiers will be written here, if successful
Returns
true if successful, false otherwise
See also
KKey

◆ modToStringUser()

TQString KKeyServer::modToStringUser ( uint  mod)

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

◆ modX()

uint KKeyServer::modX ( KKey::ModFlag  modFlag)

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

Parameters
modFlagthe generic flags to check
Returns
the window system specific flags

◆ modXAlt()

uint KKeyServer::modXAlt ( )

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

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

◆ modXCtrl()

uint KKeyServer::modXCtrl ( )

Returns the X11 Ctrl modifier mask/flag.

Returns
the X11 Ctrl modifier mask/flag.
See also
accelModMaskX()

◆ modXLock()

uint KKeyServer::modXLock ( )

Returns the X11 Lock modifier mask/flag.

Returns
the X11 Lock modifier mask/flag.
See also
accelModMaskX()

◆ modXModeSwitch()

uint KKeyServer::modXModeSwitch ( )

Returns the X11 Mode_switch modifier mask/flag.

Returns
the X11 Mode_switch modifier mask/flag.
See also
accelModMaskX()
Since
3.5

◆ modXNumLock()

uint KKeyServer::modXNumLock ( )

Returns the X11 NumLock modifier mask/flag.

Returns
the X11 NumLock modifier mask/flag.
See also
accelModMaskX()

◆ modXScrollLock()

uint KKeyServer::modXScrollLock ( )

Returns the X11 ScrollLock modifier mask/flag.

Returns
the X11 ScrollLock modifier mask/flag.
See also
accelModMaskX()

◆ modXShift()

uint KKeyServer::modXShift ( )

Returns the X11 Shift modifier mask/flag.

Returns
the X11 Shift modifier mask/flag.
See also
accelModMaskX()

◆ modXToMod()

bool KKeyServer::modXToMod ( uint  modX,
uint &  mod 
)

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

Parameters
modXthe mask of X11 modifiers
modthe mask of KKey::ModFlag modifiers will be written here, if successful
Returns
true if successful, false otherwise
See also
KKey

◆ modXToModQt()

bool KKeyServer::modXToModQt ( uint  modX,
int &  modQt 
)

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

Parameters
modXthe mask of X11 modifiers
modQtthe mask of Qt key code modifiers will be written here if successful
Returns
true if successful, false otherwise
See also
TQt::Key

◆ modXWin()

uint KKeyServer::modXWin ( )

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

Returns
the X11 Win (Mod3) modifier mask/flag.
See also
keyboardHasWinKey()
accelModMaskX()

◆ qtButtonStateToMod()

int KKeyServer::qtButtonStateToMod ( TQt::ButtonState  s)

Converts the Qt-compatible button state to x11 modifier.

◆ stringUserToMod()

uint KKeyServer::stringUserToMod ( const TQString &  mod)

Converts the modifier given as user-readable string to KKey::ModFlag modifier, or 0.

◆ symToKeyQt()

bool KKeyServer::symToKeyQt ( uint  sym,
int &  keyQt 
)

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
TQt::Key
Sym

tdecore

Skip menu "tdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.