\section{KKey\-Server Namespace Reference}
\label{namespaceKKeyServer}\index{KKeyServer@{KKeyServer}}
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.  


\subsection*{Classes}
\begin{CompactItemize}
\item 
struct {\bf Sym}
\begin{CompactList}\small\item\em Represents a key symbol. \item\end{CompactList}\item 
struct {\bf Key}
\begin{CompactList}\small\item\em Represents a key press. \item\end{CompactList}\item 
struct {\bf Variations}
\begin{CompactList}\small\item\em TODO: please document this class. \item\end{CompactList}\end{CompactItemize}
\subsection*{Enumerations}
\begin{CompactItemize}
\item 
enum {\bf Extra\-Mod\-Flag} \{ {\bf MODE\_\-SWITCH} =  0x2000
 \}
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
bool {\bf initialize\-Mods} ()
\item 
static void {\bf initialize\-Variations} ()\label{namespaceKKeyServer_a13}

\item 
static void {\bf intialize\-KKey\-Labels} ()\label{namespaceKKeyServer_a14}

\item 
uint {\bf mod\-X} ({\bf KKey::Mod\-Flag} mod)
\item 
bool {\bf keyboard\-Has\-Win\-Key} ()
\item 
uint {\bf mod\-XShift} ()
\item 
uint {\bf mod\-XLock} ()
\item 
uint {\bf mod\-XCtrl} ()
\item 
uint {\bf mod\-XAlt} ()
\item 
uint {\bf mod\-XNum\-Lock} ()
\item 
uint {\bf mod\-XWin} ()
\item 
uint {\bf mod\-XScroll\-Lock} ()
\item 
uint {\bf mod\-XMode\-Switch} ()
\item 
uint {\bf accel\-Mod\-Mask\-X} ()
\item 
bool {\bf key\-Qt\-To\-Sym} (int key\-Qt, uint \&key\-Sym)
\item 
bool {\bf key\-Qt\-To\-Mod} (int key\-Qt, uint \&mod)
\item 
bool {\bf sym\-To\-Key\-Qt} (uint key\-Sym, int \&key\-Qt)
\item 
bool {\bf mod\-To\-Mod\-Qt} (uint mod, int \&mod\-Qt)
\item 
bool {\bf mod\-To\-Mod\-X} (uint mod, uint \&mod\-X)
\item 
bool {\bf mod\-XTo\-Mod\-Qt} (uint mod\-X, int \&mod\-Qt)
\item 
bool {\bf mod\-XTo\-Mod} (uint mod\-X, uint \&mod)
\item 
bool {\bf code\-XTo\-Sym} (uchar code\-X, uint mod\-X, uint \&sym)
\item 
static {\bf QString} {\bf mod\-To\-String} (uint mod, bool b\-User\-Space)
\item 
{\bf QString} {\bf mod\-To\-String\-Internal} (uint mod)\label{namespaceKKeyServer_a35}

\item 
{\bf QString} {\bf mod\-To\-String\-User} (uint mod)
\item 
KDECORE\_\-EXPORT int {\bf qt\-Button\-State\-To\-Mod} (Qt::Button\-State s)
\item 
KDECORE\_\-EXPORT bool {\bf string\-To\-Sym\-Mod} (const {\bf QString} \&, uint \&sym, uint \&mod)\label{namespaceKKeyServer_a38}

\item 
KDECORE\_\-EXPORT void {\bf key\-Qt\-To\-Key\-X} (uint key\-Comb\-Qt, unsigned char $\ast$p\-Key\-Code\-X, uint $\ast$p\-Key\-Sym\-X, uint $\ast$p\-Key\-Mod\-X)\label{namespaceKKeyServer_a39}

