summaryrefslogtreecommitdiffstats
path: root/extra/kde310/kkeyserver_x11.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-03 22:23:44 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-03 22:23:44 -0600
commit203ba231d0276943aae36111f9ec1e949f3c6a4c (patch)
treef039f7a5b5fc2da88a96876971bac580d87f6788 /extra/kde310/kkeyserver_x11.h
parentfd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff)
downloadpytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz
pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip
Initial TQt conversion
Diffstat (limited to 'extra/kde310/kkeyserver_x11.h')
-rw-r--r--extra/kde310/kkeyserver_x11.h100
1 files changed, 50 insertions, 50 deletions
diff --git a/extra/kde310/kkeyserver_x11.h b/extra/kde310/kkeyserver_x11.h
index dfb7445..14f3494 100644
--- a/extra/kde310/kkeyserver_x11.h
+++ b/extra/kde310/kkeyserver_x11.h
@@ -44,16 +44,16 @@ namespace KKeyServer
* @param s the description of the symbol
* @see toString()
*/
- Sym( const QString& s )
+ Sym( const TQString& s )
{ init( s ); }
/**
- * Initializes the symbol with the given Qt key code.
- * @param keyQt the qt key code
+ * Initializes the symbol with the given TQt key code.
+ * @param keyTQt the qt key code
* @return true if succesful, false otherwise
- * @see Qt::Key
+ * @see TQt::Key
*/
- bool initQt( int keyQt );
+ bool initTQt( int keyTQt );
/**
* Initializes the key with the given string description.
@@ -61,7 +61,7 @@ namespace KKeyServer
* @return true if succesful, false otherwise
* @see toString()
*/
- bool init( const QString &s );
+ bool init( const TQString &s );
/**
* Returns the qt key code of the symbol.
@@ -72,22 +72,22 @@ namespace KKeyServer
/**
* @internal
*/
- QString toStringInternal() const;
+ TQString toStringInternal() const;
/**
* Returns the string representation of the symbol.
* @return the string representation of the symbol
*/
- QString toString() const;
+ TQString toString() const;
/**
- * Returns the mods that are required for this symbol as
- * ORed @ref KKey::ModFlag's. For example, Break requires a
+ * Returns the mods that are retquired for this symbol as
+ * ORed @ref KKey::ModFlag's. For example, Break retquires a
* Ctrl to be valid.
- * @return the required @ref KKey::ModFlag's
+ * @return the retquired @ref KKey::ModFlag's
* @see KKey::ModFlag
*/
- uint getModsRequired() const;
+ uint getModsRetquired() const;
/**
* TODO: please find out what this method does and document it
@@ -105,9 +105,9 @@ namespace KKeyServer
Sym& operator =( uint sym ) { m_sym = sym; return *this; }
private:
- QString toString( bool bUserSpace ) const;
+ TQString toString( bool bUserSpace ) const;
- static void capitalizeKeyname( QString& );
+ static void capitalizeKeyname( TQString& );
};
/**
@@ -116,7 +116,7 @@ namespace KKeyServer
*/
struct Key
{
- /// Code for native Keys in Qt
+ /// Code for native Keys in TQt
enum { CODE_FOR_QT = 256 };
/// The code of the key
@@ -131,18 +131,18 @@ namespace KKeyServer
/**
* Initializes the key with a @ref KKey.
* @param key the key to get the data from
- * @param bQt true to take the Qt keycode, false
+ * @param bTQt true to take the TQt keycode, false
* for the native key code
- * @see Qt::Key
+ * @see TQt::Key
* @see KKeyNative
*/
- bool init( const KKey& key, bool bQt );
+ bool init( const KKey& key, bool bTQt );
/**
* 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
+ * false if it is a TQt keycode
+ * @see TQt::Key
* @see KKeyNative
*/
bool isNative() const { return m_code != CODE_FOR_QT; }
@@ -169,14 +169,14 @@ namespace KKeyServer
* Returns the qt key code.
* @return the qt key code
*/
- int keyCodeQt() const { return (int) m_sym; }
+ int keyCodeTQt() const { return (int) m_sym; }
/**
* Sets the qt key code.
- * @param keyQt the qt key code
+ * @param keyTQt the qt key code
*/
- void setKeycodeQt( int keyQt )
- { m_code = CODE_FOR_QT; m_sym = keyQt; }
+ void setKeycodeTQt( int keyTQt )
+ { m_code = CODE_FOR_QT; m_sym = keyTQt; }
/**
* Initializes this key with a @ref KKeyNative.
@@ -230,7 +230,7 @@ namespace KKeyServer
Variations() { m_nVariations = 0; }
- void init( const KKey&, bool bQt );
+ void init( const KKey&, bool bTQt );
uint count() const { return m_nVariations; }
const Key& key( uint i ) const { return m_rgkey[i]; }
@@ -318,47 +318,47 @@ namespace KKeyServer
uint accelModMaskX();
/**
- * Extracts the symbol from the given Qt key and
+ * Extracts the symbol from the given TQt key and
* converts it to a symbol.
- * @param keyQt the qt key code
+ * @param keyTQt 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
*/
- bool keyQtToSym( int keyQt, uint& sym );
+ bool keyTQtToSym( int keyTQt, uint& sym );
/**
- * Extracts the modifiers from the given Qt key and
+ * Extracts the modifiers from the given TQt key and
* converts them in a mask of ORed @ref KKey::ModFlag modifiers.
- * @param keyQt the qt key code
+ * @param keyTQt 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
*/
- bool keyQtToMod( int keyQt, uint& mod );
+ bool keyTQtToMod( int keyTQt, uint& mod );
/**
- * Converts the given symbol to a Qt key code.
+ * Converts the given symbol to a TQt key code.
* @param sym the symbol
- * @param keyQt if successful, the qt key code will be written here
+ * @param keyTQt if successful, the qt key code will be written here
* @return true if successful, false otherwise
- * @see Qt::Key
+ * @see TQt::Key
* @see Sym
*/
- bool symToKeyQt( uint sym, int& keyQt );
+ bool symToKeyTQt( uint sym, int& keyTQt );
/**
* Converts the mask of ORed @ref KKey::ModFlag modifiers to
- * a mask of ORed Qt key code modifiers.
+ * a mask of ORed TQt key code modifiers.
* @param the mask of @ref KKey::ModFlag modifiers
- * @param the mask of Qt key code modifiers will be written here,
+ * @param the mask of TQt key code modifiers will be written here,
* if successful
* @return true if successful, false otherwise
- * @see Qt::Key
+ * @see TQt::Key
* @see KKey
*/
- bool modToModQt( uint mod, int& modQt );
+ bool modToModTQt( uint mod, int& modTQt );
/**
* Converts the mask of ORed @ref KKey::ModFlag modifiers to
@@ -373,14 +373,14 @@ namespace KKeyServer
/**
* Converts the mask of ORed X11 modifiers to
- * a mask of ORed Qt key code modifiers.
+ * a mask of ORed TQt key code modifiers.
* @param the mask of X11 modifiers
- * @param the mask of Qt key code modifiers will be written here
+ * @param the mask of TQt key code modifiers will be written here
* if successful
* @return true if successful, false otherwise
- * @see Qt::Key
+ * @see TQt::Key
*/
- bool modXToModQt( uint modX, int& modQt );
+ bool modXToModTQt( uint modX, int& modTQt );
/**
* Converts the mask of ORed X11 modifiers to
@@ -401,7 +401,7 @@ namespace KKeyServer
* @param modX the mask of ORed X11 modifiers
* @param sym if successful, the X11 symbol will be written here
* @return true if successful, false otherwise
- * @see Qt::Key
+ * @see TQt::Key
* @see Sym
*/
bool codeXToSym( uchar codeX, uint modX, uint& symX );
@@ -409,7 +409,7 @@ namespace KKeyServer
/**
* @internal
*/
- QString modToStringInternal( uint mod );
+ TQString modToStringInternal( uint mod );
/**
* Converts the mask of ORed @ref KKey::ModFlag modifiers to a
@@ -417,19 +417,19 @@ namespace KKeyServer
* @param mod the mask of ORed @ref KKey::ModFlag modifiers
* @return the user-readable string
*/
- QString modToStringUser( uint mod );
+ TQString modToStringUser( uint mod );
/**
* @internal
* Unimplemented?
*/
- bool stringToSymMod( const QString&, uint& sym, uint& mod );
+ bool stringToSymMod( const TQString&, uint& sym, uint& mod );
/**
* @internal
* Unimplemented?
*/
- void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX );
+ void keyTQtToKeyX( uint keyCombTQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX );
};
#endif // !_KKEYSERVER_X11_H