summaryrefslogtreecommitdiffstats
path: root/kradio3/plugins/gui-standard-display/radioview.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 03:43:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 03:43:07 +0000
commit70b9eea2ba01c3691497f49e4c45cb070c16193c (patch)
tree9a6df61aa247a27275aad9c5245e419e89c2c640 /kradio3/plugins/gui-standard-display/radioview.h
parent998c1384ace4ae4655997c181fa33242148cd0a4 (diff)
downloadtderadio-70b9eea2ba01c3691497f49e4c45cb070c16193c.tar.gz
tderadio-70b9eea2ba01c3691497f49e4c45cb070c16193c.zip
TQt4 port kradio
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kradio@1238952 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kradio3/plugins/gui-standard-display/radioview.h')
-rw-r--r--kradio3/plugins/gui-standard-display/radioview.h81
1 files changed, 41 insertions, 40 deletions
diff --git a/kradio3/plugins/gui-standard-display/radioview.h b/kradio3/plugins/gui-standard-display/radioview.h
index 6cddc26..c884099 100644
--- a/kradio3/plugins/gui-standard-display/radioview.h
+++ b/kradio3/plugins/gui-standard-display/radioview.h
@@ -22,7 +22,7 @@
#include <config.h>
#endif
-#include <qobjectlist.h>
+#include <tqobjectlist.h>
#include "../../src/include/radio_interfaces.h"
#include "../../src/include/radiodevicepool_interfaces.h"
@@ -31,15 +31,15 @@
#include "../../src/include/widgetplugins.h"
#include "radioview_element.h"
-class QWidgetStack;
-class QToolButton;
+class TQWidgetStack;
+class TQToolButton;
class KComboBox;
-class QTabWidget;
+class TQTabWidget;
class KPopupMenu;
-class RadioView : public QWidget,
+class RadioView : public TQWidget,
public WidgetPluginBase,
public IRadioClient,
public IRadioDevicePoolClient,
@@ -47,15 +47,16 @@ class RadioView : public QWidget,
public ITimeControlClient
{
Q_OBJECT
+ TQ_OBJECT
public:
- RadioView(const QString &name);
+ RadioView(const TQString &name);
virtual ~RadioView();
- virtual QString pluginClassName() const { return "RadioView"; }
+ virtual TQString pluginClassName() const { return "RadioView"; }
- const QString &name() const { return PluginBase::name(); }
- QString &name() { return PluginBase::name(); }
+ const TQString &name() const { return PluginBase::name(); }
+ TQString &name() { return PluginBase::name(); }
// WidgetPluginBase
@@ -75,7 +76,7 @@ public:
public slots:
// connects destroy-msg with remove-function
bool addElement (RadioViewElement *);
- bool removeElement (QObject *);
+ bool removeElement (TQObject *);
protected:
void selectTopWidgets();
@@ -87,7 +88,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);
@@ -95,8 +96,8 @@ RECEIVERS:
RECEIVERS:
bool noticeActiveDeviceChanged(IRadioDevice *rd);
- bool noticeDevicesChanged(const QPtrList<IRadioDevice> &) { return false; }
- bool noticeDeviceDescriptionChanged(const QString &) { return false; }
+ bool noticeDevicesChanged(const TQPtrList<IRadioDevice> &) { return false; }
+ bool noticeDeviceDescriptionChanged(const TQString &) { return false; }
// ISoundStreamClient
@@ -116,7 +117,7 @@ RECEIVERS:
bool noticeAlarmsChanged(const AlarmVector &) { return false; }
bool noticeAlarm(const Alarm &) { return false; }
bool noticeNextAlarmChanged(const Alarm *) { return false; }
- bool noticeCountdownStarted(const QDateTime &end);
+ bool noticeCountdownStarted(const TQDateTime &end);
bool noticeCountdownStopped();
bool noticeCountdownZero();
bool noticeCountdownSecondsChanged(int) { return false; }
@@ -133,8 +134,8 @@ protected slots:
void slotBtnPluginsClicked();
void slotComboStationSelected(int);
- void slotConfigPageDeleted(QObject*);
- void slotElementConfigPageDeleted(QObject*);
+ void slotConfigPageDeleted(TQObject*);
+ void slotElementConfigPageDeleted(TQObject*);
public slots:
@@ -144,48 +145,48 @@ public slots:
void hide();
protected:
- virtual void showEvent(QShowEvent *);
- virtual void hideEvent(QHideEvent *);
+ virtual void showEvent(TQShowEvent *);
+ virtual void hideEvent(TQHideEvent *);
virtual void autoSetCaption();
- const QWidget *getWidget() const { return this; }
- QWidget *getWidget() { return this; }
+ const TQWidget *getWidget() const { return this; }
+ TQWidget *getWidget() { return this; }
- void addConfigurationTabFor(RadioViewElement *, QTabWidget *);
- void addCommonConfigurationTab(QTabWidget *);
+ void addConfigurationTabFor(RadioViewElement *, TQTabWidget *);
+ void addCommonConfigurationTab(TQTabWidget *);
protected:
bool enableToolbarFlag;
- QToolButton *btnPower;
- QToolButton *btnConfigure;
- QToolButton *btnQuit;
- QToolButton *btnRecording;
- QToolButton *btnSnooze;
- QToolButton *btnPlugins;
+ TQToolButton *btnPower;
+ TQToolButton *btnConfigure;
+ TQToolButton *btnQuit;
+ TQToolButton *btnRecording;
+ TQToolButton *btnSnooze;
+ TQToolButton *btnPlugins;
KComboBox *comboStations;
struct ElementCfg
{
RadioViewElement *element;
- QObject *cfg;
+ TQObject *cfg;
ElementCfg() : element(NULL), cfg(NULL) {}
- ElementCfg(RadioViewElement *e, QObject *w) : element(e), cfg(w) {}
+ ElementCfg(RadioViewElement *e, TQObject *w) : element(e), cfg(w) {}
ElementCfg(RadioViewElement *e) : element(e), cfg(NULL) {}
- ElementCfg(QObject *w) : element(NULL), cfg(w) {}
+ ElementCfg(TQObject *w) : element(NULL), cfg(w) {}
bool operator == (const ElementCfg &x) const;
};
- typedef QPtrList<RadioViewElement> ElementList;
- typedef QPtrListIterator<RadioViewElement> ElementListIterator;
- typedef QValueList<ElementCfg> ElementCfgList;
- typedef QValueListIterator<ElementCfg> ElementCfgListIterator;
+ typedef TQPtrList<RadioViewElement> ElementList;
+ typedef TQPtrListIterator<RadioViewElement> ElementListIterator;
+ typedef TQValueList<ElementCfg> ElementCfgList;
+ typedef TQValueListIterator<ElementCfg> ElementCfgListIterator;
ElementList elements;
ElementCfgList elementConfigPages;
- QObjectList configPages;
- QWidgetStack * widgetStacks[clsClassMAX];
+ TQObjectList configPages;
+ TQWidgetStack * widgetStacks[clsClassMAX];
float maxUsability[clsClassMAX];
IRadioDevice *currentDevice;
@@ -194,11 +195,11 @@ protected:
KPopupMenu *m_pauseMenu;
KPopupMenu *m_SnoozeMenu;
int m_NextRecordingMenuID;
- QMap<int, SoundStreamID> m_MenuID2StreamID;
- QMap<SoundStreamID, int> m_StreamID2MenuID;
+ TQMap<int, SoundStreamID> m_MenuID2StreamID;
+ TQMap<SoundStreamID, int> m_StreamID2MenuID;
KPopupMenu *m_PluginMenu;
- QMap<WidgetPluginBase *, int> m_Plugins2MenuID;
+ TQMap<WidgetPluginBase *, int> m_Plugins2MenuID;
};