\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
static Mod\-Info {\bf g\_\-rg\-Mod\-Info} [KKey::MOD\_\-FLAG\_\-COUNT]
\item 
static const Sym\-Name {\bf g\_\-rg\-Sym\-Names} [$\,$]
\item 
static Sym\-Variation {\bf g\_\-rg\-Sym\-Variation} [$\,$]
\item 
static const Trans\-Key {\bf g\_\-rg\-Qt\-To\-Sym\-X} [$\,$]\label{namespaceKKeyServer_a3}

\item 
static bool {\bf g\_\-b\-Initialized\-Mods}\label{namespaceKKeyServer_a4}

\item 
static bool {\bf g\_\-b\-Initialized\-Variations}\label{namespaceKKeyServer_a5}

\item 
static bool {\bf g\_\-b\-Initialized\-KKey\-Labels}\label{namespaceKKeyServer_a6}

\item 
static bool {\bf g\_\-b\-Mac\-Labels}\label{namespaceKKeyServer_a7}

\item 
static uint {\bf g\_\-mod\-XNum\-Lock}\label{namespaceKKeyServer_a8}

\item 
static uint {\bf g\_\-mod\-XScroll\-Lock}\label{namespaceKKeyServer_a9}

\item 
static uint {\bf g\_\-mod\-XMode\-Switch}\label{namespaceKKeyServer_a10}

\end{CompactItemize}


\subsection{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. 

\subsection{Enumeration Type Documentation}
\index{KKeyServer@{KKey\-Server}!ExtraModFlag@{ExtraModFlag}}
\index{ExtraModFlag@{ExtraModFlag}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KKey\-Server::Extra\-Mod\-Flag}}\label{namespaceKKeyServer_a40}


Supplement enum {\bf KKey::Mod\-Flag}{\rm (p.\,\pageref{classKKey_w8})} \begin{Desc}
\item[Since:]3.1. \end{Desc}




Definition at line 40 of file kkeyserver\_\-x11.h.

\subsection{Function Documentation}
\index{KKeyServer@{KKey\-Server}!initializeMods@{initializeMods}}
\index{initializeMods@{initializeMods}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT bool KKey\-Server::initialize\-Mods ()}\label{namespaceKKeyServer_a12}


TODO: please document. 



Definition at line 329 of file kkeyserver\_\-x11.cpp.

References endl(), mod\-X(), and QString::number().

Referenced by accel\-Mod\-Mask\-X(), keyboard\-Has\-Win\-Key(), mod\-To\-Mod\-X(), mod\-X(), mod\-XMode\-Switch(), mod\-XNum\-Lock(), mod\-XScroll\-Lock(), mod\-XTo\-Mod(), mod\-XTo\-Mod\-Qt(), and mod\-XWin().\index{KKeyServer@{KKey\-Server}!modX@{modX}}
\index{modX@{modX}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT uint KKey\-Server::mod\-X ({\bf KKey::Mod\-Flag} {\em mod\-Flag})}\label{namespaceKKeyServer_a15}


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

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em mod\-Flag}]the generic flags to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the window system specific flags\end{Desc}


Definition at line 593 of file kkeyserver\_\-x11.cpp.

References initialize\-Mods().

Referenced by code\-XTo\-Sym(), initialize\-Mods(), mod\-To\-Mod\-X(), KKey\-Native::mod\-X(), mod\-XTo\-Mod(), and mod\-XTo\-Mod\-Qt().\index{KKeyServer@{KKey\-Server}!keyboardHasWinKey@{keyboardHasWinKey}}
\index{keyboardHasWinKey@{keyboardHasWinKey}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT bool KKey\-Server::keyboard\-Has\-Win\-Key ()}\label{namespaceKKeyServer_a16}


Returns true if the current keyboard layout supports the Win key. 

Specifically, whether the Super or Meta keys are assigned to an X modifier. \begin{Desc}
\item[Returns:]true if the keyboard has a Win key \end{Desc}
\begin{Desc}
\item[See also:]{\bf mod\-XWin()}{\rm (p.\,\pageref{namespaceKKeyServer_a22})}\end{Desc}


Definition at line 605 of file kkeyserver\_\-x11.cpp.

