diff options
Diffstat (limited to 'src/kile/kilesidebar.h')
-rw-r--r-- | src/kile/kilesidebar.h | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/src/kile/kilesidebar.h b/src/kile/kilesidebar.h index 8a713d1..f53c0bf 100644 --- a/src/kile/kilesidebar.h +++ b/src/kile/kilesidebar.h @@ -18,25 +18,26 @@ #ifndef KILESIDEBAR_H #define KILESIDEBAR_H -#include <qframe.h> -#include <qmap.h> +#include <tqframe.h> +#include <tqmap.h> -class QWidgetStack; +class TQWidgetStack; class KileMultiTabBar; class SymbolView; /** @author Jeroen Wijnhout */ -class KileSideBar : public QFrame +class KileSideBar : public TQFrame { Q_OBJECT + TQ_OBJECT public: - KileSideBar(int size, QWidget *parent = 0, const char *name = 0, Qt::Orientation orientation = Qt::Vertical); + KileSideBar(int size, TQWidget *tqparent = 0, const char *name = 0, Qt::Orientation orientation = Qt::Vertical); ~KileSideBar(); - int addTab(QWidget *tab, const QPixmap &pic, const QString &text = QString::null); + int addTab(TQWidget *tab, const TQPixmap &pic, const TQString &text = TQString()); int currentTab() { return m_nCurrent; } @@ -45,8 +46,8 @@ public: void setSize(int sz) { m_nSize = sz; } int size() { return m_nSize; } - QWidget* currentPage(); - void removePage(QWidget *w); + TQWidget* currentPage(); + void removePage(TQWidget *w); /** * Shows or hides the tab connected to the widget "w". If the tab to be hidden is @@ -55,7 +56,7 @@ public: * @param b set to "true" to show the tab connected to the widget "w", "false" to * hide it **/ - void setPageVisible(QWidget *w, bool b); + void setPageVisible(TQWidget *w, bool b); signals: void visibilityChanged(bool ); @@ -67,7 +68,7 @@ public slots: virtual void expand(); void showTab(int); - void showPage(QWidget *); + void showPage(TQWidget *); void toggleTab(); void switchToTab(int id); @@ -75,12 +76,12 @@ private: int findNextShownTab(int i); protected: - QWidgetStack *m_tabStack; + TQWidgetStack *m_tabStack; KileMultiTabBar *m_tabBar; int m_nTabs; int m_nCurrent; - QMap<int,int> m_indexToPage; - QMap<QWidget*,int> m_widgetToIndex; + TQMap<int,int> m_indexToPage; + TQMap<TQWidget*,int> m_widgetToIndex; bool m_bMinimized; int m_nMinSize, m_nMaxSize, m_nSize; }; @@ -88,9 +89,10 @@ protected: class KileBottomBar : public KileSideBar { Q_OBJECT + TQ_OBJECT public: - KileBottomBar(int size, QWidget *parent = 0, const char *name = 0); + KileBottomBar(int size, TQWidget *tqparent = 0, const char *name = 0); void shrink(); void expand(); |