diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:09:42 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:09:42 -0600 |
commit | 2df6bde18ab40472f2df8637cf6456cb80dc2329 (patch) | |
tree | 5a4362124ff46786fce835d2f1e7d583c92a5670 /extra/kde300 | |
parent | be6cfa4b990910e65e8d2f4f212eba3f7da6ee72 (diff) | |
download | pytde-2df6bde18ab40472f2df8637cf6456cb80dc2329.tar.gz pytde-2df6bde18ab40472f2df8637cf6456cb80dc2329.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'extra/kde300')
-rw-r--r-- | extra/kde300/kaccelaction.h | 104 | ||||
-rw-r--r-- | extra/kde300/kaccelbase.h | 68 | ||||
-rw-r--r-- | extra/kde300/konsole_part.h | 28 | ||||
-rw-r--r-- | extra/kde300/krecentdirs.h | 2 | ||||
-rw-r--r-- | extra/kde300/ktoolbarbutton.h | 28 | ||||
-rw-r--r-- | extra/kde300/kurifilter.h | 4 |
6 files changed, 117 insertions, 117 deletions
diff --git a/extra/kde300/kaccelaction.h b/extra/kde300/kaccelaction.h index b9fb056..bd85a25 100644 --- a/extra/kde300/kaccelaction.h +++ b/extra/kde300/kaccelaction.h @@ -27,30 +27,30 @@ #include <kshortcut.h> -class KAccelBase; +class TDEAccelBase; class TQObject; class TDEConfig; class TDEConfigBase; /* - KAccelAction holds information an a given action, such as "Execute Command" + TDEAccelAction holds information an a given action, such as "Execute Command" - 1) KAccelAction = "Execute Command" + 1) TDEAccelAction = "Execute Command" Default3 = "Alt+F2" Default4 = "Meta+Enter;Alt+F2" - 1) KShortcut = "Meta+Enter" + 1) TDEShortcut = "Meta+Enter" 1) KKeySequence = "Meta+Enter" 1) KKey = "Meta+Enter" 1) Meta+Enter 2) Meta+Keypad_Enter - 2) KShortcut = "Alt+F2" + 2) TDEShortcut = "Alt+F2" 1) KKeySequence = "Alt+F2" 1) Alt+F2 - 2) KAccelAction = "Something" + 2) TDEAccelAction = "Something" Default3 = "" Default4 = "" - 1) KShortcut = "Meta+X,Asterisk" + 1) TDEShortcut = "Meta+X,Asterisk" 1) KKeySequence = "Meta+X,Asterisk" 1) KKey = "Meta+X" 1) Meta+X @@ -60,35 +60,35 @@ class TDEConfigBase; */ //--------------------------------------------------------------------- -// KAccelAction +// TDEAccelAction //--------------------------------------------------------------------- -class KAccelAction +class TDEAccelAction { public: - KAccelAction(); - KAccelAction( const KAccelAction& ); - KAccelAction( const TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, + TDEAccelAction(); + TDEAccelAction( const TDEAccelAction& ); + TDEAccelAction( const TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, + const TDEShortcut& cutDef3, const TDEShortcut& cutDef4, const TQObject* pObjSlot, const char* psMethodSlot, bool bConfigurable, bool bEnabled ); - ~KAccelAction(); + ~TDEAccelAction(); void clear(); bool init( const TQString& sName, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& cutDef3, const KShortcut& cutDef4, + const TDEShortcut& cutDef3, const TDEShortcut& cutDef4, const TQObject* pObjSlot, const char* psMethodSlot, bool bConfigurable, bool bEnabled ); - KAccelAction& operator=( const KAccelAction& ); + TDEAccelAction& operator=( const TDEAccelAction& ); const TQString& name() const { return m_sName; } const TQString& label() const { return m_sLabel; } const TQString& whatsThis() const { return m_sWhatsThis; } - const KShortcut& shortcut() const { return m_cut; } - const KShortcut& shortcutDefault() const; - const KShortcut& shortcutDefault3() const { return m_cutDefault3; } - const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + const TDEShortcut& shortcut() const { return m_cut; } + const TDEShortcut& shortcutDefault() const; + const TDEShortcut& shortcutDefault3() const { return m_cutDefault3; } + const TDEShortcut& shortcutDefault4() const { return m_cutDefault4; } const TQObject* objSlotPtr() const { return m_pObjSlot; } const char* methodSlotPtr() const { return m_psMethodSlot; } bool isConfigurable() const { return m_bConfigurable; } @@ -97,7 +97,7 @@ class KAccelAction void setName( const TQString& ); void setLabel( const TQString& ); void setWhatsThis( const TQString& ); - bool setShortcut( const KShortcut& rgCuts ); + bool setShortcut( const TDEShortcut& rgCuts ); void setSlot( const TQObject* pObjSlot, const char* psMethodSlot ); void setConfigurable( bool ); void setEnabled( bool ); @@ -120,8 +120,8 @@ class KAccelAction TQString m_sName, m_sLabel, m_sWhatsThis; - KShortcut m_cut; - KShortcut m_cutDefault3, m_cutDefault4; + TDEShortcut m_cut; + TDEShortcut m_cutDefault3, m_cutDefault4; const TQObject* m_pObjSlot; const char* m_psMethodSlot; bool m_bConfigurable, @@ -134,43 +134,43 @@ class KAccelAction private: static int g_bUseFourModifierKeys; - class KAccelActionPrivate* d; + class TDEAccelActionPrivate* d; - friend class KAccelActions; - friend class KAccelBase; + friend class TDEAccelActions; + friend class TDEAccelBase; }; //--------------------------------------------------------------------- -// KAccelActions +// TDEAccelActions //--------------------------------------------------------------------- -class KAccelActions +class TDEAccelActions { public: - KAccelActions(); - KAccelActions( const KAccelActions& ); - virtual ~KAccelActions(); + TDEAccelActions(); + TDEAccelActions( const TDEAccelActions& ); + virtual ~TDEAccelActions(); void clear(); - bool init( const KAccelActions& ); + bool init( const TDEAccelActions& ); bool init( TDEConfigBase& config, const TQString& sGroup ); - void updateShortcuts( KAccelActions& ); + void updateShortcuts( TDEAccelActions& ); int actionIndex( const TQString& sAction ) const; - KAccelAction* actionPtr( uint ); - const KAccelAction* actionPtr( uint ) const; - KAccelAction* actionPtr( const TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( KKeySequence cut ); - KAccelAction& operator []( uint ); - const KAccelAction& operator []( uint ) const; - - KAccelAction* insert( const TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + TDEAccelAction* actionPtr( uint ); + const TDEAccelAction* actionPtr( uint ) const; + TDEAccelAction* actionPtr( const TQString& sAction ); + const TDEAccelAction* actionPtr( const TQString& sAction ) const; + TDEAccelAction* actionPtr( KKeySequence cut ); + TDEAccelAction& operator []( uint ); + const TDEAccelAction& operator []( uint ) const; + + TDEAccelAction* insert( const TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis, + const TDEShortcut& rgCutDefaults3, const TDEShortcut& rgCutDefaults4, const TQObject* pObjSlot = 0, const char* psMethodSlot = 0, bool bConfigurable = true, bool bEnabled = true ); - KAccelAction* insert( const TQString& sName, const TQString& sLabel ); + TDEAccelAction* insert( const TQString& sName, const TQString& sLabel ); bool remove( const TQString& sAction ); bool readActions( const TQString& sConfigGroup = "Shortcuts", TDEConfigBase* pConfig = 0 ); @@ -182,21 +182,21 @@ class KAccelActions uint count() const; protected: - KAccelBase* m_pKAccelBase; - KAccelAction** m_prgActions; + TDEAccelBase* m_pTDEAccelBase; + TDEAccelAction** m_prgActions; uint m_nSizeAllocated, m_nSize; void resize( uint ); - void insertPtr( KAccelAction* ); + void insertPtr( TDEAccelAction* ); private: - class KAccelActionsPrivate* d; + class TDEAccelActionsPrivate* d; - KAccelActions( KAccelBase* ); - void initPrivate( KAccelBase* ); - KAccelActions& operator =( KAccelActions& ); + TDEAccelActions( TDEAccelBase* ); + void initPrivate( TDEAccelBase* ); + TDEAccelActions& operator =( TDEAccelActions& ); - friend class KAccelBase; + friend class TDEAccelBase; }; #endif // _KACCELACTION_H diff --git a/extra/kde300/kaccelbase.h b/extra/kde300/kaccelbase.h index 5405a1f..0fbbe79 100644 --- a/extra/kde300/kaccelbase.h +++ b/extra/kde300/kaccelbase.h @@ -34,7 +34,7 @@ class TQWidget; //---------------------------------------------------- -class KAccelBasePrivate; +class TDEAccelBasePrivate; /** * Handle keyboard accelerators. * @@ -42,7 +42,7 @@ class KAccelBasePrivate; * key bindings through application configuration files or through the * @ref KKeyChooser GUI. * - * A @ref KAccel contains a list of accelerator items. Each accelerator item + * A @ref TDEAccel contains a list of accelerator items. Each accelerator item * consists of an action name and a keyboard code combined with modifiers * (Shift, Ctrl and Alt.) * @@ -55,7 +55,7 @@ class KAccelBasePrivate; * connected. Accelerator items can be connected so that a key will activate * two different slots. * - * A KAccel object handles key events sent to its parent widget and to all + * A TDEAccel object handles key events sent to its parent widget and to all * children of this parent widget. * * Key binding reconfiguration during run time can be prevented by specifying @@ -74,33 +74,33 @@ class KAccelBasePrivate; * The translated first argument for @ref insertItem() is used only * in the configuration dialog. *<pre> - * KAccel *a = new KAccel( myWindow ); + * TDEAccel *a = new TDEAccel( myWindow ); * // Insert an action "Scroll Up" which is associated with the "Up" key: * a->insertItem( i18n("Scroll up"), "Scroll Up", "Up" ); * // Insert an action "Scroll Down" which is not associated with any key: * a->insertItem( i18n("Scroll down"), "Scroll Down", 0); * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) ); - * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it + * // a->insertStdItem( TDEStdAccel::Print ); //not necessary, since it * // is done automatially with the * // connect below! - * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) ); + * a->connectItem(TDEStdAccel::Print, myWindow, SLOT( printDoc() ) ); * * a->readSettings(); *</pre> * * If a shortcut has a menu entry as well, you could insert them like - * this. The example is again the @ref KStdAccel::Print from above. + * this. The example is again the @ref TDEStdAccel::Print from above. * * <pre> * int id; * id = popup->insertItem("&Print",this, SLOT(printDoc())); - * a->changeMenuAccel(popup, id, KStdAccel::Print ); + * a->changeMenuAccel(popup, id, TDEStdAccel::Print ); * </pre> * * If you want a somewhat "exotic" name for your standard print action, like * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); * it might be a good idea to insert the standard action before as - * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * a->insertStdItem( TDEStdAccel::Print, i18n("Print Document") ) * as well, so that the user can easily find the corresponding function. * * This technique works for other actions as well. Your "scroll up" function @@ -119,23 +119,23 @@ class KAccelBasePrivate; * @version $Id: kaccelbase.h,v 1.20 2002/03/03 21:20:25 lunakl Exp $ */ -class KAccelBase +class TDEAccelBase { public: enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; enum Signal { KEYCODE_CHANGED }; - KAccelBase( int fInitCode ); - virtual ~KAccelBase(); + TDEAccelBase( int fInitCode ); + virtual ~TDEAccelBase(); uint actionCount() const; - KAccelActions& actions(); + TDEAccelActions& actions(); bool isEnabled() const; - KAccelAction* actionPtr( const TQString& sAction ); - const KAccelAction* actionPtr( const TQString& sAction ) const; - KAccelAction* actionPtr( const KKey& key ); - KAccelAction* actionPtr( const KKeyServer::Key& key ); + TDEAccelAction* actionPtr( const TQString& sAction ); + const TDEAccelAction* actionPtr( const TQString& sAction ) const; + TDEAccelAction* actionPtr( const KKey& key ); + TDEAccelAction* actionPtr( const KKeyServer::Key& key ); const TQString& configGroup() const { return m_sConfigGroup; } void setConfigGroup( const TQString& group ); @@ -148,10 +148,10 @@ class KAccelBase // Procedures for manipulating Actions. //void clearActions(); - KAccelAction* insert( const TQString& sName, const TQString& sDesc ); - KAccelAction* insert( + TDEAccelAction* insert( const TQString& sName, const TQString& sDesc ); + TDEAccelAction* insert( const TQString& sAction, const TQString& sDesc, const TQString& sHelp, - const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const TDEShortcut& rgCutDefaults3, const TDEShortcut& rgCutDefaults4, const TQObject* pObjSlot, const char* psMethodSlot, bool bConfigurable = true, bool bEnabled = true ); bool remove( const TQString& sAction ); @@ -159,7 +159,7 @@ class KAccelBase bool updateConnections(); - bool setShortcut( const TQString& sAction, const KShortcut& cut ); + bool setShortcut( const TQString& sAction, const TDEShortcut& cut ); // Modify individual Action sub-items bool setActionEnabled( const TQString& sAction, bool bEnable ); @@ -185,49 +185,49 @@ class KAccelBase // Protected methods protected: - void slotRemoveAction( KAccelAction* ); + void slotRemoveAction( TDEAccelAction* ); void createKeyList( TQValueVector<struct X>& rgKeys ); - bool insertConnection( KAccelAction* ); - bool removeConnection( KAccelAction* ); + bool insertConnection( TDEAccelAction* ); + bool removeConnection( TDEAccelAction* ); virtual bool emitSignal( Signal ) = 0; - virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( TDEAccelAction&, const KKeyServer::Key& ) = 0; virtual bool connectKey( const KKeyServer::Key& ) = 0; - virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( TDEAccelAction&, const KKeyServer::Key& ) = 0; virtual bool disconnectKey( const KKeyServer::Key& ) = 0; protected: struct ActionInfo { - KAccelAction* pAction; + TDEAccelAction* pAction; uint iSeq, iVariation; //ActionInfo* pInfoNext; // nil if only one action uses this key. ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } - ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + ActionInfo( TDEAccelAction* _pAction, uint _iSeq, uint _iVariation ) { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } }; typedef TQMap<KKeyServer::Key, ActionInfo> KKeyToActionMap; - KAccelActions m_rgActions; + TDEAccelActions m_rgActions; KKeyToActionMap m_mapKeyToAction; - TQValueList<KAccelAction*> m_rgActionsNonUnique; + TQValueList<TDEAccelAction*> m_rgActionsNonUnique; bool m_bNativeKeys; // Use native key codes instead of TQt codes bool m_bEnabled; bool m_bConfigIsGlobal; TQString m_sConfigGroup; bool m_bAutoUpdate; - KAccelAction* mtemp_pActionRemoving; + TDEAccelAction* mtemp_pActionRemoving; private: - KAccelBase& operator =( const KAccelBase& ); + TDEAccelBase& operator =( const TDEAccelBase& ); - friend class KAccelActions; + friend class TDEAccelActions; protected: virtual void virtual_hook( int id, void* data ); private: - KAccelBasePrivate* d; + TDEAccelBasePrivate* d; }; #endif // _KACCELBASE_H diff --git a/extra/kde300/konsole_part.h b/extra/kde300/konsole_part.h index ae66062..772e3f5 100644 --- a/extra/kde300/konsole_part.h +++ b/extra/kde300/konsole_part.h @@ -36,11 +36,11 @@ class TDEInstance; class konsoleBrowserExtension; class TQPushButton; class TQSpinBox; -class KPopupMenu; +class TDEPopupMenu; class TQCheckBox; class KRootPixmap; -class KToggleAction; -class KSelectAction; +class TDEToggleAction; +class TDESelectAction; namespace KParts { class GUIActivateEvent; } @@ -140,19 +140,19 @@ signals: // ColorSchemaList* colors; KRootPixmap* rootxpm; - KToggleAction* blinkingCursor; - KToggleAction* showFrame; + TDEToggleAction* blinkingCursor; + TDEToggleAction* showFrame; - KSelectAction* selectBell; - KSelectAction* selectFont; - KSelectAction* selectLineSpacing; - KSelectAction* selectScrollbar; + TDESelectAction* selectBell; + TDESelectAction* selectFont; + TDESelectAction* selectLineSpacing; + TDESelectAction* selectScrollbar; - KPopupMenu* m_keytab; - KPopupMenu* m_schema; - KPopupMenu* m_signals; - KPopupMenu* m_options; - KPopupMenu* m_popupMenu; + TDEPopupMenu* m_keytab; + TDEPopupMenu* m_schema; + TDEPopupMenu* m_signals; + TDEPopupMenu* m_options; + TDEPopupMenu* m_popupMenu; TQFont defaultFont; diff --git a/extra/kde300/krecentdirs.h b/extra/kde300/krecentdirs.h index 61a5070..4187c1e 100644 --- a/extra/kde300/krecentdirs.h +++ b/extra/kde300/krecentdirs.h @@ -45,7 +45,7 @@ * a single ':' the file-class is specific to the current application. * If the file-class starts with '::' it is global to all applications. */ -class KRecentDirs +class TDERecentDirs { public: /** diff --git a/extra/kde300/ktoolbarbutton.h b/extra/kde300/ktoolbarbutton.h index 19f243b..a708ee3 100644 --- a/extra/kde300/ktoolbarbutton.h +++ b/extra/kde300/ktoolbarbutton.h @@ -30,19 +30,19 @@ #include <tqstring.h> #include <kglobal.h> -class KToolBar; -class KToolBarButtonPrivate; +class TDEToolBar; +class TDEToolBarButtonPrivate; class TDEInstance; class TQEvent; class TQPopupMenu; class TQPainter; /** - * A toolbar button. This is used internally by @ref KToolBar, use the - * KToolBar methods instead. + * A toolbar button. This is used internally by @ref TDEToolBar, use the + * TDEToolBar methods instead. * @internal */ -class KToolBarButton : public TQToolButton +class TDEToolBarButton : public TQToolButton { Q_OBJECT @@ -58,7 +58,7 @@ public: * @param name This button's internal name * @param txt This button's text (in a tooltip or otherwise) */ - KToolBarButton(const TQString& icon, int id, TQWidget *parent, + TDEToolBarButton(const TQString& icon, int id, TQWidget *parent, const char *name=0L, const TQString &txt=TQString::null, TDEInstance *_instance = TDEGlobal::instance()); @@ -73,7 +73,7 @@ public: * @param name This button's internal name * @param txt This button's text (in a tooltip or otherwise) */ - KToolBarButton(const TQPixmap& pixmap, int id, TQWidget *parent, + TDEToolBarButton(const TQPixmap& pixmap, int id, TQWidget *parent, const char *name=0L, const TQString &txt=TQString::null); /** @@ -82,12 +82,12 @@ public: * @param parent This button's parent * @param name This button's internal name */ - KToolBarButton(TQWidget *parent=0L, const char *name=0L); + TDEToolBarButton(TQWidget *parent=0L, const char *name=0L); /** * Standard destructor */ - ~KToolBarButton(); + ~TDEToolBarButton(); #ifndef KDE_NO_COMPAT /** @@ -288,19 +288,19 @@ protected slots: protected: virtual void virtual_hook( int id, void* data ); private: - KToolBarButtonPrivate *d; + TDEToolBarButtonPrivate *d; }; /** -* List of @ref KToolBarButton objects. +* List of @ref TDEToolBarButton objects. * @internal * @version $Id: ktoolbarbutton.h,v 1.21 2002/03/04 00:51:52 lunakl Exp $ */ -class KToolBarButtonList : public TQIntDict<KToolBarButton> +class TDEToolBarButtonList : public TQIntDict<TDEToolBarButton> { public: - KToolBarButtonList(); - ~KToolBarButtonList() {} + TDEToolBarButtonList(); + ~TDEToolBarButtonList() {} }; #endif diff --git a/extra/kde300/kurifilter.h b/extra/kde300/kurifilter.h index d7dc5b3..9b28d1d 100644 --- a/extra/kde300/kurifilter.h +++ b/extra/kde300/kurifilter.h @@ -451,10 +451,10 @@ private: * examples: * <pre> * TQString text = "kde.org"; - * bool filtered = KURIFilter::self()->filterURI( text, "KShortURIFilter" ); + * bool filtered = KURIFilter::self()->filterURI( text, "TDEShortURIFilter" ); * * TQStringList list; - * list << "KShortURIFilter" << "MyFilter"; + * list << "TDEShortURIFilter" << "MyFilter"; * bool filtered = KURIFilter::self()->filterURI( text, list ); * </pre> * |