diff options
Diffstat (limited to 'kradio3/plugins/gui-quickbar/quickbar.h')
-rw-r--r-- | kradio3/plugins/gui-quickbar/quickbar.h | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/kradio3/plugins/gui-quickbar/quickbar.h b/kradio3/plugins/gui-quickbar/quickbar.h index 7bf5193..1f5443a 100644 --- a/kradio3/plugins/gui-quickbar/quickbar.h +++ b/kradio3/plugins/gui-quickbar/quickbar.h @@ -15,42 +15,43 @@ * * ***************************************************************************/ -#ifndef KRADIO_QUICKBAR_H -#define KRADIO_QUICKBAR_H +#ifndef KRADIO_TQUICKBAR_H +#define KRADIO_TQUICKBAR_H #ifdef HAVE_CONFIG_H #include <config.h> #endif -#include <qwidget.h> +#include <tqwidget.h> #include "../../src/include/radio_interfaces.h" #include "../../src/include/widgetplugins.h" #include "../../src/include/stationselection_interfaces.h" class ButtonFlowLayout; -class QButtonGroup; +class TQButtonGroup; class KConfig; -class QToolButton; +class TQToolButton; /** *@author Martin Witte / Klas Kalass */ -class QuickBar : public QWidget, +class QuickBar : public TQWidget, public WidgetPluginBase, public IRadioClient, public IStationSelection { Q_OBJECT + TQ_OBJECT public: - QuickBar(const QString &name = QString::null); + QuickBar(const TQString &name = TQString()); ~QuickBar(); - virtual QString pluginClassName() const { return "QuickBar"; } + virtual TQString pluginClassName() const { return "QuickBar"; } - const QString &name() const { return PluginBase::name(); } - QString &name() { return PluginBase::name(); } + const TQString &name() const { return PluginBase::name(); } + TQString &name() { return PluginBase::name(); } virtual bool connectI(Interface *i); virtual bool disconnectI(Interface *i); @@ -58,10 +59,10 @@ public: // IStationSelection RECEIVERS: - bool setStationSelection(const QStringList &sl); + bool setStationSelection(const TQStringList &sl); ANSWERS: - const QStringList & getStationSelection () const { return m_stationIDs; } + const TQStringList & getStationSelection () const { return m_stationIDs; } // PluginBase @@ -79,7 +80,7 @@ RECEIVERS: bool noticePowerChanged(bool on); bool noticeStationChanged (const RadioStation &, int idx); bool noticeStationsChanged(const StationList &sl); - bool noticePresetFileChanged(const QString &/*f*/) { return false; } + bool noticePresetFileChanged(const TQString &/*f*/) { return false; } bool noticeCurrentSoundStreamIDChanged(SoundStreamID /*id*/) { return false; } @@ -99,8 +100,8 @@ protected: void autoSetCaption(); - void dragEnterEvent(QDragEnterEvent* event); - void dropEvent(QDropEvent* event); + void dragEnterEvent(TQDragEnterEvent* event); + void dropEvent(TQDropEvent* event); // KDE/QT @@ -110,28 +111,28 @@ public slots: void show(); void hide(); void showOnOrgDesktop(); - void setGeometry (const QRect &r); + void setGeometry (const TQRect &r); void setGeometry (int x, int y, int w, int h); protected: void rebuildGUI(); - void showEvent(QShowEvent *); - void hideEvent(QHideEvent *); - void resizeEvent(QResizeEvent *); + void showEvent(TQShowEvent *); + void hideEvent(TQHideEvent *); + void resizeEvent(TQResizeEvent *); - const QWidget *getWidget() const { return this; } - QWidget *getWidget() { return this; } + const TQWidget *getWidget() const { return this; } + TQWidget *getWidget() { return this; } protected : ButtonFlowLayout *m_layout; - QButtonGroup *m_buttonGroup; + TQButtonGroup *m_buttonGroup; - QPtrList<QToolButton> m_buttons; + TQPtrList<TQToolButton> m_buttons; // config bool m_showShortName; - QStringList m_stationIDs; + TQStringList m_stationIDs; bool m_ignoreNoticeActivation; }; |