diff options
author | Timothy Pearson <[email protected]> | 2011-12-03 22:23:44 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-03 22:23:44 -0600 |
commit | 203ba231d0276943aae36111f9ec1e949f3c6a4c (patch) | |
tree | f039f7a5b5fc2da88a96876971bac580d87f6788 /extra/kde342/kaccelaction.h | |
parent | fd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff) | |
download | pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip |
Initial TQt conversion
Diffstat (limited to 'extra/kde342/kaccelaction.h')
-rw-r--r-- | extra/kde342/kaccelaction.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/extra/kde342/kaccelaction.h b/extra/kde342/kaccelaction.h index 52ae113..d52988b 100644 --- a/extra/kde342/kaccelaction.h +++ b/extra/kde342/kaccelaction.h @@ -29,7 +29,7 @@ class KAccelBase; -class QObject; +class TQObject; class KConfig; class KConfigBase; @@ -97,9 +97,9 @@ class TDECORE_EXPORT KAccelAction * @param bConfigurable if true the user can configure the shortcut * @param bEnabled true if the accelerator should be enabled */ - KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + KAccelAction( const TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, const KShortcut& cutDef3, const KShortcut& cutDef4, - const QObject* pObjSlot, const char* psMethodSlot, + const TQObject* pObjSlot, const char* psMethodSlot, bool bConfigurable, bool bEnabled ); ~KAccelAction(); @@ -123,9 +123,9 @@ class TDECORE_EXPORT KAccelAction * @param bEnabled true if the accelerator should be enabled * @return true if successful, false otherwise */ - bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + bool init( const TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, const KShortcut& cutDef3, const KShortcut& cutDef4, - const QObject* pObjSlot, const char* psMethodSlot, + const TQObject* pObjSlot, const char* psMethodSlot, bool bConfigurable, bool bEnabled ); /** @@ -138,21 +138,21 @@ class TDECORE_EXPORT KAccelAction * @return the name of the accelerator action, can be null if not * set */ - const QString& name() const { return m_sName; } + const TQString& name() const { return m_sName; } /** * Returns the label of the accelerator action. * @return the label of the accelerator action, can be null if * not set */ - const QString& label() const { return m_sLabel; } + const TQString& label() const { return m_sLabel; } /** * Returns the What's This text of the accelerator action. * @return the What's This text of the accelerator action, can be * null if not set */ - const QString& whatsThis() const { return m_sWhatsThis; } + const TQString& whatsThis() const { return m_sWhatsThis; } /** * The shortcut that is actually used (may be used configured). @@ -194,7 +194,7 @@ class TDECORE_EXPORT KAccelAction * Returns the receiver of signals. * @return the receiver of signals (can be 0 if not set) */ - const QObject* objSlotPtr() const { return m_pObjSlot; } + const TQObject* objSlotPtr() const { return m_pObjSlot; } /** * Returns the slot for the signal. @@ -218,19 +218,19 @@ class TDECORE_EXPORT KAccelAction * Sets the name of the accelerator action. * @param name the new name */ - void setName( const QString& name ); + void setName( const TQString& name ); /** * Sets the user-readable label of the accelerator action. * @param label the new label (i18n!) */ - void setLabel( const QString& label ); + void setLabel( const TQString& label ); /** * Sets the What's This text for the accelerator action. * @param whatsThis the new What's This text (i18n!) */ - void setWhatsThis( const QString& whatsThis ); + void setWhatsThis( const TQString& whatsThis ); /** * Sets the new shortcut of the accelerator action. @@ -244,7 +244,7 @@ class TDECORE_EXPORT KAccelAction * @param pObjSlot the receiver object of the signal * @param psMethodSlot the slot for the signal */ - void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + void setSlot( const TQObject* pObjSlot, const char* psMethodSlot ); /** * Enables or disabled configuring the action. @@ -308,12 +308,12 @@ class TDECORE_EXPORT KAccelAction * @return the string representation of the action's shortcut. * @see KShortcut::toString() */ - QString toString() const; + TQString toString() const; /** * @internal */ - QString toStringInternal() const; + TQString toStringInternal() const; /** * Returns true if four modifier keys will be used. @@ -329,12 +329,12 @@ class TDECORE_EXPORT KAccelAction static void useFourModifierKeys( bool use ); protected: - QString m_sName, + TQString m_sName, m_sLabel, m_sWhatsThis; KShortcut m_cut; KShortcut m_cutDefault3, m_cutDefault4; - const QObject* m_pObjSlot; + const TQObject* m_pObjSlot; const char* m_psMethodSlot; bool m_bConfigurable, m_bEnabled; @@ -397,7 +397,7 @@ class TDECORE_EXPORT KAccelActions * @param sGroup the group in the configuration file * @return true if successful, false otherwise */ - bool init( KConfigBase& config, const QString& sGroup ); + bool init( KConfigBase& config, const TQString& sGroup ); /** * Updates the shortcuts of all actions in this object @@ -412,7 +412,7 @@ class TDECORE_EXPORT KAccelActions * @param sAction the action to search * @return the index of the action, or -1 if not found */ - int actionIndex( const QString& sAction ) const; + int actionIndex( const TQString& sAction ) const; /** * Returns the action with the given @p index. @@ -438,7 +438,7 @@ class TDECORE_EXPORT KAccelActions * @return the KAccelAction with the given name, or 0 * if not found */ - KAccelAction* actionPtr( const QString& sAction ); + KAccelAction* actionPtr( const TQString& sAction ); /** * Returns the action with the given name. @@ -446,7 +446,7 @@ class TDECORE_EXPORT KAccelActions * @return the KAccelAction with the given name, or 0 * if not found */ - const KAccelAction* actionPtr( const QString& sAction ) const; + const KAccelAction* actionPtr( const TQString& sAction ) const; /** * Returns the action with the given key sequence. @@ -491,9 +491,9 @@ class TDECORE_EXPORT KAccelActions * @param bEnabled true if the accelerator should be enabled * @return the new action */ - KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + KAccelAction* insert( const TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, - const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + const TQObject* pObjSlot = 0, const char* psMethodSlot = 0, bool bConfigurable = true, bool bEnabled = true ); /** @@ -502,14 +502,14 @@ class TDECORE_EXPORT KAccelActions * @param sLabel the label of the accelerator (i18n!) * @return the new action */ - KAccelAction* insert( const QString& sName, const QString& sLabel ); + KAccelAction* insert( const TQString& sName, const TQString& sLabel ); /** * Removes the given action. * @param sAction the name of the action. * @return true if successful, false otherwise */ - bool remove( const QString& sAction ); + bool remove( const TQString& sAction ); /** * Loads the actions from the given configuration file. @@ -518,7 +518,7 @@ class TDECORE_EXPORT KAccelActions * @param pConfig the configuration file to load from * @return true if successful, false otherwise */ - bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + bool readActions( const TQString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); /** * Writes the actions to the given configuration file. @@ -529,7 +529,7 @@ class TDECORE_EXPORT KAccelActions * @param bGlobal true to write to the global configuration file * @return true if successful, false otherwise */ - bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool writeActions( const TQString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, bool bWriteAll = false, bool bGlobal = false ) const; /** |