References initialize\-Mods().

Referenced by KKey\-Native::keyboard\-Has\-Win\-Key().\index{KKeyServer@{KKey\-Server}!modXShift@{modXShift}}
\index{modXShift@{modXShift}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT uint KKey\-Server::mod\-XShift ()}\label{namespaceKKeyServer_a17}


Returns the X11 Shift modifier mask/flag. 

\begin{Desc}
\item[Returns:]the X11 Shift modifier mask/flag. \end{Desc}
\begin{Desc}
\item[See also:]{\bf accel\-Mod\-Mask\-X()}{\rm (p.\,\pageref{namespaceKKeyServer_a25})}\end{Desc}


Definition at line 606 of file kkeyserver\_\-x11.cpp.\index{KKeyServer@{KKey\-Server}!modXLock@{modXLock}}
\index{modXLock@{modXLock}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT uint KKey\-Server::mod\-XLock ()}\label{namespaceKKeyServer_a18}


Returns the X11 Lock modifier mask/flag. 

\begin{Desc}
\item[Returns:]the X11 Lock modifier mask/flag. \end{Desc}
\begin{Desc}
\item[See also:]{\bf accel\-Mod\-Mask\-X()}{\rm (p.\,\pageref{namespaceKKeyServer_a25})}\end{Desc}


Definition at line 607 of file kkeyserver\_\-x11.cpp.

Referenced by KKey\-Native::mod\-XLock().\index{KKeyServer@{KKey\-Server}!modXCtrl@{modXCtrl}}
\index{modXCtrl@{modXCtrl}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT uint KKey\-Server::mod\-XCtrl ()}\label{namespaceKKeyServer_a19}


Returns the X11 Ctrl modifier mask/flag. 

\begin{Desc}
\item[Returns:]the X11 Ctrl modifier mask/flag. \end{Desc}
\begin{Desc}
\item[See also:]{\bf accel\-Mod\-Mask\-X()}{\rm (p.\,\pageref{namespaceKKeyServer_a25})}\end{Desc}


Definition at line 608 of file kkeyserver\_\-x11.cpp.\index{KKeyServer@{KKey\-Server}!modXAlt@{modXAlt}}
\index{modXAlt@{modXAlt}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT uint KKey\-Server::mod\-XAlt ()}\label{namespaceKKeyServer_a20}


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

\begin{Desc}
\item[Returns:]the X11 Alt (Mod1) modifier mask/flag. \end{Desc}
\begin{Desc}
\item[See also:]{\bf accel\-Mod\-Mask\-X()}{\rm (p.\,\pageref{namespaceKKeyServer_a25})}\end{Desc}


Definition at line 609 of file kkeyserver\_\-x11.cpp.\index{KKeyServer@{KKey\-Server}!modXNumLock@{modXNumLock}}
\index{modXNumLock@{modXNumLock}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT uint KKey\-Server::mod\-XNum\-Lock ()}\label{namespaceKKeyServer_a21}


Returns the X11 Num\-Lock modifier mask/flag. 

\begin{Desc}
\item[Returns:]the X11 Num\-Lock modifier mask/flag. \end{Desc}
\begin{Desc}
\item[See also:]{\bf accel\-Mod\-Mask\-X()}{\rm (p.\,\pageref{namespaceKKeyServer_a25})}\end{Desc}


Definition at line 610 of file kkeyserver\_\-x11.cpp.

References initialize\-Mods().

Referenced by KKey\-Native::mod\-XNum\-Lock().\index{KKeyServer@{KKey\-Server}!modXWin@{modXWin}}
\index{modXWin@{modXWin}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT uint KKey\-Server::mod\-XWin ()}\label{namespaceKKeyServer_a22}


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

\begin{Desc}
\item[Returns:]the X11 Win (Mod3) modifier mask/flag. \end{Desc}
\begin{Desc}
\item[See also:]{\bf keyboard\-Has\-Win\-Key()}{\rm (p.\,\pageref{namespaceKKeyServer_a16})} 

