summaryrefslogtreecommitdiffstats
path: root/noatun/modules/kjofol-skin/kjtextdisplay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun/modules/kjofol-skin/kjtextdisplay.cpp')
-rw-r--r--noatun/modules/kjofol-skin/kjtextdisplay.cpp128
1 files changed, 64 insertions, 64 deletions
diff --git a/noatun/modules/kjofol-skin/kjtextdisplay.cpp b/noatun/modules/kjofol-skin/kjtextdisplay.cpp
index 89f92526..c1a17139 100644
--- a/noatun/modules/kjofol-skin/kjtextdisplay.cpp
+++ b/noatun/modules/kjofol-skin/kjtextdisplay.cpp
@@ -35,8 +35,8 @@
* KJFilename
*******************************************/
-KJFilename::KJFilename(const QStringList &l, KJLoader *p)
- : QObject(0), KJWidget(p), mBack(0)
+KJFilename::KJFilename(const TQStringList &l, KJLoader *p)
+ : TQObject(0), KJWidget(p), mBack(0)
{
int x = l[1].toInt();
int y = l[2].toInt();
@@ -50,8 +50,8 @@ KJFilename::KJFilename(const QStringList &l, KJLoader *p)
ys = textFont().fontHeight();
// background under filename-scroller
- QPixmap tmp = p->pixmap(p->item("backgroundimage")[1]);
- mBack = new KPixmap ( QSize(xs,ys) );
+ TQPixmap tmp = p->pixmap(p->item("backgroundimage")[1]);
+ mBack = new KPixmap ( TQSize(xs,ys) );
bitBlt( mBack, 0, 0, &tmp, x, y, xs, ys, Qt::CopyROP );
setRect(x,y,xs,ys);
@@ -72,9 +72,9 @@ KJFilename::~KJFilename()
delete mBack;
}
-void KJFilename::paint(QPainter *p, const QRect &)
+void KJFilename::paint(TQPainter *p, const TQRect &)
{
- QPixmap temp ( rect().width(), rect().height() );
+ TQPixmap temp ( rect().width(), rect().height() );
// draw background into buffer
bitBlt ( &temp, 0, 0, mBack, 0, 0, -1, -1, Qt::CopyROP );
@@ -82,17 +82,17 @@ void KJFilename::paint(QPainter *p, const QRect &)
bitBlt( &temp, 0, 0, &mView, 0, 0, rect().width(), rect().height(), Qt::CopyROP);
// and draw it on screen
bitBlt(p->device(), rect().topLeft(), &temp,
- QRect(0,0,-1,-1), Qt::CopyROP);
+ TQRect(0,0,-1,-1), Qt::CopyROP);
}
-void KJFilename::timerEvent(QTimerEvent *)
+void KJFilename::timerEvent(TQTimerEvent *)
{
int height = mView.height();
int width = mView.width();
- QBitmap cycleMask ( mDistance, height ); // temporary-space for moving parts of the mask
- QPixmap cycle ( mDistance, height ); // temporary-space for moving parts of the pixmap
- QBitmap newMask ( *mView.mask() ); // save old mask
+ TQBitmap cycleMask ( mDistance, height ); // temporary-space for moving parts of the mask
+ TQPixmap cycle ( mDistance, height ); // temporary-space for moving parts of the pixmap
+ TQBitmap newMask ( *mView.mask() ); // save old mask
// copy mask like the same way we're doing it with the pixmap
// a mask does not get copied on a bitblt automatically, we have to do
@@ -111,12 +111,12 @@ void KJFilename::timerEvent(QTimerEvent *)
repaint();
}
-bool KJFilename::mousePress(const QPoint &)
+bool KJFilename::mousePress(const TQPoint &)
{
return true;
}
-void KJFilename::mouseRelease(const QPoint &, bool in)
+void KJFilename::mouseRelease(const TQPoint &, bool in)
{
if (!in) // only do something if users is still inside the button
return;
@@ -145,7 +145,7 @@ void KJFilename::readConfig()
mLastTitle=""; // invalidate title so it gets repainted on next timeUpdate()
}
-void KJFilename::prepareString(const QCString &str)
+void KJFilename::prepareString(const TQCString &str)
{
killTimers(); // i.e. stop timers
@@ -159,19 +159,19 @@ void KJFilename::timeUpdate(int)
if ( !napp->player()->current() ) // just for safety
return;
- QCString title = QCString( napp->player()->current().title().local8Bit() );
+ TQCString title = TQCString( napp->player()->current().title().local8Bit() );
if ( title == mLastTitle )
return;
mLastTitle = title;
- QCString timestring = napp->player()->lengthString().local8Bit();
+ TQCString timestring = napp->player()->lengthString().local8Bit();
timestring = timestring.mid(timestring.find('/')+1);
prepareString ( title + " (" + timestring + ") ");
}
-QString KJFilename::tip()
+TQString KJFilename::tip()
{
if ( !napp->player()->current() ) // just for safety
return i18n("Filename");
@@ -184,7 +184,7 @@ QString KJFilename::tip()
* KJTime
*******************************************/
-KJTime::KJTime(const QStringList &l, KJLoader *p)
+KJTime::KJTime(const TQStringList &l, KJLoader *p)
: KJWidget(p), mBack(0)
{
int x = l[1].toInt();
@@ -204,8 +204,8 @@ KJTime::KJTime(const QStringList &l, KJLoader *p)
xs = maxNeededWidth;
// background under time-display
- QPixmap tmp = p->pixmap(p->item("backgroundimage")[1]);
- mBack = new KPixmap ( QSize(xs,ys) );
+ TQPixmap tmp = p->pixmap(p->item("backgroundimage")[1]);
+ mBack = new KPixmap ( TQSize(xs,ys) );
bitBlt( mBack, 0, 0, &tmp, x, y, xs, ys, Qt::CopyROP );
setRect(x,y,xs,ys);
@@ -220,10 +220,10 @@ KJTime::~KJTime()
delete mBack;
}
-void KJTime::paint(QPainter *p, const QRect &)
+void KJTime::paint(TQPainter *p, const TQRect &)
{
-// kdDebug(66666) << "KJTime::paint(QPainter *p, const QRect &)" << endl;
- QPixmap temp ( rect().width(), rect().height() );
+// kdDebug(66666) << "KJTime::paint(TQPainter *p, const TQRect &)" << endl;
+ TQPixmap temp ( rect().width(), rect().height() );
// draw background into buffer
bitBlt ( &temp, 0, 0, mBack, 0, 0, -1, -1, Qt::CopyROP );
@@ -232,15 +232,15 @@ void KJTime::paint(QPainter *p, const QRect &)
// and draw it on screen
bitBlt(p->device(), rect().topLeft(), &temp,
- QRect(0,0, rect().width(), rect().height()), Qt::CopyROP);
+ TQRect(0,0, rect().width(), rect().height()), Qt::CopyROP);
}
-bool KJTime::mousePress(const QPoint &)
+bool KJTime::mousePress(const TQPoint &)
{
return true;
}
-void KJTime::mouseRelease(const QPoint &, bool in)
+void KJTime::mouseRelease(const TQPoint &, bool in)
{
if (!in) // only do something if users is still inside the button
return;
@@ -258,10 +258,10 @@ void KJTime::readConfig()
mLastTime=""; // invalidate time so it gets repainted on next timeUpdate()
}
-QString KJTime::lengthString ( void )
+TQString KJTime::lengthString ( void )
{
int pos = 0;
- QString posString;
+ TQString posString;
int secs = 0,
seconds = 0,
minutes = 0,
@@ -316,9 +316,9 @@ void KJTime::timeUpdate(int)
// kdDebug(66666) << "END KJTime::timeUpdate(int)" << endl;
}
-void KJTime::prepareString(const QCString &str)
+void KJTime::prepareString(const TQCString &str)
{
-// kdDebug(66666) << "START KJTime::prepareString(const QCString &str)" << endl;
+// kdDebug(66666) << "START KJTime::prepareString(const TQCString &str)" << endl;
if ( str == mLastTime )
return;
@@ -326,10 +326,10 @@ void KJTime::prepareString(const QCString &str)
mTime = timeFont().draw(str, rect().width());
repaint();
-// kdDebug(66666) << "END KJTime::prepareString(const QCString &str)" << endl;
+// kdDebug(66666) << "END KJTime::prepareString(const TQCString &str)" << endl;
}
-QString KJTime::tip()
+TQString KJTime::tip()
{
if ( countDown )
return i18n("Play time left");
@@ -342,7 +342,7 @@ QString KJTime::tip()
* KJVolumeText
*******************************************/
-KJVolumeText::KJVolumeText(const QStringList &l, KJLoader *p)
+KJVolumeText::KJVolumeText(const TQStringList &l, KJLoader *p)
: KJWidget(p), mBack(0)
{
int x=l[1].toInt();
@@ -362,8 +362,8 @@ KJVolumeText::KJVolumeText(const QStringList &l, KJLoader *p)
xs = tempWidth;
// background under volumetext-display
- QPixmap tmp = p->pixmap(p->item("backgroundimage")[1]);
- mBack = new KPixmap ( QSize(xs,ys) );
+ TQPixmap tmp = p->pixmap(p->item("backgroundimage")[1]);
+ mBack = new KPixmap ( TQSize(xs,ys) );
bitBlt( mBack, 0, 0, &tmp, x, y, xs, ys, Qt::CopyROP );
setRect(x,y,xs,ys);
@@ -376,9 +376,9 @@ KJVolumeText::~KJVolumeText()
delete mBack;
}
-void KJVolumeText::paint(QPainter *p, const QRect &)
+void KJVolumeText::paint(TQPainter *p, const TQRect &)
{
- QPixmap temp ( rect().width(), rect().height() );
+ TQPixmap temp ( rect().width(), rect().height() );
// draw background into buffer
bitBlt ( &temp, 0, 0, mBack, 0, 0, -1, -1, Qt::CopyROP );
@@ -387,10 +387,10 @@ void KJVolumeText::paint(QPainter *p, const QRect &)
// and draw it on screen
bitBlt(p->device(), rect().topLeft(), &temp,
- QRect(0,0,-1,-1), Qt::CopyROP);
+ TQRect(0,0,-1,-1), Qt::CopyROP);
}
-bool KJVolumeText::mousePress(const QPoint &)
+bool KJVolumeText::mousePress(const TQPoint &)
{
return false;
}
@@ -403,7 +403,7 @@ void KJVolumeText::readConfig()
void KJVolumeText::timeUpdate(int)
{
- QCString volume;
+ TQCString volume;
if (!napp->player()->current())
return;
@@ -413,7 +413,7 @@ void KJVolumeText::timeUpdate(int)
prepareString(volume);
}
-void KJVolumeText::prepareString(const QCString &str)
+void KJVolumeText::prepareString(const TQCString &str)
{
if ( str == mLastVolume )
return;
@@ -424,7 +424,7 @@ void KJVolumeText::prepareString(const QCString &str)
repaint();
}
-QString KJVolumeText::tip()
+TQString KJVolumeText::tip()
{
return i18n("Volume");
}
@@ -434,7 +434,7 @@ QString KJVolumeText::tip()
* KJPitchText
*******************************************/
-KJPitchText::KJPitchText(const QStringList &l, KJLoader *p)
+KJPitchText::KJPitchText(const TQStringList &l, KJLoader *p)
: KJWidget(p), mBack(0)
{
int x = l[1].toInt();
@@ -452,8 +452,8 @@ KJPitchText::KJPitchText(const QStringList &l, KJLoader *p)
xs = tempWidth;
// background under time-display
- QPixmap tmp = p->pixmap(p->item("backgroundimage")[1]);
- mBack = new KPixmap ( QSize(xs,ys) );
+ TQPixmap tmp = p->pixmap(p->item("backgroundimage")[1]);
+ mBack = new KPixmap ( TQSize(xs,ys) );
bitBlt( mBack, 0, 0, &tmp, x, y, xs, ys, Qt::CopyROP );
setRect(x,y,xs,ys);
@@ -467,24 +467,24 @@ KJPitchText::~KJPitchText()
}
-void KJPitchText::paint(QPainter *p, const QRect &)
+void KJPitchText::paint(TQPainter *p, const TQRect &)
{
- QPixmap temp ( rect().width(), rect().height() );
+ TQPixmap temp ( rect().width(), rect().height() );
// draw background into buffer
bitBlt ( &temp, 0, 0, mBack, 0, 0, -1, -1, Qt::CopyROP );
// draw time-display into buffer
bitBlt( &temp, 0, 0, &mSpeed, 0, 0, rect().width(), rect().height(), Qt::CopyROP);
// and draw it on screen
- bitBlt(p->device(), rect().topLeft(), &temp, QRect(0,0,-1,-1), Qt::CopyROP);
+ bitBlt(p->device(), rect().topLeft(), &temp, TQRect(0,0,-1,-1), Qt::CopyROP);
}
-bool KJPitchText::mousePress(const QPoint &)
+bool KJPitchText::mousePress(const TQPoint &)
{
return true;
}
-void KJPitchText::mouseRelease(const QPoint &, bool in)
+void KJPitchText::mouseRelease(const TQPoint &, bool in)
{
if (!in)
return;
@@ -506,7 +506,7 @@ void KJPitchText::readConfig()
void KJPitchText::timeUpdate(int)
{
- QCString speed;
+ TQCString speed;
if (!napp->player()->current())
return;
@@ -521,7 +521,7 @@ void KJPitchText::timeUpdate(int)
prepareString ( speed );
}
-void KJPitchText::prepareString(const QCString &str)
+void KJPitchText::prepareString(const TQCString &str)
{
if ( str == mLastPitch )
return;
@@ -532,7 +532,7 @@ void KJPitchText::prepareString(const QCString &str)
repaint();
}
-QString KJPitchText::tip()
+TQString KJPitchText::tip()
{
return i18n("Pitch");
}
@@ -542,7 +542,7 @@ QString KJPitchText::tip()
* KJFileInfo
*******************************************/
-KJFileInfo::KJFileInfo(const QStringList &l, KJLoader *p)
+KJFileInfo::KJFileInfo(const TQStringList &l, KJLoader *p)
: KJWidget(p), mBack(0)
{
mInfoType = l[0]; // type of info-display
@@ -564,8 +564,8 @@ KJFileInfo::KJFileInfo(const QStringList &l, KJLoader *p)
xs = maxNeededWidth;
// background under info-display
- QPixmap tmp = p->pixmap(p->item("backgroundimage")[1]);
- mBack = new KPixmap ( QSize(xs,ys) );
+ TQPixmap tmp = p->pixmap(p->item("backgroundimage")[1]);
+ mBack = new KPixmap ( TQSize(xs,ys) );
bitBlt( mBack, 0, 0, &tmp, x, y, xs, ys, Qt::CopyROP );
setRect(x,y,xs,ys);
@@ -578,9 +578,9 @@ KJFileInfo::~KJFileInfo()
delete mBack;
}
-void KJFileInfo::paint(QPainter *p, const QRect &)
+void KJFileInfo::paint(TQPainter *p, const TQRect &)
{
- QPixmap temp ( rect().width(), rect().height() );
+ TQPixmap temp ( rect().width(), rect().height() );
// draw background into buffer
bitBlt ( &temp, 0, 0, mBack, 0, 0, -1, -1, Qt::CopyROP );
@@ -589,10 +589,10 @@ void KJFileInfo::paint(QPainter *p, const QRect &)
// and draw it on screen
bitBlt(p->device(), rect().topLeft(), &temp,
- QRect(0,0, rect().width(), rect().height()), Qt::CopyROP);
+ TQRect(0,0, rect().width(), rect().height()), Qt::CopyROP);
}
-bool KJFileInfo::mousePress(const QPoint &)
+bool KJFileInfo::mousePress(const TQPoint &)
{
return false;
}
@@ -609,7 +609,7 @@ void KJFileInfo::timeUpdate(int)
return;
const PlaylistItem &item = napp->player()->current();
- QString prop;
+ TQString prop;
if ( mInfoType == "mp3khzwindow" )
{
@@ -628,7 +628,7 @@ void KJFileInfo::timeUpdate(int)
prepareString( prop.latin1() );
}
-void KJFileInfo::prepareString(const QCString &str)
+void KJFileInfo::prepareString(const TQCString &str)
{
if ( str == mLastTime )
return;
@@ -637,14 +637,14 @@ void KJFileInfo::prepareString(const QCString &str)
repaint();
}
-QString KJFileInfo::tip()
+TQString KJFileInfo::tip()
{
if ( mInfoType == "mp3khzwindow" )
return i18n("Sample rate in kHz");
else if ( mInfoType == "mp3kbpswindow" )
return i18n("Bitrate in kbps");
- return QString();
+ return TQString();
}
#include "kjtextdisplay.moc"