diff options
Diffstat (limited to 'lib/kopalette/kopalette.h')
-rw-r--r-- | lib/kopalette/kopalette.h | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/lib/kopalette/kopalette.h b/lib/kopalette/kopalette.h index 8c7a1f98..6f5654ee 100644 --- a/lib/kopalette/kopalette.h +++ b/lib/kopalette/kopalette.h @@ -18,14 +18,14 @@ #ifndef _KO_PALETTE_ #define _KO_PALETTE_ -#include <qdockwindow.h> -#include <qwidget.h> -#include <qlabel.h> -#include <qtoolbutton.h> -#include <qpixmap.h> -#include <qstring.h> -#include <qfont.h> -#include <qlayout.h> +#include <tqdockwindow.h> +#include <tqwidget.h> +#include <tqlabel.h> +#include <tqtoolbutton.h> +#include <tqpixmap.h> +#include <tqstring.h> +#include <tqfont.h> +#include <tqlayout.h> #include <koffice_export.h> #include "kopalettemanager.h" @@ -34,15 +34,16 @@ * to its organzing principle. * * There is currently no titlebar with a shade button; I hope to be - * able to use QDockWidget's toggle view action for that. + * able to use TQDockWidget's toggle view action for that. */ -class KOPALETTE_EXPORT KoPalette : public QDockWindow { +class KOPALETTE_EXPORT KoPalette : public TQDockWindow { Q_OBJECT + TQ_OBJECT public: - KoPalette(QWidget * parent, const char * name); + KoPalette(TQWidget * tqparent, const char * name); virtual ~KoPalette(); public: @@ -52,23 +53,23 @@ public: void setStyle(enumKoPaletteStyle style) { m_style = style; }; enumKoPaletteStyle style() { return m_style; }; - virtual void plug(QWidget * widget, const QString & name, int position) = 0; - virtual void unplug(const QWidget * widget) = 0; - virtual void showPage(QWidget *w) = 0; - virtual void togglePageHidden(QWidget *w) = 0; - virtual void hidePage(QWidget * w) = 0; + virtual void plug(TQWidget * widget, const TQString & name, int position) = 0; + virtual void unplug(const TQWidget * widget) = 0; + virtual void showPage(TQWidget *w) = 0; + virtual void togglePageHidden(TQWidget *w) = 0; + virtual void hidePage(TQWidget * w) = 0; virtual void makeVisible(bool v) = 0; - virtual bool isHidden(QWidget * w) = 0; - virtual int indexOf(QWidget *w) = 0; + virtual bool isHidden(TQWidget * w) = 0; + virtual int indexOf(TQWidget *w) = 0; protected: - virtual void setMainWidget(QWidget * widget); - QFont m_font; + virtual void setMainWidget(TQWidget * widget); + TQFont m_font; enumKoPaletteStyle m_style; private: - QWidget * m_page; + TQWidget * m_page; }; |