diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-03 22:23:44 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-03 22:23:44 -0600 |
commit | 203ba231d0276943aae36111f9ec1e949f3c6a4c (patch) | |
tree | f039f7a5b5fc2da88a96876971bac580d87f6788 /extra/kde300/kkeyserver_x11.h | |
parent | fd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff) | |
download | pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip |
Initial TQt conversion
Diffstat (limited to 'extra/kde300/kkeyserver_x11.h')
-rw-r--r-- | extra/kde300/kkeyserver_x11.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/extra/kde300/kkeyserver_x11.h b/extra/kde300/kkeyserver_x11.h index faeb99c..c6250b2 100644 --- a/extra/kde300/kkeyserver_x11.h +++ b/extra/kde300/kkeyserver_x11.h @@ -17,26 +17,26 @@ namespace KKeyServer { m_sym = 0; } Sym( uint sym ) { m_sym = sym; } - Sym( const QString& s ) + Sym( const TQString& s ) { init( s ); } - bool initQt( int keyQt ); - bool init( const QString& ); + bool initTQt( int keyTQt ); + bool init( const TQString& ); int qt() const; - QString toStringInternal() const; - QString toString() const; + TQString toStringInternal() const; + TQString toString() const; - uint getModsRequired() const; + uint getModsRetquired() const; uint getSymVariation() const; operator uint() const { return m_sym; } 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& ); }; struct Key @@ -47,17 +47,17 @@ namespace KKeyServer uint m_mod; uint m_sym; - bool init( const KKey& key, bool bQt ); + bool init( const KKey& key, bool bTQt ); bool isNative() const { return m_code != CODE_FOR_QT; } uint code() const { return m_code; } uint mod() const { return m_mod; } uint sym() const { return m_sym; } - int keyCodeQt() const { return (int) m_sym; } + int keyCodeTQt() const { return (int) m_sym; } - void setKeycodeQt( int keyQt ) - { m_code = CODE_FOR_QT; m_sym = keyQt; } + void setKeycodeTQt( int keyTQt ) + { m_code = CODE_FOR_QT; m_sym = keyTQt; } Key& operator =( const KKeyNative& key ); int compare( const Key& ) const; @@ -79,7 +79,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]; } @@ -109,23 +109,23 @@ namespace KKeyServer */ uint accelModMaskX(); - bool keyQtToSym( int keyQt, uint& sym ); - bool keyQtToMod( int keyQt, uint& mod ); - bool symToKeyQt( uint sym, int& keyQt ); + bool keyTQtToSym( int keyTQt, uint& sym ); + bool keyTQtToMod( int keyTQt, uint& mod ); + bool symToKeyTQt( uint sym, int& keyTQt ); - bool modToModQt( uint mod, int& modQt ); + bool modToModTQt( uint mod, int& modTQt ); bool modToModX( uint mod, uint& modX ); - bool modXToModQt( uint modX, int& modQt ); + bool modXToModTQt( uint modX, int& modTQt ); bool modXToMod( uint modX, uint& mod ); bool codeXToSym( uchar codeX, uint modX, uint& symX ); - QString modToStringInternal( uint mod ); - QString modToStringUser( uint mod ); + TQString modToStringInternal( uint mod ); + TQString modToStringUser( uint mod ); - bool stringToSymMod( const QString&, uint& sym, uint& mod ); + bool stringToSymMod( const TQString&, uint& sym, uint& mod ); - 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 |