summaryrefslogtreecommitdiffstats
path: root/amarok/src/playerwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'amarok/src/playerwindow.h')
-rw-r--r--amarok/src/playerwindow.h106
1 files changed, 53 insertions, 53 deletions
diff --git a/amarok/src/playerwindow.h b/amarok/src/playerwindow.h
index 659d6c9e..7caf3413 100644
--- a/amarok/src/playerwindow.h
+++ b/amarok/src/playerwindow.h
@@ -18,10 +18,10 @@
#ifndef PLAYERWIDGET_H
#define PLAYERWIDGET_H
-#include <qpixmap.h> //stack allocated
-#include <qtoolbutton.h> //baseclass
-#include <qvaluevector.h>//stack allocated
-#include <qwidget.h> //baseclass
+#include <tqpixmap.h> //stack allocated
+#include <tqtoolbutton.h> //baseclass
+#include <tqvaluevector.h>//stack allocated
+#include <tqwidget.h> //baseclass
#include "engineobserver.h" //baseclass
@@ -29,31 +29,31 @@ namespace Amarok { class PrettySlider; }
class KAction;
class MetaBundle;
class PlayerWidget;
-class QBitmap;
-class QButton;
-class QHBox;
-class QLabel;
-class QString;
-class QStringList;
-class QTimerEvent;
+class TQBitmap;
+class TQButton;
+class TQHBox;
+class TQLabel;
+class TQString;
+class TQStringList;
+class TQTimerEvent;
-class NavButton : public QToolButton //no QOBJECT macro - why bother?
+class NavButton : public TQToolButton //no QOBJECT macro - why bother?
{
public:
- NavButton( QWidget*, const QString&, KAction* );
+ NavButton( TQWidget*, const TQString&, KAction* );
protected:
- void timerEvent( QTimerEvent* );
- void drawButtonLabel( QPainter* );
+ void timerEvent( TQTimerEvent* );
+ void drawButtonLabel( TQPainter* );
static const int GLOW_INTERVAL = 35;
static const int NUMPIXMAPS = 16;
- QPixmap m_pixmapOff;
- QPixmap m_pixmapDisabled;
+ TQPixmap m_pixmapOff;
+ TQPixmap m_pixmapDisabled;
- QValueVector<QPixmap> m_glowPixmaps;
+ TQValueVector<TQPixmap> m_glowPixmaps;
int m_glowIndex;
};
@@ -63,27 +63,27 @@ class IconButton : public QButton
Q_OBJECT
public:
- IconButton( QWidget*, const QString&, const char *signal );
- IconButton( QWidget*, const QString&, QObject* receiver, const char *slot );
+ IconButton( TQWidget*, const TQString&, const char *signal );
+ IconButton( TQWidget*, const TQString&, TQObject* receiver, const char *slot );
public slots:
- void setOn( bool b ) { QButton::setOn( b ); }
- void setOff() { QButton::setOn( false ); }
+ void setOn( bool b ) { TQButton::setOn( b ); }
+ void setOff() { TQButton::setOn( false ); }
private:
- void drawButton( QPainter* );
+ void drawButton( TQPainter* );
- const QPixmap m_up;
- const QPixmap m_down;
+ const TQPixmap m_up;
+ const TQPixmap m_down;
};
-class PlayerWidget : public QWidget, public EngineObserver
+class PlayerWidget : public TQWidget, public EngineObserver
{
Q_OBJECT
public:
- PlayerWidget( QWidget* = 0, const char* = 0, bool enablePlaylist = false );
+ PlayerWidget( TQWidget* = 0, const char* = 0, bool enablePlaylist = false );
~PlayerWidget();
/** Set modified Amarok palette */
@@ -121,18 +121,18 @@ class PlayerWidget : public QWidget, public EngineObserver
void slotShowEqualizer( bool show );
private:
- void setScroll( const QStringList& );
+ void setScroll( const TQStringList& );
- virtual bool event( QEvent* );
- virtual bool eventFilter( QObject*, QEvent* );
+ virtual bool event( TQEvent* );
+ virtual bool eventFilter( TQObject*, TQEvent* );
//virtual bool x11Event( XEvent* );
- virtual void paintEvent( QPaintEvent* );
- virtual void contextMenuEvent( QMouseEvent* );
- virtual void mousePressEvent( QMouseEvent* );
- virtual void mouseMoveEvent( QMouseEvent* );
+ virtual void paintEvent( TQPaintEvent* );
+ virtual void contextMenuEvent( TQMouseEvent* );
+ virtual void mousePressEvent( TQMouseEvent* );
+ virtual void mouseMoveEvent( TQMouseEvent* );
///to make the code clearer to n00bies ;)
- QWidget *playlistWindow() { return parentWidget(); }
+ TQWidget *playlistWindow() { return parentWidget(); }
static const int SCROLL_RATE = 1;
static const int ANIM_TIMER = 30;
@@ -140,35 +140,35 @@ class PlayerWidget : public QWidget, public EngineObserver
// ATTRIBUTES ------
bool m_minimalView;
- QTimer *m_pAnimTimer;
+ TQTimer *m_pAnimTimer;
- QPixmap m_scrollTextPixmap;
- QPixmap m_scrollBuffer;
- QPixmap m_timeBuffer;
- QPixmap m_plusPixmap;
- QPixmap m_minusPixmap;
+ TQPixmap m_scrollTextPixmap;
+ TQPixmap m_scrollBuffer;
+ TQPixmap m_timeBuffer;
+ TQPixmap m_plusPixmap;
+ TQPixmap m_minusPixmap;
- QPoint m_startDragPos; //for drag behaviour
+ TQPoint m_startDragPos; //for drag behaviour
//widgets
- QString m_rateString;
- QWidget *m_pAnalyzer;
+ TQString m_rateString;
+ TQWidget *m_pAnalyzer;
IconButton *m_pButtonEq;
IconButton *m_pPlaylistButton;
- QLabel *m_pTimeLabel;
- QLabel *m_pTimeSign;
+ TQLabel *m_pTimeLabel;
+ TQLabel *m_pTimeSign;
- QFrame *m_pScrollFrame;
- QLabel *m_pVolSign;
- QLabel *m_pDescription;
- QHBox *m_pFrameButtons;
+ TQFrame *m_pScrollFrame;
+ TQLabel *m_pVolSign;
+ TQLabel *m_pDescription;
+ TQHBox *m_pFrameButtons;
Amarok::PrettySlider *m_pSlider;
Amarok::PrettySlider *m_pVolSlider;
- QToolButton *m_pButtonPlay;
- QToolButton *m_pButtonPause;
+ TQToolButton *m_pButtonPlay;
+ TQToolButton *m_pButtonPause;
- QString m_currentURL;
+ TQString m_currentURL;
};
#endif