{\bf accel\-Mod\-Mask\-X()}{\rm (p.\,\pageref{namespaceKKeyServer_a25})}\end{Desc}


Definition at line 611 of file kkeyserver\_\-x11.cpp.

References initialize\-Mods().\index{KKeyServer@{KKey\-Server}!modXScrollLock@{modXScrollLock}}
\index{modXScrollLock@{modXScrollLock}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT uint KKey\-Server::mod\-XScroll\-Lock ()}\label{namespaceKKeyServer_a23}


Returns the X11 Scroll\-Lock modifier mask/flag. 

\begin{Desc}
\item[Returns:]the X11 Scroll\-Lock modifier mask/flag. \end{Desc}
\begin{Desc}
\item[See also:]{\bf accel\-Mod\-Mask\-X()}{\rm (p.\,\pageref{namespaceKKeyServer_a25})}\end{Desc}


Definition at line 612 of file kkeyserver\_\-x11.cpp.

References initialize\-Mods().

Referenced by KKey\-Native::mod\-XScroll\-Lock().\index{KKeyServer@{KKey\-Server}!modXModeSwitch@{modXModeSwitch}}
\index{modXModeSwitch@{modXModeSwitch}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT uint KKey\-Server::mod\-XMode\-Switch ()}\label{namespaceKKeyServer_a24}


Returns the X11 Mode\_\-switch modifier mask/flag. 

\begin{Desc}
\item[Returns:]the X11 Mode\_\-switch modifier mask/flag. \end{Desc}
\begin{Desc}
\item[See also:]{\bf accel\-Mod\-Mask\-X()}{\rm (p.\,\pageref{namespaceKKeyServer_a25})} \end{Desc}
\begin{Desc}
\item[Since:]3.5\end{Desc}


Definition at line 613 of file kkeyserver\_\-x11.cpp.

References initialize\-Mods().

Referenced by KKey\-Native::mod\-XMode\-Switch().\index{KKeyServer@{KKey\-Server}!accelModMaskX@{accelModMaskX}}
\index{accelModMaskX@{accelModMaskX}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT uint KKey\-Server::accel\-Mod\-Mask\-X ()}\label{namespaceKKeyServer_a25}


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

\begin{Desc}
\item[See also:]{\bf mod\-XShift()}{\rm (p.\,\pageref{namespaceKKeyServer_a17})} 

{\bf mod\-XLock()}{\rm (p.\,\pageref{namespaceKKeyServer_a18})} 

{\bf mod\-XCtrl()}{\rm (p.\,\pageref{namespaceKKeyServer_a19})} 

{\bf mod\-XAlt()}{\rm (p.\,\pageref{namespaceKKeyServer_a20})} 

{\bf mod\-XNum\-Lock()}{\rm (p.\,\pageref{namespaceKKeyServer_a21})} 

{\bf mod\-XWin()}{\rm (p.\,\pageref{namespaceKKeyServer_a22})} 

{\bf mod\-XScroll\-Lock()}{\rm (p.\,\pageref{namespaceKKeyServer_a23})}\end{Desc}


Definition at line 615 of file kkeyserver\_\-x11.cpp.

References initialize\-Mods().

Referenced by KKey\-Native::accel\-Mod\-Mask\-X().\index{KKeyServer@{KKey\-Server}!keyQtToSym@{keyQtToSym}}
\index{keyQtToSym@{keyQtToSym}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT bool KKey\-Server::key\-Qt\-To\-Sym (int {\em key\-Qt}, uint \& {\em sym})}\label{namespaceKKeyServer_a26}


Extracts the symbol from the given {\bf Qt} key and converts it to a symbol. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em key\-Qt}]the qt key code \item[{\em sym}]if successful, the symbol will be written here \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if successful, false otherwise \end{Desc}
\begin{Desc}
\item[See also:]Qt::Key 

