|
|
|
@ -71,7 +71,7 @@ namespace KKeyServer
|
|
|
|
|
* Initializes the symbol with the given Qt key code.
|
|
|
|
|
* @param keyQt the qt key code
|
|
|
|
|
* @return true if successful, false otherwise
|
|
|
|
|
* @see Qt::Key
|
|
|
|
|
* @see TQt::Key
|
|
|
|
|
*/
|
|
|
|
|
bool initQt( int keyQt );
|
|
|
|
|
|
|
|
|
@ -153,7 +153,7 @@ namespace KKeyServer
|
|
|
|
|
* @param key the key to get the data from
|
|
|
|
|
* @param bQt true to take the Qt keycode, false
|
|
|
|
|
* for the native key code
|
|
|
|
|
* @see Qt::Key
|
|
|
|
|
* @see TQt::Key
|
|
|
|
|
* @see KKeyNative
|
|
|
|
|
*/
|
|
|
|
|
bool init( const KKey& key, bool bQt );
|
|
|
|
@ -162,7 +162,7 @@ namespace KKeyServer
|
|
|
|
|
* Checks whether the key code is a native code.
|
|
|
|
|
* @return true if native code of the window system,
|
|
|
|
|
* false if it is a Qt keycode
|
|
|
|
|
* @see Qt::Key
|
|
|
|
|
* @see TQt::Key
|
|
|
|
|
* @see KKeyNative
|
|
|
|
|
*/
|
|
|
|
|
bool isNative() const { return m_code != CODE_FOR_QT; }
|
|
|
|
@ -351,7 +351,7 @@ namespace KKeyServer
|
|
|
|
|
* @param keyQt the qt key code
|
|
|
|
|
* @param sym if successful, the symbol will be written here
|
|
|
|
|
* @return true if successful, false otherwise
|
|
|
|
|
* @see Qt::Key
|
|
|
|
|
* @see TQt::Key
|
|
|
|
|
* @see Sym
|
|
|
|
|
*/
|
|
|
|
|
TDECORE_EXPORT bool keyQtToSym( int keyQt, uint& sym );
|
|
|
|
@ -362,7 +362,7 @@ namespace KKeyServer
|
|
|
|
|
* @param keyQt the qt key code
|
|
|
|
|
* @param mod if successful, the modifiers will be written here
|
|
|
|
|
* @return true if successful, false otherwise
|
|
|
|
|
* @see Qt::Key
|
|
|
|
|
* @see TQt::Key
|
|
|
|
|
*/
|
|
|
|
|
TDECORE_EXPORT bool keyQtToMod( int keyQt, uint& mod );
|
|
|
|
|
|
|
|
|
@ -371,7 +371,7 @@ namespace KKeyServer
|
|
|
|
|
* @param sym the symbol
|
|
|
|
|
* @param keyQt if successful, the qt key code will be written here
|
|
|
|
|
* @return true if successful, false otherwise
|
|
|
|
|
* @see Qt::Key
|
|
|
|
|
* @see TQt::Key
|
|
|
|
|
* @see Sym
|
|
|
|
|
*/
|
|
|
|
|
TDECORE_EXPORT bool symToKeyQt( uint sym, int& keyQt );
|
|
|
|
@ -383,7 +383,7 @@ namespace KKeyServer
|
|
|
|
|
* @param modQt the mask of Qt key code modifiers will be written here,
|
|
|
|
|
* if successful
|
|
|
|
|
* @return true if successful, false otherwise
|
|
|
|
|
* @see Qt::Key
|
|
|
|
|
* @see TQt::Key
|
|
|
|
|
* @see KKey
|
|
|
|
|
*/
|
|
|
|
|
TDECORE_EXPORT bool modToModQt( uint mod, int& modQt );
|
|
|
|
@ -406,7 +406,7 @@ namespace KKeyServer
|
|
|
|
|
* @param modQt the mask of Qt key code modifiers will be written here
|
|
|
|
|
* if successful
|
|
|
|
|
* @return true if successful, false otherwise
|
|
|
|
|
* @see Qt::Key
|
|
|
|
|
* @see TQt::Key
|
|
|
|
|
*/
|
|
|
|
|
//wrapped for win32
|
|
|
|
|
TDECORE_EXPORT bool modXToModQt( uint modX, int& modQt );
|
|
|
|
@ -414,7 +414,7 @@ namespace KKeyServer
|
|
|
|
|
/**
|
|
|
|
|
* Converts the Qt-compatible button state to x11 modifier.
|
|
|
|
|
*/
|
|
|
|
|
TDECORE_EXPORT int qtButtonStateToMod( Qt::ButtonState s );
|
|
|
|
|
TDECORE_EXPORT int qtButtonStateToMod( TQt::ButtonState s );
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Converts the mask of ORed X11 modifiers to
|
|
|
|
@ -435,7 +435,7 @@ namespace KKeyServer
|
|
|
|
|
* @param modX the mask of ORed X11 modifiers
|
|
|
|
|
* @param symX if successful, the X11 symbol will be written here
|
|
|
|
|
* @return true if successful, false otherwise
|
|
|
|
|
* @see Qt::Key
|
|
|
|
|
* @see TQt::Key
|
|
|
|
|
* @see Sym
|
|
|
|
|
*/
|
|
|
|
|
TDECORE_EXPORT bool codeXToSym( uchar codeX, uint modX, uint& symX );
|
|
|
|
|