diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /noatun/library/noatun | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun/library/noatun')
-rw-r--r-- | noatun/library/noatun/app.h | 18 | ||||
-rw-r--r-- | noatun/library/noatun/controls.h | 36 | ||||
-rw-r--r-- | noatun/library/noatun/downloader.h | 26 | ||||
-rw-r--r-- | noatun/library/noatun/effects.h | 28 | ||||
-rw-r--r-- | noatun/library/noatun/engine.h | 10 | ||||
-rw-r--r-- | noatun/library/noatun/equalizer.h | 40 | ||||
-rw-r--r-- | noatun/library/noatun/player.h | 18 | ||||
-rw-r--r-- | noatun/library/noatun/playlist.h | 66 | ||||
-rw-r--r-- | noatun/library/noatun/playlistsaver.h | 8 | ||||
-rw-r--r-- | noatun/library/noatun/plugin.h | 12 | ||||
-rw-r--r-- | noatun/library/noatun/pluginloader.h | 56 | ||||
-rw-r--r-- | noatun/library/noatun/pref.h | 8 | ||||
-rw-r--r-- | noatun/library/noatun/scrollinglabel.h | 16 | ||||
-rw-r--r-- | noatun/library/noatun/stdaction.h | 40 | ||||
-rw-r--r-- | noatun/library/noatun/stereobuttonaction.h | 12 | ||||
-rw-r--r-- | noatun/library/noatun/vequalizer.h | 42 | ||||
-rw-r--r-- | noatun/library/noatun/video.h | 10 |
17 files changed, 223 insertions, 223 deletions
diff --git a/noatun/library/noatun/app.h b/noatun/library/noatun/app.h index c4effa4d..0b8af3ee 100644 --- a/noatun/library/noatun/app.h +++ b/noatun/library/noatun/app.h @@ -56,20 +56,20 @@ public: /** * @return a list of mimetypes aRts (and thus Noatun) can play - * KFileDialog accepts this QString instead of the shell globs in + * KFileDialog accepts this TQString instead of the shell globs in * its static functions, make use of it :) **/ - QString mimeTypes(); + TQString mimeTypes(); LibraryLoader *libraryLoader() const { return mLibraryLoader; } Downloader *downloader() const { return mDownloader; } - static QImage readPNG(const QString &filename); + static TQImage readPNG(const TQString &filename); Effects *effects() const; ::Equalizer *equalizer() const { return mEqualizer; } ::VEqualizer *vequalizer(); KDialogBase *equalizerView() const { return mEqualizerView; } - QCString version() const; + TQCString version() const; virtual void commitData(QSessionManager &); virtual void saveState(QSessionManager &); @@ -121,7 +121,7 @@ public: //options int startupPlayMode() const; bool loopList() const; bool oneInstance() const; - QString saveDirectory() const; + TQString saveDirectory() const; /** * @deprecated * now merged with clearOnOpen() @@ -138,7 +138,7 @@ public: //options * software mixing is active **/ bool fastMixer() const; - QString titleFormat() const; + TQString titleFormat() const; /** * @return true if remaining time is displayed to the user, false if * played time is displayed @@ -152,7 +152,7 @@ public: //options */ void setAutoPlay(bool); void setStartupPlayMode(int mode); - void setSaveDirectory(const QString &); + void setSaveDirectory(const TQString &); void setRememberPositions(bool); /** * @deprecated @@ -171,7 +171,7 @@ public: //options **/ void setFastMixer(bool); - void setTitleFormat(const QString &); + void setTitleFormat(const TQString &); /** * Pass true if remaining time should be displayed to the user, false if @@ -192,7 +192,7 @@ public: //options * * @return the ID associated with the menu item, for use in pluginMenuRemove() **/ - int pluginMenuAdd(const QString &text, const QObject *receiver, const char *member); + int pluginMenuAdd(const TQString &text, const TQObject *receiver, const char *member); /** * @deprecated diff --git a/noatun/library/noatun/controls.h b/noatun/library/noatun/controls.h index 6db8d1cd..27186c08 100644 --- a/noatun/library/noatun/controls.h +++ b/noatun/library/noatun/controls.h @@ -1,12 +1,12 @@ #ifndef __CONTROLS_H #define __CONTROLS_H -#include <qguardedptr.h> +#include <tqguardedptr.h> #include <kaction.h> #include <ktoolbar.h> -#include <qslider.h> -#include <qstringlist.h> +#include <tqslider.h> +#include <tqstringlist.h> #include <kdemacros.h> class QComboBox; @@ -16,7 +16,7 @@ class QLabel; * A slider that can be moved around while being * changed internally * - * @short Special QSlider based class suitable for time sliders + * @short Special TQSlider based class suitable for time sliders * @author Charles Samuels * @version 2.3 **/ @@ -24,10 +24,10 @@ class KDE_EXPORT L33tSlider : public QSlider { Q_OBJECT public: - L33tSlider(QWidget * parent, const char * name=0); - L33tSlider(Orientation, QWidget * parent, const char * name=0); + L33tSlider(TQWidget * parent, const char * name=0); + L33tSlider(Orientation, TQWidget * parent, const char * name=0); L33tSlider(int minValue, int maxValue, int pageStep, int value, - Orientation, QWidget * parent, const char * name=0); + Orientation, TQWidget * parent, const char * name=0); bool currentlyPressed() const; signals: @@ -40,9 +40,9 @@ public slots: virtual void setValue(int); protected: - virtual void mousePressEvent(QMouseEvent*); - virtual void mouseReleaseEvent(QMouseEvent*); - virtual void wheelEvent(QWheelEvent *); + virtual void mousePressEvent(TQMouseEvent*); + virtual void mouseReleaseEvent(TQMouseEvent*); + virtual void wheelEvent(TQWheelEvent *); private: bool pressed; @@ -57,11 +57,11 @@ class SliderAction : public KAction { Q_OBJECT public: - SliderAction(const QString& text, int accel, const QObject *receiver, - const char *member, QObject* parent, const char* name ); - virtual int plug( QWidget *w, int index = -1 ); - virtual void unplug( QWidget *w ); - QSlider* slider() const { return m_slider; } + SliderAction(const TQString& text, int accel, const TQObject *receiver, + const char *member, TQObject* parent, const char* name ); + virtual int plug( TQWidget *w, int index = -1 ); + virtual void unplug( TQWidget *w ); + TQSlider* slider() const { return m_slider; } signals: void plugged(); @@ -70,9 +70,9 @@ public slots: void toolbarMoved(KToolBar::BarPosition pos); private: - QGuardedPtr<QSlider> m_slider; - QStringList m_items; - const QObject *m_receiver; + TQGuardedPtr<TQSlider> m_slider; + TQStringList m_items; + const TQObject *m_receiver; const char *m_member; }; diff --git a/noatun/library/noatun/downloader.h b/noatun/library/noatun/downloader.h index c281a006..624518d0 100644 --- a/noatun/library/noatun/downloader.h +++ b/noatun/library/noatun/downloader.h @@ -2,8 +2,8 @@ #define _DOWNLOADER_H #include <kurl.h> -#include <qobject.h> -#include <qptrlist.h> +#include <tqobject.h> +#include <tqptrlist.h> class QFile; class QTimer; @@ -31,9 +31,9 @@ public: /** * @return the local filename this item will be saved to **/ - QString localFilename() const; + TQString localFilename() const; - virtual void setLocalFilename(const QString &filename); + virtual void setLocalFilename(const TQString &filename); /** * Called if this item has been fully downloaded @@ -57,7 +57,7 @@ public: void dequeue(); private: - QString mLocalFilename; + TQString mLocalFilename; }; /** @@ -70,15 +70,15 @@ Q_OBJECT { DownloadItem *notifier; KURL file; - QString local; + TQString local; }; public: - Downloader(QObject *parent=0); + Downloader(TQObject *parent=0); virtual ~Downloader(); public slots: - QString enqueue(DownloadItem *notifier, const KURL &file); + TQString enqueue(DownloadItem *notifier, const KURL &file); void dequeue(DownloadItem *notifier); /** @@ -101,18 +101,18 @@ signals: private slots: void getNext(); - void data( KIO::Job *, const QByteArray &data); + void data( KIO::Job *, const TQByteArray &data); void percent( KIO::Job *, unsigned long percent); void jobDone( KIO::Job *); void giveUpWithThisDownloadServerIsRunningNT(); private: - QPtrList<Downloader::QueueItem> mQueue; - QPtrList<Downloader::QueueItem> *mUnstartedQueue; - QFile *localfile; + TQPtrList<Downloader::QueueItem> mQueue; + TQPtrList<Downloader::QueueItem> *mUnstartedQueue; + TQFile *localfile; Downloader::QueueItem *current; KIO::TransferJob *mJob; - QTimer *mTimeout; + TQTimer *mTimeout; bool mStarted; }; diff --git a/noatun/library/noatun/effects.h b/noatun/library/noatun/effects.h index c39cb8aa..4c014a93 100644 --- a/noatun/library/noatun/effects.h +++ b/noatun/library/noatun/effects.h @@ -1,10 +1,10 @@ #ifndef EFFECTS_H #define EFFECTS_H -#include <qptrlist.h> -#include <qcstring.h> -#include <qstrlist.h> -#include <qobject.h> +#include <tqptrlist.h> +#include <tqcstring.h> +#include <tqstrlist.h> +#include <tqobject.h> namespace Arts { class StereoEffect; } class Engine; @@ -48,12 +48,12 @@ public: /** * Get the name of the object. **/ - QCString name() const; + TQCString name() const; /** * get the "clean" title of effect **/ - QString title() const; + TQString title() const; /** * @return true if this effect name is invalid, false otherwise @@ -69,7 +69,7 @@ public: * set an icon and make it purdy. Otherwise * create a plan widget that you can reparent. **/ - QWidget *configure(bool friendly=true); + TQWidget *configure(bool friendly=true); /** * Does this widget have a configurable @@ -82,12 +82,12 @@ public: * Return an effect name that can be presented to a user * i.e. Arts::FREEVERB will end up as FREEVERB **/ - static QString clean(const QCString &name); + static TQString clean(const TQCString &name); private: long mId; Arts::StereoEffect *mEffect; - QCString mName; - QWidget *mConfig; + TQCString mName; + TQWidget *mConfig; }; /** @@ -137,12 +137,12 @@ public: * each of these can be given to the first * argument of the Effect constructor **/ - QStrList available() const; + TQStrList available() const; /** * A list of all available effects objects **/ - QPtrList<Effect> effects() const; + TQPtrList<Effect> effects() const; /** * Get the Effect that has the following id @@ -150,7 +150,7 @@ public: Effect *findId(long id) const; private: - QPtrListIterator<Effect> stackPosition() const; + TQPtrListIterator<Effect> stackPosition() const; signals: /** @@ -177,7 +177,7 @@ signals: private: // stored in no specific order - QPtrList<Effect> mItems; + TQPtrList<Effect> mItems; }; diff --git a/noatun/library/noatun/engine.h b/noatun/library/noatun/engine.h index 2244fa1e..b47eb087 100644 --- a/noatun/library/noatun/engine.h +++ b/noatun/library/noatun/engine.h @@ -1,7 +1,7 @@ #ifndef _ENGINE_H #define _ENGINE_H -#include <qobject.h> +#include <tqobject.h> #include <kurl.h> #include <arts/kmedia2.h> #include <noatun/playlist.h> @@ -35,7 +35,7 @@ class KDE_EXPORT Engine : public QObject Q_OBJECT friend class NoatunApp; public: - Engine(QObject *parent=0); + Engine(TQObject *parent=0); ~Engine(); void setInitialized(); bool initialized() const; @@ -78,9 +78,9 @@ signals: void aboutToPlay(); void receivedStreamMeta( - const QString &streamName, const QString &streamGenre, - const QString &streamUrl, const QString &streamBitrate, - const QString &trackTitle, const QString &trackUrl + const TQString &streamName, const TQString &streamGenre, + const TQString &streamUrl, const TQString &streamBitrate, + const TQString &trackTitle, const TQString &trackUrl ); void playingFailed(); diff --git a/noatun/library/noatun/equalizer.h b/noatun/library/noatun/equalizer.h index 10de88c5..d048d21d 100644 --- a/noatun/library/noatun/equalizer.h +++ b/noatun/library/noatun/equalizer.h @@ -1,8 +1,8 @@ #ifndef NOATUN_EQUALIZER_H #define NOATUN_EQUALIZER_H -#include <qptrlist.h> -#include <qobject.h> +#include <tqptrlist.h> +#include <tqobject.h> #include <kurl.h> #include <noatun/vequalizer.h> @@ -20,23 +20,23 @@ class Preset { friend class Equalizer; - Preset(const QString &file); + Preset(const TQString &file); Preset(); Preset(VPreset p); public: - QString name() const; - bool setName(const QString &name); + TQString name() const; + bool setName(const TQString &name); bool save() const; bool load(); void remove(); - QString file() const; + TQString file() const; VPreset &vpreset() const; private: - QString mFile; + TQString mFile; }; /** @@ -49,7 +49,7 @@ private: class Band { friend class Equalizer; -friend class QPtrList<Band>; +friend class TQPtrList<Band>; private: Band(); @@ -75,12 +75,12 @@ public: **/ int center() const; - QString formatStart(bool withHz=true) const; - QString formatEnd(bool withHz=true) const; + TQString formatStart(bool withHz=true) const; + TQString formatEnd(bool withHz=true) const; /** * return the format for center() **/ - QString format(bool withHz=true) const; + TQString format(bool withHz=true) const; private: int mOffset; @@ -110,7 +110,7 @@ public: Equalizer(); ~Equalizer(); - const QPtrList<Band> &bands() const; + const TQPtrList<Band> &bands() const; Band *band(int num) const; int bandCount() const; @@ -141,7 +141,7 @@ public: * pattern. Nevertheless, the file can be identified * by magic, so it's not required **/ - bool save(const KURL &file, const QString &friendly) const; + bool save(const KURL &file, const TQString &friendly) const; /** * restore the EQ settings from this file @@ -154,14 +154,14 @@ public: * * @see fromString **/ - QString toString(const QString &name="stored") const; + TQString toString(const TQString &name="stored") const; /** * undo a toString, restoring the EQ * to the settings in the given string, * emitting the changed signals **/ - bool fromString(const QString &str); + bool fromString(const TQString &str); /** * create a preset with such a name @@ -171,16 +171,16 @@ public: * If smart is true, append a number to the end * of the name, if one already exists by the given **/ - Preset *createPreset(const QString &name, bool smart=true); + Preset *createPreset(const TQString &name, bool smart=true); /** * return all the presets * remember to setAutoDelete on this **/ - QPtrList<Preset> presets() const; + TQPtrList<Preset> presets() const; - Preset *preset(const QString &file); - bool presetExists(const QString &name) const; + Preset *preset(const TQString &file); + bool presetExists(const TQString &name) const; signals: void changed(Band *band); @@ -227,7 +227,7 @@ private: void update(bool full=false); private: - QPtrList<Band> mBands; + TQPtrList<Band> mBands; bool mUpdates; int mPreamp; }; diff --git a/noatun/library/noatun/player.h b/noatun/library/noatun/player.h index bccda62b..a61c2335 100644 --- a/noatun/library/noatun/player.h +++ b/noatun/library/noatun/player.h @@ -1,8 +1,8 @@ #ifndef PLAYER_H #define PLAYER_H -#include <qobject.h> -#include <qtimer.h> +#include <tqobject.h> +#include <tqtimer.h> #include <kurl.h> #include <noatun/playlist.h> #include <kdemacros.h> @@ -41,14 +41,14 @@ public: enum LoopType { None=0, Song, Playlist, Random }; public: - Player(QObject *parent=0); + Player(TQObject *parent=0); ~Player(); /** * @return a string with the time that can be used in the UI: * CC:CC/LL:LL (mm:ss) **/ - QString lengthString(int _position=-1); + TQString lengthString(int _position=-1); /** * @return LoopType enum **/ @@ -180,9 +180,9 @@ private slots: void posTimeout(); void aboutToPlay(); void slotUpdateStreamMeta( - const QString &streamName, const QString &streamGenre, - const QString &streamUrl, const QString &streamBitrate, - const QString &trackTitle, const QString &trackUrl + const TQString &streamName, const TQString &streamGenre, + const TQString &streamUrl, const TQString &streamBitrate, + const TQString &trackTitle, const TQString &trackUrl ); signals: @@ -257,12 +257,12 @@ signals: private: Engine *mEngine; - QTimer filePos; + TQTimer filePos; int position; int mLoopStyle; bool firstTimeout; PlaylistItem mCurrent; // TODO eliminate - QPtrList<PlaylistNotifier> mNotifiers; + TQPtrList<PlaylistNotifier> mNotifiers; }; diff --git a/noatun/library/noatun/playlist.h b/noatun/library/noatun/playlist.h index 37eabb0b..013d63a4 100644 --- a/noatun/library/noatun/playlist.h +++ b/noatun/library/noatun/playlist.h @@ -1,10 +1,10 @@ #ifndef NOATUNPLAYLIST_H #define NOATUNPLAYLIST_H -#include <qobject.h> +#include <tqobject.h> #include <kurl.h> -#include <qdict.h> -#include <qstringlist.h> +#include <tqdict.h> +#include <tqstringlist.h> #include <cassert> #include <kdemacros.h> @@ -35,7 +35,7 @@ public: /** * Noatun asks your playlist for properties. It is your - * responsiblity to store the information. But usually a QMap<QString,QString> + * responsiblity to store the information. But usually a TQMap<TQString,TQString> * is enough. * * If you return the default value, the default should not @@ -43,30 +43,30 @@ public: * * This returns the property, or def if such a property doesn't exist **/ - virtual QString property(const QString &key, const QString &def=0) const=0; + virtual TQString property(const TQString &key, const TQString &def=0) const=0; /** * This sets the property with the given key and value. * - * Important: If you use a QMap, you'll have to remove the current + * Important: If you use a TQMap, you'll have to remove the current * item before adding a new one **/ - virtual void setProperty(const QString &key, const QString &property)=0; + virtual void setProperty(const TQString &key, const TQString &property)=0; /** * remove the item with given key **/ - virtual void clearProperty(const QString &key)=0; + virtual void clearProperty(const TQString &key)=0; /** * return a list of property keys **/ - virtual QStringList properties() const=0; + virtual TQStringList properties() const=0; /** * return whether if the given key exists **/ - virtual bool isProperty(const QString &key) const=0; + virtual bool isProperty(const TQString &key) const=0; /** * return the title of the song. By default, this will @@ -78,7 +78,7 @@ public: * * you shouldn't need to override this. **/ - virtual QString title() const; + virtual TQString title() const; /** * the true filename of the song, remote or local @@ -93,18 +93,18 @@ public: * first, this checks for the property "mimetype", else * it'l ask KMimeType based on file() **/ - virtual QCString mimetype() const; + virtual TQCString mimetype() const; /** * first, checks for the property "playObject", else, * it'l ask aRts **/ - virtual QCString playObject() const; + virtual TQCString playObject() const; /** * return the filename to send to the playobject **/ - virtual QString file() const { return url().path(); } + virtual TQString file() const { return url().path(); } /** * what's the length of the song, in milliseconds? @@ -120,7 +120,7 @@ public: * returns a friendly representation of the length * of this file **/ - QString lengthString() const; + TQString lengthString() const; /** * compare yourself with the given PlaylistItemData @@ -243,31 +243,31 @@ public: bool operator !=(const PlaylistItemData *i) const { return ! (*this->data()==*i); } - QString property(const QString &key, const QString &def=0) const + TQString property(const TQString &key, const TQString &def=0) const { assert(mData); return mData->property(key, def); } - void setProperty(const QString &key, const QString &property) + void setProperty(const TQString &key, const TQString &property) { assert(mData); const_cast<PlaylistItemData*>(mData)->setProperty(key, property); } - void clearProperty(const QString &key) + void clearProperty(const TQString &key) { assert(mData); const_cast<PlaylistItemData*>(mData)->clearProperty(key); } - QStringList properties() const + TQStringList properties() const { assert(mData); return mData->properties(); } - bool isProperty(const QString &key) const + bool isProperty(const TQString &key) const { assert(mData); return mData->isProperty(key); @@ -280,11 +280,11 @@ public: const_cast<PlaylistItemData*>(mData)->setUrl(url); } - QCString mimetype() const { assert(mData); return mData->mimetype(); } - QCString playObject() const { assert(mData); return mData->playObject(); } - QString file() const { assert(mData); return mData->file(); } + TQCString mimetype() const { assert(mData); return mData->mimetype(); } + TQCString playObject() const { assert(mData); return mData->playObject(); } + TQString file() const { assert(mData); return mData->file(); } - QString title() const + TQString title() const { assert(mData); return mData->title(); @@ -302,7 +302,7 @@ public: mData->setLength(ms); } - QString lengthString() const { assert(mData); return mData->lengthString(); } + TQString lengthString() const { assert(mData); return mData->lengthString(); } void remove() { assert(mData); mData->remove(); } @@ -331,7 +331,7 @@ class Playlist : public QObject Q_OBJECT friend class PlaylistItemData; public: - Playlist(QObject *parent, const char *name); + Playlist(TQObject *parent, const char *name); /** * on playlist unload, your playlist must * have current()==0 and emit playCurrent @@ -432,8 +432,8 @@ public: * to the items in the playlist. The keys * are always compared with case sensitivity **/ - virtual QValueList<PlaylistItem> select( - const QStringList &keys, const QStringList &values, + virtual TQValueList<PlaylistItem> select( + const TQStringList &keys, const TQStringList &values, int limit=-1, bool exact=false, bool caseSensitive=false ); @@ -443,21 +443,21 @@ public: * both of these (with different mechanisms if need be) * for speed **/ - virtual QValueList<PlaylistItem> select( - const QString &key, const QString &value, + virtual TQValueList<PlaylistItem> select( + const TQString &key, const TQString &value, int limit=-1, bool exact=false, bool caseSensitive=false ); /** * exactly the same as the above, except converts - * the const char* to QString (utf8) + * the const char* to TQString (utf8) **/ - inline QValueList<PlaylistItem> select( + inline TQValueList<PlaylistItem> select( const char *key, const char *value, int limit=-1, bool exact=false, bool caseSensitive=false ) { return select( - QString(key), QString(value), + TQString(key), TQString(value), limit, exact, caseSensitive ); } diff --git a/noatun/library/noatun/playlistsaver.h b/noatun/library/noatun/playlistsaver.h index e83761ca..781b8fc6 100644 --- a/noatun/library/noatun/playlistsaver.h +++ b/noatun/library/noatun/playlistsaver.h @@ -2,7 +2,7 @@ #define NOATUNPLAYLISTSAVER_H #include <kurl.h> -#include <qmap.h> +#include <tqmap.h> #include <noatun/playlist.h> class Structure; @@ -52,7 +52,7 @@ public: * unused, for future expansion, do not use * @internal **/ - virtual void setGroup(const QString &); + virtual void setGroup(const TQString &); protected: /** @@ -60,7 +60,7 @@ protected: * Given is a list of properties which coincide * with the standard noatun ones **/ - virtual void readItem(const QMap<QString,QString> &properties) = 0; + virtual void readItem(const TQMap<TQString,TQString> &properties) = 0; /** * add this item to the XML file @@ -72,7 +72,7 @@ protected: * unused, for future expansion * @internal **/ - virtual void changeGroup(const QString &) {} + virtual void changeGroup(const TQString &) {} /** * this is called when you should either diff --git a/noatun/library/noatun/plugin.h b/noatun/library/noatun/plugin.h index f90dcc0d..2bd8c994 100644 --- a/noatun/library/noatun/plugin.h +++ b/noatun/library/noatun/plugin.h @@ -2,7 +2,7 @@ #define NPLUGIN_H #include <noatun/pluginloader.h> -#include <qmemarray.h> +#include <tqmemarray.h> #include <vector> #include <kdemacros.h> @@ -153,7 +153,7 @@ public: private: int mTimeout; TimerThingy *mTimerThingy; - QCString mVisualizationStack; + TQCString mVisualizationStack; Arts::SoundServerV2 *mServer; static Arts::Dispatcher *mDispatcher; static bool internalVis; @@ -408,7 +408,7 @@ Q_OBJECT friend class NoatunListenerNotif; public: - NoatunListener(QObject *parent=0); + NoatunListener(TQObject *parent=0); virtual ~NoatunListener(); signals: @@ -432,11 +432,11 @@ protected: class ExitNotifier : public NoatunListener { public: - ExitNotifier(int pid, QObject *parent=0); + ExitNotifier(int pid, TQObject *parent=0); virtual ~ExitNotifier(); private: - QCString appid; + TQCString appid; }; /** @@ -454,7 +454,7 @@ class BoolNotifier : public QObject { Q_OBJECT public: - BoolNotifier(bool *value, NoatunListener *listener, QObject *parent=0); + BoolNotifier(bool *value, NoatunListener *listener, TQObject *parent=0); private slots: void event() {*mValue=false;} diff --git a/noatun/library/noatun/pluginloader.h b/noatun/library/noatun/pluginloader.h index 611fe358..04c1b750 100644 --- a/noatun/library/noatun/pluginloader.h +++ b/noatun/library/noatun/pluginloader.h @@ -1,27 +1,27 @@ #ifndef PLUGIN_LOADER_H #define PLUGIN_LOADER_H -#include <qstring.h> -#include <qvaluelist.h> -#include <qstringlist.h> +#include <tqstring.h> +#include <tqvaluelist.h> +#include <tqstringlist.h> #include <noatun/app.h> #include <klibloader.h> -#include <qdict.h> +#include <tqdict.h> #include <kdemacros.h> struct NoatunLibraryInfo { - QString specfile; - QString filename; - QString author; - QString license; - QString type; - QString site; - QString email; - QString name; - QString comment; - QStringList require; + TQString specfile; + TQString filename; + TQString author; + TQString license; + TQString type; + TQString site; + TQString email; + TQString name; + TQString comment; + TQStringList require; }; bool operator ==(const NoatunLibraryInfo &, const NoatunLibraryInfo &); @@ -46,30 +46,30 @@ public: LibraryLoader(); ~LibraryLoader(); - QValueList<NoatunLibraryInfo> available() const; - QValueList<NoatunLibraryInfo> loaded() const; - QValueList<NoatunLibraryInfo> loadedByType(const QString &type) const; + TQValueList<NoatunLibraryInfo> available() const; + TQValueList<NoatunLibraryInfo> loaded() const; + TQValueList<NoatunLibraryInfo> loadedByType(const TQString &type) const; /** * loads all the enabled plugins **/ bool loadAll(void); - bool loadAll(const QStringList &); + bool loadAll(const TQStringList &); - bool isLoaded(const QString &spec) const; - void add(const QString &spec); - void setModules(const QStringList &mods); + bool isLoaded(const TQString &spec) const; + void add(const TQString &spec); + void setModules(const TQStringList &mods); /** * unload the plugin specified by spec **/ - bool remove(const QString &spec); + bool remove(const TQString &spec); /** * Same as the above, but does not call kapp->exit() even * when the last userinterface plugin is removed. Necessary * during session management (see marquis plugin). * ### BIC: merge with above with terminateOnLastUI = true */ - bool remove(const QString &spec, bool terminateOnLastUI); + bool remove(const TQString &spec, bool terminateOnLastUI); /** * unload the plugin that is referenced by @par plugin **/ @@ -83,15 +83,15 @@ public: * to see what plugins are required to show * (when required by another noatun-plugin) **/ - NoatunLibraryInfo getInfo(const QString &spec) const; - QPtrList<Plugin> plugins() const; + NoatunLibraryInfo getInfo(const TQString &spec) const; + TQPtrList<Plugin> plugins() const; private: - bool loadSO(const QString &spec); - void removeNow(const QString &spec); + bool loadSO(const TQString &spec); + void removeNow(const TQString &spec); private: - QDict<LibraryLoader::PluginLibrary> mLibHash; + TQDict<LibraryLoader::PluginLibrary> mLibHash; Playlist *mPlaylist; }; diff --git a/noatun/library/noatun/pref.h b/noatun/library/noatun/pref.h index 95be5e0e..5a7d056e 100644 --- a/noatun/library/noatun/pref.h +++ b/noatun/library/noatun/pref.h @@ -2,7 +2,7 @@ #define NOATUNPREF_H #include <kdialogbase.h> -#include <qptrlist.h> +#include <tqptrlist.h> #include <kdemacros.h> class CModule; @@ -19,7 +19,7 @@ public: /** * @internal **/ - NoatunPreferences(QWidget *); + NoatunPreferences(TQWidget *); public: /** @@ -44,7 +44,7 @@ private: class NoatunPreferencesPrivate; NoatunPreferencesPrivate *d; - QPtrList<CModule> mModules; + TQPtrList<CModule> mModules; }; /** @@ -65,7 +65,7 @@ public: * parent is the object that is this modules virtual-parent. * When that is deleted, this also will go away, automagically. **/ - CModule(const QString &name, const QString &description, const QString &icon, QObject *parent=0); + CModule(const TQString &name, const TQString &description, const TQString &icon, TQObject *parent=0); virtual ~CModule(); diff --git a/noatun/library/noatun/scrollinglabel.h b/noatun/library/noatun/scrollinglabel.h index 1615a64f..231d3158 100644 --- a/noatun/library/noatun/scrollinglabel.h +++ b/noatun/library/noatun/scrollinglabel.h @@ -23,7 +23,7 @@ #ifndef SCROLLING_LABEL_H #define SCROLLING_LABEL_H -#include <qwidget.h> +#include <tqwidget.h> /** * A clever label that scrolls its contents as soon as there is not enough * space to show everything at once. @@ -33,7 +33,7 @@ class ScrollingLabel : public QWidget Q_OBJECT public: - ScrollingLabel(const QString &initialText,QWidget *parent, + ScrollingLabel(const TQString &initialText,TQWidget *parent, const char * name = 0); virtual ~ScrollingLabel(); @@ -41,15 +41,15 @@ class ScrollingLabel : public QWidget * Sets the label's text * set @p time (ms) if you want to display a temporary message **/ - virtual void setText(const QString &text, int time = -1); + virtual void setText(const TQString &text, int time = -1); - virtual QSize sizeHint() const; - virtual QSize minimumSizeHint() const; + virtual TQSize sizeHint() const; + virtual TQSize minimumSizeHint() const; /** * @return the label's text. **/ - virtual QString text() const; + virtual TQString text() const; /** * Used to enable/disable scrolling manually @@ -58,8 +58,8 @@ class ScrollingLabel : public QWidget protected: - virtual void paintEvent(QPaintEvent *); - virtual void resizeEvent(QResizeEvent *); + virtual void paintEvent(TQPaintEvent *); + virtual void resizeEvent(TQResizeEvent *); protected slots: diff --git a/noatun/library/noatun/stdaction.h b/noatun/library/noatun/stdaction.h index 7cac67fe..bfa34164 100644 --- a/noatun/library/noatun/stdaction.h +++ b/noatun/library/noatun/stdaction.h @@ -21,7 +21,7 @@ class PlayAction : public KAction { Q_OBJECT public: - PlayAction(QObject *parent, const char *name); + PlayAction(TQObject *parent, const char *name); private slots: void playing(); void notplaying(); @@ -34,7 +34,7 @@ class PlaylistAction : public KToggleAction { Q_OBJECT public: - PlaylistAction(QObject *parent, const char *name); + PlaylistAction(TQObject *parent, const char *name); private slots: void shown(); void hidden(); @@ -48,7 +48,7 @@ class PluginActionMenu : public KActionMenu { Q_OBJECT public: - PluginActionMenu(QObject *parent, const char *name); + PluginActionMenu(TQObject *parent, const char *name); /** * inserts the given @p action into the action-menu * @param action the action to insert @@ -63,7 +63,7 @@ public: * Wrapper method for old Noatun API * <b>DON'T USE</b> **/ - int menuAdd(const QString &text, const QObject *receiver, const char *member); + int menuAdd(const TQString &text, const TQObject *receiver, const char *member); /** * Wrapper method for old Noatun API * <b>DON'T USE</b> @@ -81,12 +81,12 @@ class VisActionMenu : public KActionMenu { Q_OBJECT public: - VisActionMenu(QObject *parent, const char *name); + VisActionMenu(TQObject *parent, const char *name); private slots: void fillPopup(); void toggleVisPlugin(int); private: - QMap<int, QString>mSpecMap; + TQMap<int, TQString>mSpecMap; }; @@ -98,7 +98,7 @@ class LoopActionMenu : public KActionMenu { Q_OBJECT public: - LoopActionMenu(QObject *parent, const char *name); + LoopActionMenu(TQObject *parent, const char *name); private slots: void updateLooping(int); void loopNoneSelected(); @@ -116,48 +116,48 @@ private: /** * @return pointer to a KAction which opens the effects dialog on activation */ -KDE_EXPORT KAction *effects(QObject *parent = 0, const char *name = 0); +KDE_EXPORT KAction *effects(TQObject *parent = 0, const char *name = 0); /** * @return pointer to a KAction which opens the equalizer dialog on activation */ -KDE_EXPORT KAction *equalizer(QObject *parent = 0, const char *name = 0); +KDE_EXPORT KAction *equalizer(TQObject *parent = 0, const char *name = 0); /** * @return pointer to a KAction which goes back one track on activation */ -KDE_EXPORT KAction *back(QObject *parent = 0, const char *name = 0); +KDE_EXPORT KAction *back(TQObject *parent = 0, const char *name = 0); /** * @return pointer to a KAction which stops playback on activation */ -KDE_EXPORT KAction *stop(QObject *parent = 0, const char *name = 0); +KDE_EXPORT KAction *stop(TQObject *parent = 0, const char *name = 0); /** * @return pointer to a KAction which starts/pauses playback on activation */ -KDE_EXPORT KAction *playpause(QObject *parent = 0, const char *name = 0); +KDE_EXPORT KAction *playpause(TQObject *parent = 0, const char *name = 0); /** * @return pointer to a KAction which advances one track on activation */ -KDE_EXPORT KAction *forward(QObject *parent = 0, const char *name = 0); +KDE_EXPORT KAction *forward(TQObject *parent = 0, const char *name = 0); /** * @return pointer to a KToggleAction which shows/hides the playlist */ -KDE_EXPORT KToggleAction *playlist(QObject *parent = 0, const char *name = 0); +KDE_EXPORT KToggleAction *playlist(TQObject *parent = 0, const char *name = 0); /** * loop action **/ -KDE_EXPORT LoopActionMenu *loop(QObject *parent, const char *name); +KDE_EXPORT LoopActionMenu *loop(TQObject *parent, const char *name); /** * play action */ -KDE_EXPORT KAction *play(QObject *parent = 0, const char *name = 0); +KDE_EXPORT KAction *play(TQObject *parent = 0, const char *name = 0); /** * pause action */ -KDE_EXPORT KAction *pause(QObject *parent = 0, const char *name = 0); +KDE_EXPORT KAction *pause(TQObject *parent = 0, const char *name = 0); /** * @return pointer to the global PluginActionMenu object (there is only one instance) @@ -167,7 +167,7 @@ KDE_EXPORT PluginActionMenu *actions(); /** * @return pointer to a VisActionMenu object */ -KDE_EXPORT VisActionMenu *visualizations(QObject *parent = 0, const char *name = 0); +KDE_EXPORT VisActionMenu *visualizations(TQObject *parent = 0, const char *name = 0); /** * The global popupmenu of noatun, there's not two or three but only one of these :) @@ -176,7 +176,7 @@ KDE_EXPORT VisActionMenu *visualizations(QObject *parent = 0, const char *name = class KDE_EXPORT ContextMenu { public: - static KPopupMenu *createContextMenu(QWidget *p); + static KPopupMenu *createContextMenu(TQWidget *p); /** * One menu to show them all, One menu to find them @@ -189,7 +189,7 @@ public: /** * Show the context menu at point **/ - static void showContextMenu(const QPoint &); + static void showContextMenu(const TQPoint &); /** * show the context menu at the mouse's current position diff --git a/noatun/library/noatun/stereobuttonaction.h b/noatun/library/noatun/stereobuttonaction.h index ce423b64..d6d6edb9 100644 --- a/noatun/library/noatun/stereobuttonaction.h +++ b/noatun/library/noatun/stereobuttonaction.h @@ -14,12 +14,12 @@ class StereoButtonAction : public KAction { Q_OBJECT public: - StereoButtonAction(const QString& text, int accel = 0, QObject* parent = 0, const char* name = 0 ); - StereoButtonAction(const QString& text, int accel, const QObject* receiver, const char* slot, QObject* parent, const char* name = 0 ); - StereoButtonAction(const QString& text, const QIconSet& pix, int accel = 0, QObject* parent = 0, const char* name = 0 ); - StereoButtonAction(const QString& text, const QString& pix, int accel = 0, QObject* parent = 0, const char* name = 0 ); - StereoButtonAction(const QString& text, const QIconSet& pix, int accel, const QObject* receiver, const char* slot, QObject* parent, const char* name = 0 ); - StereoButtonAction(const QString& text, const QString& pix, int accel, const QObject* receiver, const char* slot, QObject* parent, const char* name = 0 ); + StereoButtonAction(const TQString& text, int accel = 0, TQObject* parent = 0, const char* name = 0 ); + StereoButtonAction(const TQString& text, int accel, const TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0 ); + StereoButtonAction(const TQString& text, const TQIconSet& pix, int accel = 0, TQObject* parent = 0, const char* name = 0 ); + StereoButtonAction(const TQString& text, const TQString& pix, int accel = 0, TQObject* parent = 0, const char* name = 0 ); + StereoButtonAction(const TQString& text, const TQIconSet& pix, int accel, const TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0 ); + StereoButtonAction(const TQString& text, const TQString& pix, int accel, const TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0 ); public slots: void disable(void); void enable(void); diff --git a/noatun/library/noatun/vequalizer.h b/noatun/library/noatun/vequalizer.h index 73c421e1..d5ee7ecf 100644 --- a/noatun/library/noatun/vequalizer.h +++ b/noatun/library/noatun/vequalizer.h @@ -39,8 +39,8 @@ #ifndef NOATUN_VEQUALIZER_H #define NOATUN_VEQUALIZER_H -#include <qptrlist.h> -#include <qobject.h> +#include <tqptrlist.h> +#include <tqobject.h> #include <kurl.h> #include <kdemacros.h> class VBand; @@ -111,12 +111,12 @@ public: **/ int center() const; - QString formatStart(bool withHz=true) const; - QString formatEnd(bool withHz=true) const; + TQString formatStart(bool withHz=true) const; + TQString formatEnd(bool withHz=true) const; /** * return the format for center() **/ - QString format(bool withHz=true) const; + TQString format(bool withHz=true) const; }; @@ -134,7 +134,7 @@ public: * @short interpolated representation of Eq data * @author Charles Samuels **/ -class KDE_EXPORT VInterpolation : public QObject, public VBandsInterface +class KDE_EXPORT VInterpolation : public TQObject, public VBandsInterface { Q_OBJECT struct Private; @@ -173,7 +173,7 @@ class VPreset; * @short Noatun EQ * @author Charles Samuels **/ -class KDE_EXPORT VEqualizer : public QObject, public VBandsInterface +class KDE_EXPORT VEqualizer : public TQObject, public VBandsInterface { Q_OBJECT friend class VBand; @@ -197,7 +197,7 @@ public: * of each band, for example: { 40, 60, 100 } if * you hear up to 40hz **/ - static QValueList<int> frequencies(int num); + static TQValueList<int> frequencies(int num); /** * @return number of bands I have, which may be different @@ -243,7 +243,7 @@ public: // serialization * pattern. Nevertheless, the file can be identified * by magic, so it's not required **/ - bool save(const KURL &file, const QString &friendly) const; + bool save(const KURL &file, const TQString &friendly) const; /** * restore the EQ settings from this file @@ -256,14 +256,14 @@ public: // serialization * * @see fromString **/ - QString toString(const QString &name="stored") const; + TQString toString(const TQString &name="stored") const; /** * undo a toString, restoring the EQ * to the settings in the given string, * emitting the changed signals **/ - bool fromString(const QString &str); + bool fromString(const TQString &str); public: // presets /** @@ -274,31 +274,31 @@ public: // presets * If smart is true, append a number to the end * of the name, if one already exists by the given **/ - VPreset createPreset(const QString &name, bool smart=true); + VPreset createPreset(const TQString &name, bool smart=true); /** * return all the presets * remember to setAutoDelete on this **/ - QValueList<VPreset> presets() const; + TQValueList<VPreset> presets() const; /** * @returns the preset with the given name * or an invalid Preset if none exists **/ - VPreset presetByName(const QString &name); + VPreset presetByName(const TQString &name); /** * @returns the preset in the given file * or an invalid Preset if none exists **/ - VPreset presetByFile(const QString &file); + VPreset presetByFile(const TQString &file); /** * @returns whether a preset with the * given name exists **/ - bool presetExists(const QString &name) const; + bool presetExists(const TQString &name) const; signals: /** @@ -374,7 +374,7 @@ public slots: private: virtual int level(int index) const; virtual void setLevel(int index, int level); - void setLevels(const QValueList<int> &levels); + void setLevels(const TQValueList<int> &levels); private: /** @@ -405,7 +405,7 @@ class VPreset Private *d; void *_bc; - VPreset(const QString &file); + VPreset(const TQString &file); public: VPreset(); VPreset(const VPreset ©); @@ -416,7 +416,7 @@ public: /** * @returns the name of the preset, which is user visible **/ - QString name() const; + TQString name() const; /** * set the user-presentable name of the preset * @@ -425,12 +425,12 @@ public: * @returns success. If another preset is named * this, it'l fail. **/ - bool setName(const QString &name); + bool setName(const TQString &name); /** * @returns the file that this preset is in **/ - QString file() const; + TQString file() const; bool isValid() const; bool isNull() const { return !isValid(); } diff --git a/noatun/library/noatun/video.h b/noatun/library/noatun/video.h index 3655c489..e6fde310 100644 --- a/noatun/library/noatun/video.h +++ b/noatun/library/noatun/video.h @@ -15,12 +15,12 @@ Q_OBJECT struct Private; VideoFrame::Private *d; - static QPtrList<VideoFrame> frames; + static TQPtrList<VideoFrame> frames; static VideoFrame *whose; public: - VideoFrame(KXMLGUIClient *clientParent, QWidget *parent=0, const char *name=0, WFlags f=0); - VideoFrame(QWidget *parent = 0, const char *name=0, WFlags f=0); + VideoFrame(KXMLGUIClient *clientParent, TQWidget *parent=0, const char *name=0, WFlags f=0); + VideoFrame(TQWidget *parent = 0, const char *name=0, WFlags f=0); ~VideoFrame(); /** @@ -28,8 +28,8 @@ public: **/ static VideoFrame *playing(); - QPopupMenu *popupMenu(QWidget *parent); - QPopupMenu *popupMenu() { return popupMenu(this); } + TQPopupMenu *popupMenu(TQWidget *parent); + TQPopupMenu *popupMenu() { return popupMenu(this); } public slots: /** |