{\bf Sym}{\rm (p.\,\pageref{structKKeyServer_1_1Sym})}\end{Desc}


Definition at line 623 of file kkeyserver\_\-x11.cpp.

References KKey\-Server::Sym::init\-Qt(), and KKey\-Server::Sym::m\_\-sym.

Referenced by KKey::init().\index{KKeyServer@{KKey\-Server}!keyQtToMod@{keyQtToMod}}
\index{keyQtToMod@{keyQtToMod}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT bool KKey\-Server::key\-Qt\-To\-Mod (int {\em key\-Qt}, uint \& {\em mod})}\label{namespaceKKeyServer_a27}


Extracts the modifiers from the given {\bf Qt} key and converts them in a mask of ORed {\bf KKey::Mod\-Flag}{\rm (p.\,\pageref{classKKey_w8})} modifiers. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em key\-Qt}]the qt key code \item[{\em mod}]if successful, the modifiers will be written here \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if successful, false otherwise \end{Desc}
\begin{Desc}
\item[See also:]Qt::Key\end{Desc}


Definition at line 633 of file kkeyserver\_\-x11.cpp.

Referenced by KKey::init().\index{KKeyServer@{KKey\-Server}!symToKeyQt@{symToKeyQt}}
\index{symToKeyQt@{symToKeyQt}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT bool KKey\-Server::sym\-To\-Key\-Qt (uint {\em sym}, int \& {\em key\-Qt})}\label{namespaceKKeyServer_a28}


Converts the given symbol to a {\bf Qt} key code. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em sym}]the symbol \item[{\em key\-Qt}]if successful, the qt key code will be written here \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if successful, false otherwise \end{Desc}
\begin{Desc}
\item[See also:]Qt::Key 

{\bf Sym}{\rm (p.\,\pageref{structKKeyServer_1_1Sym})}\end{Desc}


Definition at line 645 of file kkeyserver\_\-x11.cpp.

References KKey\-Server::Sym::qt().\index{KKeyServer@{KKey\-Server}!modToModQt@{modToModQt}}
\index{modToModQt@{modToModQt}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT bool KKey\-Server::mod\-To\-Mod\-Qt (uint {\em mod}, int \& {\em mod\-Qt})}\label{namespaceKKeyServer_a29}


Converts the mask of ORed {\bf KKey::Mod\-Flag}{\rm (p.\,\pageref{classKKey_w8})} modifiers to a mask of ORed {\bf Qt} key code modifiers. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em mod}]the mask of {\bf KKey::Mod\-Flag}{\rm (p.\,\pageref{classKKey_w8})} modifiers \item[{\em mod\-Qt}]the mask of {\bf Qt} key code modifiers will be written here, if successful \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if successful, false otherwise \end{Desc}
\begin{Desc}
\item[See also:]Qt::Key 

{\bf KKey}{\rm (p.\,\pageref{classKKey})}\end{Desc}


Definition at line 652 of file kkeyserver\_\-x11.cpp.\index{KKeyServer@{KKey\-Server}!modToModX@{modToModX}}
\index{modToModX@{modToModX}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT bool KKey\-Server::mod\-To\-Mod\-X (uint {\em mod}, uint \& {\em mod\-X})}\label{namespaceKKeyServer_a30}


Converts the mask of ORed {\bf KKey::Mod\-Flag}{\rm (p.\,\pageref{classKKey_w8})} modifiers to a mask of ORed X11 modifiers. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em mod}]the mask of {\bf KKey::Mod\-Flag}{\rm (p.\,\pageref{classKKey_w8})} modifiers \item[{\em mod\-X}]the mask of X11 modifiers will be written here, if successful \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if successful, false otherwise \end{Desc}
\begin{Desc}
\item[See also:]{\bf KKey}{\rm (p.\,\pageref{classKKey})}\end{Desc}


Definition at line 706 of file kkeyserver\_\-x11.cpp.

