summaryrefslogtreecommitdiffstats
path: root/src/kmplayertvsource.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 06:10:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 06:10:56 +0000
commit769e63d24adf5c844137484f06a972fcce732d6a (patch)
tree5185797dcb3ff4b1b3cb71d367123bf89eb2410f /src/kmplayertvsource.h
parent0a8af92185eac74d48da1225e6053a0d66c078f5 (diff)
downloadkmplayer-769e63d24adf5c844137484f06a972fcce732d6a.tar.gz
kmplayer-769e63d24adf5c844137484f06a972fcce732d6a.zip
TQt4 port kmplayer
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmplayer@1238840 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kmplayertvsource.h')
-rw-r--r--src/kmplayertvsource.h94
1 files changed, 49 insertions, 45 deletions
diff --git a/src/kmplayertvsource.h b/src/kmplayertvsource.h
index ef5f416..6e9407d 100644
--- a/src/kmplayertvsource.h
+++ b/src/kmplayertvsource.h
@@ -20,9 +20,9 @@
#ifndef _KMPLAYER_TV_SOURCE_H_
#define _KMPLAYER_TV_SOURCE_H_
-#include <qguardedptr.h>
-#include <qstring.h>
-#include <qframe.h>
+#include <tqguardedptr.h>
+#include <tqstring.h>
+#include <tqframe.h>
#include "kmplayerappsource.h"
#include "kmplayerconfig.h"
@@ -39,26 +39,27 @@ class KMPlayerTVSource;
class KURLRequester;
class KHistoryCombo;
class KMPlayerApp;
-class QTabWidget;
-class QGroupBox;
-class QLineEdit;
-class QCheckBox;
+class TQTabWidget;
+class TQGroupBox;
+class TQLineEdit;
+class TQCheckBox;
class KComboBox;
class KConfig;
-class KMPLAYER_NO_EXPORT TVDevicePage : public QFrame {
+class KMPLAYER_NO_EXPORT TVDevicePage : public TQFrame {
Q_OBJECT
+ TQ_OBJECT
public:
- TVDevicePage (QWidget *parent, KMPlayer::NodePtr dev);
+ TVDevicePage (TQWidget *tqparent, KMPlayer::NodePtr dev);
KDE_NO_CDTOR_EXPORT ~TVDevicePage () {}
- QLineEdit * name;
+ TQLineEdit * name;
KURLRequester * audiodevice;
- QLineEdit * sizewidth;
- QLineEdit * sizeheight;
- QCheckBox * noplayback;
- QTabWidget * inputsTab;
+ TQLineEdit * sizewidth;
+ TQLineEdit * sizeheight;
+ TQCheckBox * noplayback;
+ TQTabWidget * inputsTab;
KMPlayer::NodePtrW device_doc;
signals:
void deleted (TVDevicePage *);
@@ -66,24 +67,25 @@ private slots:
void slotDelete ();
};
-class KMPLAYER_NO_EXPORT KMPlayerPrefSourcePageTV : public QFrame {
+class KMPLAYER_NO_EXPORT KMPlayerPrefSourcePageTV : public TQFrame {
Q_OBJECT
+ TQ_OBJECT
public:
- KMPlayerPrefSourcePageTV (QWidget *parent, KMPlayerTVSource *);
+ KMPlayerPrefSourcePageTV (TQWidget *tqparent, KMPlayerTVSource *);
KDE_NO_CDTOR_EXPORT ~KMPlayerPrefSourcePageTV () {}
- QLineEdit * driver;
+ TQLineEdit * driver;
KURLRequester * device;
- QPushButton * scan;
- QTabWidget * notebook;
+ TQPushButton * scan;
+ TQTabWidget * notebook;
protected:
- void showEvent (QShowEvent *);
+ void showEvent (TQShowEvent *);
KMPlayerTVSource * m_tvsource;
};
class KMPLAYER_NO_EXPORT TVNode : public KMPlayer::GenericMrl {
public:
- TVNode (KMPlayer::NodePtr &d, const QString &s, const char * t, short id, const QString &n=QString ());
- virtual void setNodeName (const QString &);
+ TVNode (KMPlayer::NodePtr &d, const TQString &s, const char * t, short id, const TQString &n=TQString ());
+ virtual void setNodeName (const TQString &);
};
/*
@@ -91,7 +93,7 @@ public:
*/
class KMPLAYER_NO_EXPORT TVChannel : public TVNode {
public:
- TVChannel (KMPlayer::NodePtr & d, const QString & n, double f);
+ TVChannel (KMPlayer::NodePtr & d, const TQString & n, double f);
TVChannel (KMPlayer::NodePtr & d);
KDE_NO_CDTOR_EXPORT ~TVChannel () {}
void closed ();
@@ -102,11 +104,11 @@ public:
*/
class KMPLAYER_NO_EXPORT TVInput : public TVNode {
public:
- TVInput (KMPlayer::NodePtr & d, const QString & n, int id);
+ TVInput (KMPlayer::NodePtr & d, const TQString & n, int id);
TVInput (KMPlayer::NodePtr & d);
KDE_NO_CDTOR_EXPORT ~TVInput () {}
- KMPlayer::NodePtr childFromTag (const QString &);
- void setNodeName (const QString &);
+ KMPlayer::NodePtr childFromTag (const TQString &);
+ void setNodeName (const TQString &);
void closed ();
};
@@ -115,25 +117,25 @@ public:
*/
class KMPLAYER_NO_EXPORT TVDevice : public TVNode {
public:
- TVDevice (KMPlayer::NodePtr & d, const QString & s);
+ TVDevice (KMPlayer::NodePtr & d, const TQString & s);
TVDevice (KMPlayer::NodePtr & d);
~TVDevice ();
- KMPlayer::NodePtr childFromTag (const QString &);
+ KMPlayer::NodePtr childFromTag (const TQString &);
void closed ();
void childDone (KMPlayer::NodePtr child);
- void setNodeName (const QString &);
+ void setNodeName (const TQString &);
bool expose () const { return false; }
void updateNodeName ();
void updateDevicePage ();
bool zombie;
- QGuardedPtr <TVDevicePage> device_page;
+ TQGuardedPtr <TVDevicePage> device_page;
};
class KMPLAYER_NO_EXPORT TVDocument : public FileDocument {
KMPlayerTVSource * m_source;
public:
TVDocument (KMPlayerTVSource *);
- KMPlayer::NodePtr childFromTag (const QString &);
+ KMPlayer::NodePtr childFromTag (const TQString &);
void defer ();
KDE_NO_EXPORT const char * nodeName () const { return "tvdevices"; }
void childDone (KMPlayer::NodePtr child);
@@ -145,15 +147,16 @@ public:
*/
class KMPLAYER_NO_EXPORT TVDeviceScannerSource : public KMPlayer::Source {
Q_OBJECT
+ TQ_OBJECT
public:
TVDeviceScannerSource (KMPlayerTVSource * src);
KDE_NO_CDTOR_EXPORT ~TVDeviceScannerSource () {};
virtual void init ();
- virtual bool processOutput (const QString & line);
- virtual QString filterOptions ();
+ virtual bool processOutput (const TQString & line);
+ virtual TQString filterOptions ();
virtual bool hasLength ();
virtual bool isSeekable ();
- virtual bool scan (const QString & device, const QString & driver);
+ virtual bool scan (const TQString & device, const TQString & driver);
public slots:
virtual void activate ();
virtual void deactivate ();
@@ -165,10 +168,10 @@ private:
KMPlayerTVSource * m_tvsource;
TVDevice * m_tvdevice;
KMPlayer::Source * m_old_source;
- QString m_driver;
- QRegExp m_nameRegExp;
- QRegExp m_sizesRegExp;
- QRegExp m_inputRegExp;
+ TQString m_driver;
+ TQRegExp m_nameRegExp;
+ TQRegExp m_sizesRegExp;
+ TQRegExp m_inputRegExp;
};
/*
@@ -176,20 +179,21 @@ private:
*/
class KMPLAYER_NO_EXPORT KMPlayerTVSource : public KMPlayerMenuSource, public KMPlayer::PreferencesPage {
Q_OBJECT
+ TQ_OBJECT
public:
- KMPlayerTVSource (KMPlayerApp * app, QPopupMenu * m);
+ KMPlayerTVSource (KMPlayerApp * app, TQPopupMenu * m);
virtual ~KMPlayerTVSource ();
- virtual QString filterOptions ();
+ virtual TQString filterOptions ();
virtual bool hasLength ();
virtual bool isSeekable ();
virtual KMPlayer::NodePtr root ();
void buildMenu ();
- virtual QString prettyName ();
+ virtual TQString prettyName ();
virtual void write (KConfig *);
virtual void read (KConfig *);
virtual void sync (bool);
- virtual void prefLocation (QString & item, QString & icon, QString & tab);
- virtual QFrame * prefPage (QWidget * parent);
+ virtual void prefLocation (TQString & item, TQString & icon, TQString & tab);
+ virtual TQFrame * prefPage (TQWidget * tqparent);
void readXML ();
public slots:
virtual void activate ();
@@ -207,8 +211,8 @@ private:
void buildArguments ();
KMPlayer::NodePtrW m_cur_tvdevice;
KMPlayer::NodePtrW m_cur_tvinput;
- QPopupMenu * m_channelmenu;
- QString tvdriver;
+ TQPopupMenu * m_channelmenu;
+ TQString tvdriver;
KMPlayerPrefSourcePageTV * m_configpage;
TVDeviceScannerSource * scanner;
int tree_id;