diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
commit | 7346aee26bf190a7e70333c40fab4caca847cd27 (patch) | |
tree | 4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /kate/tabbarextension/plugin_katetabbarextension.h | |
parent | 23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff) | |
download | tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/tabbarextension/plugin_katetabbarextension.h')
-rw-r--r-- | kate/tabbarextension/plugin_katetabbarextension.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/kate/tabbarextension/plugin_katetabbarextension.h b/kate/tabbarextension/plugin_katetabbarextension.h index 6b53444..db2df7a 100644 --- a/kate/tabbarextension/plugin_katetabbarextension.h +++ b/kate/tabbarextension/plugin_katetabbarextension.h @@ -39,23 +39,23 @@ #include <klocale.h> #include <ktoolbar.h> -#include <qwidget.h> -#include <qpushbutton.h> -#include <qptrlist.h> +#include <tqwidget.h> +#include <tqpushbutton.h> +#include <tqptrlist.h> class QBoxLayout; class QCheckBox; class KateTabBarButton; /** - * Same as QPtrList. Only difference is: overwrite comapreItems() for sorting reason. + * Same as TQPtrList. Only difference is: overwrite comapreItems() for sorting reason. */ -class MyPtrList : public QPtrList <KateTabBarButton> +class MyPtrList : public TQPtrList <KateTabBarButton> { public: - MyPtrList() { QPtrList<KateTabBarButton>::QPtrList(); } + MyPtrList() { TQPtrList<KateTabBarButton>::TQPtrList(); } - virtual int compareItems ( QPtrCollection::Item item1_, QPtrCollection::Item item2_ ); + virtual int compareItems ( TQPtrCollection::Item item1_, TQPtrCollection::Item item2_ ); }; class KatePluginFactory : public KLibFactory @@ -66,8 +66,8 @@ class KatePluginFactory : public KLibFactory KatePluginFactory(); virtual ~KatePluginFactory(); - virtual QObject* createObject( QObject* parent = 0, const char* pname = 0, - const char* name = "QObject", const QStringList &args = QStringList() ); + virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0, + const char* name = "TQObject", const TQStringList &args = TQStringList() ); private: static KInstance* s_instance; @@ -90,7 +90,7 @@ class KateTabBarButton: public QPushButton * @param name name of the tab button */ KateTabBarButton(Kate::ViewManager* pViewManager, Kate::Document *pDoc, - QWidget* parent = 0, const char * name = 0); + TQWidget* parent = 0, const char * name = 0); /** * standard destructor (emtpy) @@ -106,7 +106,7 @@ class KateTabBarButton: public QPushButton * get the document's full name (eg. main.cpp), used for comparison * @return the document's name */ - QString fullName() const; + TQString fullName() const; /** * negate the modified flag and change the button color @@ -124,7 +124,7 @@ class KateTabBarButton: public QPushButton * set text for this tab * @param newText new text */ - virtual void setText( const QString& newText); + virtual void setText( const TQString& newText); signals: /** @@ -167,7 +167,7 @@ class KateTabBarExtension : public QWidget */ KateTabBarExtension( Kate::DocumentManager *pDocManager, Kate::MainWindow *win, bool bHorizOrientation, bool bSort, - QWidget * parent = 0, const char * name = 0, WFlags f = 0 ); + TQWidget * parent = 0, const char * name = 0, WFlags f = 0 ); /** standard destructor */ ~KateTabBarExtension(); @@ -245,10 +245,10 @@ class KateTabBarExtension : public QWidget private: KateTabBarButton* pCurrentTab; ///< pointer to the current tab - QBoxLayout* top; ///< layout that contains all tabs + TQBoxLayout* top; ///< layout that contains all tabs Kate::MainWindow* m_win; ///< pointer to the main window Kate::DocumentManager* m_docManager; ///< pointer to the document manager -// QPtrList <KateTabBarButton> m_tabs; ///< list containing all tabs +// TQPtrList <KateTabBarButton> m_tabs; ///< list containing all tabs MyPtrList m_tabs; ///< list containing all tabs Qt::Orientation m_orientation; ///< save tabbar's orientation bool m_sort; ///< how to sort @@ -264,7 +264,7 @@ class KateTabBarExtensionConfigPage : public Kate::PluginConfigPage friend class KatePluginTabBarExtension; public: - KateTabBarExtensionConfigPage (QObject* parent = 0L, QWidget *parentWidget = 0L); + KateTabBarExtensionConfigPage (TQObject* parent = 0L, TQWidget *parentWidget = 0L); ~KateTabBarExtensionConfigPage (); /** @@ -288,7 +288,7 @@ class KateTabBarExtensionConfigPage : public Kate::PluginConfigPage void configPageInitRequest( KateTabBarExtensionConfigPage* ); private: - QCheckBox* pSortAlpha; + TQCheckBox* pSortAlpha; }; class KatePluginTabBarExtension : public Kate::Plugin, Kate::PluginViewInterface, Kate::PluginConfigInterfaceExtension @@ -296,17 +296,17 @@ class KatePluginTabBarExtension : public Kate::Plugin, Kate::PluginViewInterface Q_OBJECT public: - KatePluginTabBarExtension( QObject* parent = 0, const char* name = 0 ); + KatePluginTabBarExtension( TQObject* parent = 0, const char* name = 0 ); virtual ~KatePluginTabBarExtension(); void addView (Kate::MainWindow *win); void removeView (Kate::MainWindow *win); uint configPages () const { return 1; } - Kate::PluginConfigPage *configPage (uint , QWidget *w, const char *name=0); - QString configPageName(uint) const { return i18n("Tab Bar Extension"); } - QString configPageFullName(uint) const { return i18n("Configure Tab Bar Extension"); } - QPixmap configPagePixmap (uint number = 0, int size = KIcon::SizeSmall) const { return 0L; } + Kate::PluginConfigPage *configPage (uint , TQWidget *w, const char *name=0); + TQString configPageName(uint) const { return i18n("Tab Bar Extension"); } + TQString configPageFullName(uint) const { return i18n("Configure Tab Bar Extension"); } + TQPixmap configPagePixmap (uint number = 0, int size = KIcon::SizeSmall) const { return 0L; } public slots: void applyConfig( KateTabBarExtensionConfigPage* ); @@ -315,7 +315,7 @@ class KatePluginTabBarExtension : public Kate::Plugin, Kate::PluginViewInterface void initConfigPage( KateTabBarExtensionConfigPage* ); private: - QPtrList<class PluginView> m_views; + TQPtrList<class PluginView> m_views; KConfig* pConfig; }; |