References endl(), initialize\-Mods(), and mod\-X().

Referenced by KKey\-Native::init().\index{KKeyServer@{KKey\-Server}!modXToModQt@{modXToModQt}}
\index{modXToModQt@{modXToModQt}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT bool KKey\-Server::mod\-XTo\-Mod\-Qt (uint {\em mod\-X}, int \& {\em mod\-Qt})}\label{namespaceKKeyServer_a31}


Converts the mask of ORed X11 modifiers to a mask of ORed {\bf Qt} key code modifiers. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em mod\-X}]the mask of X11 modifiers \item[{\em mod\-Qt}]the mask of {\bf Qt} key code modifiers will be written here if successful \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if successful, false otherwise \end{Desc}
\begin{Desc}
\item[See also:]Qt::Key\end{Desc}


Definition at line 728 of file kkeyserver\_\-x11.cpp.

References initialize\-Mods(), and mod\-X().

Referenced by KKey\-Native::key\-Code\-Qt().\index{KKeyServer@{KKey\-Server}!modXToMod@{modXToMod}}
\index{modXToMod@{modXToMod}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT bool KKey\-Server::mod\-XTo\-Mod (uint {\em mod\-X}, uint \& {\em mod})}\label{namespaceKKeyServer_a32}


Converts the mask of ORed X11 modifiers to a mask of ORed {\bf KKey::Mod\-Flag}{\rm (p.\,\pageref{classKKey_w8})} modifiers. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em mod\-X}]the mask of X11 modifiers \item[{\em mod}]the mask of {\bf KKey::Mod\-Flag}{\rm (p.\,\pageref{classKKey_w8})} modifiers will be written here, if successful \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if successful, false otherwise \end{Desc}
\begin{Desc}
\item[See also:]{\bf KKey}{\rm (p.\,\pageref{classKKey})}\end{Desc}


Definition at line 746 of file kkeyserver\_\-x11.cpp.

References initialize\-Mods(), and mod\-X().

Referenced by KKey\-Server::Key::key(), and KKey\-Native::key().\index{KKeyServer@{KKey\-Server}!codeXToSym@{codeXToSym}}
\index{codeXToSym@{codeXToSym}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT bool KKey\-Server::code\-XTo\-Sym (uchar {\em code\-X}, uint {\em mod\-X}, uint \& {\em sym\-X})}\label{namespaceKKeyServer_a33}


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

converts it to a symbol. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em code\-X}]the X11 key code \item[{\em mod\-X}]the mask of ORed X11 modifiers \item[{\em sym\-X}]if successful, the X11 symbol will be written here \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if successful, false otherwise \end{Desc}
\begin{Desc}
\item[See also:]Qt::Key 

{\bf Sym}{\rm (p.\,\pageref{structKKeyServer_1_1Sym})}\end{Desc}


Definition at line 759 of file kkeyserver\_\-x11.cpp.

References mod\-X().

Referenced by KKey\-Native::init().\index{KKeyServer@{KKey\-Server}!modToString@{modToString}}
\index{modToString@{modToString}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf QString} mod\-To\-String (uint {\em mod}, bool {\em b\-User\-Space})\hspace{0.3cm}{\tt  [static]}}\label{namespaceKKeyServer_a34}


Q\_\-WS\_\-WIN. 



Definition at line 775 of file kkeyserver\_\-x11.cpp.

References QString::is\-Empty().

Referenced by mod\-To\-String\-User().\index{KKeyServer@{KKey\-Server}!modToStringUser@{modToStringUser}}
\index{modToStringUser@{modToStringUser}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT {\bf QString} KKey\-Server::mod\-To\-String\-User (uint {\em mod})}\label{namespaceKKeyServer_a36}


Converts the mask of ORed {\bf KKey::Mod\-Flag}{\rm (p.\,\pageref{classKKey_w8})} modifiers to a user-readable string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em mod}]the mask of ORed {\bf KKey::Mod\-Flag}{\rm (p.\,\pageref{classKKey_w8})} modifiers \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the user-readable string\end{Desc}


