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/kde332/kaccelbase.h | |
parent | fd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff) | |
download | pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip |
Initial TQt conversion
Diffstat (limited to 'extra/kde332/kaccelbase.h')
-rw-r--r-- | extra/kde332/kaccelbase.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/extra/kde332/kaccelbase.h b/extra/kde332/kaccelbase.h index 3ddce3a..d1c35c8 100644 --- a/extra/kde332/kaccelbase.h +++ b/extra/kde332/kaccelbase.h @@ -29,8 +29,8 @@ #include "kaccelaction.h" #include "kkeyserver_x11.h" -class QPopupMenu; -class QWidget; +class TQPopupMenu; +class TQWidget; //---------------------------------------------------- @@ -132,13 +132,13 @@ class KAccelBase KAccelActions& actions(); bool isEnabled() const; - KAccelAction* actionPtr( const QString& sAction ); - const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const TQString& sAction ); + const KAccelAction* actionPtr( const TQString& sAction ) const; KAccelAction* actionPtr( const KKey& key ); KAccelAction* actionPtr( const KKeyServer::Key& key ); - const QString& configGroup() const { return m_sConfigGroup; } - void setConfigGroup( const QString& group ); + const TQString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const TQString& group ); void setConfigGlobal( bool global ); virtual void setEnabled( bool bEnabled ) = 0; bool getAutoUpdate() { return m_bAutoUpdate; } @@ -148,21 +148,21 @@ class KAccelBase // Procedures for manipulating Actions. //void clearActions(); - KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( const TQString& sName, const TQString& sDesc ); KAccelAction* insert( - const QString& sAction, const QString& sDesc, const QString& sHelp, + const TQString& sAction, const TQString& sDesc, const TQString& sHelp, const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const QObject* pObjSlot, const char* psMethodSlot, + const TQObject* pObjSlot, const char* psMethodSlot, bool bConfigurable = true, bool bEnabled = true ); - bool remove( const QString& sAction ); - bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + bool remove( const TQString& sAction ); + bool setActionSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot ); bool updateConnections(); - bool setShortcut( const QString& sAction, const KShortcut& cut ); + bool setShortcut( const TQString& sAction, const KShortcut& cut ); // Modify individual Action sub-items - bool setActionEnabled( const QString& sAction, bool bEnable ); + bool setActionEnabled( const TQString& sAction, bool bEnable ); /** * Read all key associations from @p config, or (if @p config @@ -181,14 +181,14 @@ class KAccelBase */ void writeSettings( KConfigBase* pConfig = 0 ) const; - QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + TQPopupMenu* createPopupMenu( TQWidget* pParent, const KKeySequence& ); // Protected methods protected: void slotRemoveAction( KAccelAction* ); struct X; - void createKeyList( QValueVector<struct X>& rgKeys ); + void createKeyList( TQValueVector<struct X>& rgKeys ); bool insertConnection( KAccelAction* ); bool removeConnection( KAccelAction* ); @@ -209,15 +209,15 @@ class KAccelBase ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } }; - typedef QMap<KKeyServer::Key, ActionInfo> KKeyToActionMap; + typedef TQMap<KKeyServer::Key, ActionInfo> KKeyToActionMap; KAccelActions m_rgActions; KKeyToActionMap m_mapKeyToAction; - QValueList<KAccelAction*> m_rgActionsNonUnique; - bool m_bNativeKeys; // Use native key codes instead of Qt codes + TQValueList<KAccelAction*> m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of TQt codes bool m_bEnabled; bool m_bConfigIsGlobal; - QString m_sConfigGroup; + TQString m_sConfigGroup; bool m_bAutoUpdate; KAccelAction* mtemp_pActionRemoving; |