Definition at line 794 of file kkeyserver\_\-x11.cpp.

References mod\-To\-String().

Referenced by KKey::mod\-Flag\-Label(), and KKey::to\-String().\index{KKeyServer@{KKey\-Server}!qtButtonStateToMod@{qtButtonStateToMod}}
\index{qtButtonStateToMod@{qtButtonStateToMod}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDECORE\_\-EXPORT int qt\-Button\-State\-To\-Mod (Qt::Button\-State {\em s})}\label{namespaceKKeyServer_a37}


Converts the Qt-compatible button state to x11 modifier. 



\subsection{Variable Documentation}
\index{KKeyServer@{KKey\-Server}!g_rgModInfo@{g\_\-rgModInfo}}
\index{g_rgModInfo@{g\_\-rgModInfo}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Mod\-Info KKey\-Server::g\_\-rg\-Mod\-Info[KKey::MOD\_\-FLAG\_\-COUNT]\hspace{0.3cm}{\tt  [static]}}\label{namespaceKKeyServer_a0}


{\bf Initial value:}

\footnotesize\begin{verbatim}
{
    { KKey::SHIFT, Qt::SHIFT,   X11_ONLY(ShiftMask)   I18N_NOOP("Shift"), QString() },
    { KKey::CTRL,  Qt::CTRL,    X11_ONLY(ControlMask) I18N_NOOP("Ctrl"), QString() },
    { KKey::ALT,   Qt::ALT,     X11_ONLY(Mod1Mask)    I18N_NOOP("Alt"), QString() },
    { KKey::WIN,   KKey::QtWIN, X11_ONLY(Mod4Mask)    I18N_NOOP("Win"), QString() }
}
\end{verbatim}\normalsize 


Definition at line 108 of file kkeyserver\_\-x11.cpp.\index{KKeyServer@{KKey\-Server}!g_rgSymNames@{g\_\-rgSymNames}}
\index{g_rgSymNames@{g\_\-rgSymNames}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const Sym\-Name KKey\-Server::g\_\-rg\-Sym\-Names[$\,$]\hspace{0.3cm}{\tt  [static]}}\label{namespaceKKeyServer_a1}


{\bf Initial value:}

\footnotesize\begin{verbatim} {
    { XK_ISO_Left_Tab, "Backtab" },
    { XK_BackSpace,    I18N_NOOP("Backspace") },
    { XK_Sys_Req,      I18N_NOOP("SysReq") },
    { XK_Caps_Lock,    I18N_NOOP("CapsLock") },
    { XK_Num_Lock,     I18N_NOOP("NumLock") },
    { XK_Scroll_Lock,  I18N_NOOP("ScrollLock") },
    { XK_Prior,        I18N_NOOP("PageUp") },
    { XK_Next,         I18N_NOOP("PageDown") },













    { 0, 0 }
}
\end{verbatim}\normalsize 


Definition at line 117 of file kkeyserver\_\-x11.cpp.\index{KKeyServer@{KKey\-Server}!g_rgSymVariation@{g\_\-rgSymVariation}}
\index{g_rgSymVariation@{g\_\-rgSymVariation}!KKeyServer@{KKey\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Sym\-Variation KKey\-Server::g\_\-rg\-Sym\-Variation[$\,$]\hspace{0.3cm}{\tt  [static]}}\label{namespaceKKeyServer_a2}


{\bf Initial value:}

\footnotesize\begin{verbatim}
{
    { '/', XK_KP_Divide, false },
    { '*', XK_KP_Multiply, false },
    { '-', XK_KP_Subtract, false },
    { '+', XK_KP_Add, false },
    { XK_Return, XK_KP_Enter, false },
    { 0, 0, false }
}
\end{verbatim}\normalsize 


Definition at line 143 of file kkeyserver\_\-x11.cpp.