From 1d077caf68127ab1a5518df84cc5592a1b47a965 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 14 Aug 2011 05:14:51 +0000 Subject: TQt4 port kdeartwork This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeartwork@1246991 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kscreensaver/kdesavers/Euphoria.cpp | 24 +-- kscreensaver/kdesavers/Euphoria.h | 5 +- kscreensaver/kdesavers/Flux.cpp | 16 +- kscreensaver/kdesavers/Flux.h | 5 +- kscreensaver/kdesavers/SolarWinds.cpp | 16 +- kscreensaver/kdesavers/SolarWinds.h | 5 +- kscreensaver/kdesavers/banner.cpp | 18 +- kscreensaver/kdesavers/banner.h | 14 +- kscreensaver/kdesavers/blob.cpp | 4 +- kscreensaver/kdesavers/blob.h | 4 +- kscreensaver/kdesavers/firesaver.ChangeLog | 2 +- kscreensaver/kdesavers/firesaver.cpp | 14 +- kscreensaver/kdesavers/firesaver.h | 6 +- kscreensaver/kdesavers/firesaversetup.ui | 258 ++++++++++++++--------------- kscreensaver/kdesavers/firesaversetup.ui.h | 12 +- kscreensaver/kdesavers/firesaverwriter.cpp | 6 +- kscreensaver/kdesavers/fountain.cpp | 20 +-- kscreensaver/kdesavers/fountain.h | 7 +- kscreensaver/kdesavers/fountaincfg.ui | 28 ++-- kscreensaver/kdesavers/gravity.cpp | 16 +- kscreensaver/kdesavers/gravity.h | 7 +- kscreensaver/kdesavers/gravitycfg.ui | 28 ++-- kscreensaver/kdesavers/kclock.cpp | 38 ++--- kscreensaver/kdesavers/kclock.h | 8 +- kscreensaver/kdesavers/kvm.cpp | 10 +- kscreensaver/kdesavers/kvm.h | 2 + kscreensaver/kdesavers/lines.cpp | 6 +- kscreensaver/kdesavers/lines.h | 2 + kscreensaver/kdesavers/lorenz.cpp | 12 +- kscreensaver/kdesavers/lorenz.h | 2 + kscreensaver/kdesavers/pendulum.cpp | 32 ++-- kscreensaver/kdesavers/pendulum.h | 11 +- kscreensaver/kdesavers/pendulumcfg.ui | 108 ++++++------ kscreensaver/kdesavers/polygon.cpp | 10 +- kscreensaver/kdesavers/polygon.h | 6 +- kscreensaver/kdesavers/rotation.cpp | 16 +- kscreensaver/kdesavers/rotation.h | 11 +- kscreensaver/kdesavers/rotationcfg.ui | 76 ++++----- kscreensaver/kdesavers/science.cpp | 12 +- kscreensaver/kdesavers/science.h | 5 +- kscreensaver/kdesavers/slideshow.cpp | 50 +++--- kscreensaver/kdesavers/slideshow.h | 4 +- kscreensaver/kdesavers/slideshowcfg.ui | 24 +-- kscreensaver/kdesavers/sspreviewarea.h | 5 +- kscreensaver/kdesavers/wave.cpp | 12 +- kscreensaver/kdesavers/wave.h | 7 +- kscreensaver/kdesavers/wavecfg.ui | 28 ++-- 47 files changed, 528 insertions(+), 484 deletions(-) (limited to 'kscreensaver/kdesavers') diff --git a/kscreensaver/kdesavers/Euphoria.cpp b/kscreensaver/kdesavers/Euphoria.cpp index 8fc5811d..199d339d 100644 --- a/kscreensaver/kdesavers/Euphoria.cpp +++ b/kscreensaver/kdesavers/Euphoria.cpp @@ -638,15 +638,15 @@ void EuphoriaWidget::initializeGL() #ifdef UNIT_TEST void EuphoriaWidget::keyPressEvent( TQKeyEvent* e ) { - if( e->key() == Qt::Key_0 ) { setDefaults( 0 ); updateParameters(); } - if( e->key() == Qt::Key_1 ) { setDefaults( 1 ); updateParameters(); } - if( e->key() == Qt::Key_2 ) { setDefaults( 2 ); updateParameters(); } - if( e->key() == Qt::Key_3 ) { setDefaults( 3 ); updateParameters(); } - if( e->key() == Qt::Key_4 ) { setDefaults( 4 ); updateParameters(); } - if( e->key() == Qt::Key_5 ) { setDefaults( 5 ); updateParameters(); } - if( e->key() == Qt::Key_6 ) { setDefaults( 6 ); updateParameters(); } - if( e->key() == Qt::Key_7 ) { setDefaults( 7 ); updateParameters(); } - if( e->key() == Qt::Key_8 ) { setDefaults( 8 ); updateParameters(); } + if( e->key() == TQt::Key_0 ) { setDefaults( 0 ); updateParameters(); } + if( e->key() == TQt::Key_1 ) { setDefaults( 1 ); updateParameters(); } + if( e->key() == TQt::Key_2 ) { setDefaults( 2 ); updateParameters(); } + if( e->key() == TQt::Key_3 ) { setDefaults( 3 ); updateParameters(); } + if( e->key() == TQt::Key_4 ) { setDefaults( 4 ); updateParameters(); } + if( e->key() == TQt::Key_5 ) { setDefaults( 5 ); updateParameters(); } + if( e->key() == TQt::Key_6 ) { setDefaults( 6 ); updateParameters(); } + if( e->key() == TQt::Key_7 ) { setDefaults( 7 ); updateParameters(); } + if( e->key() == TQt::Key_8 ) { setDefaults( 8 ); updateParameters(); } } #endif @@ -1024,7 +1024,7 @@ KEuphoriaSetup::KEuphoriaSetup( TQWidget* parent, const char* name ) modeW->setCurrentItem( _saver->mode() ); // set before we connect connect( modeW, TQT_SIGNAL(activated(int)), _saver, TQT_SLOT(setMode(int)) ); - setMinimumSize( sizeHint() ); + setMinimumSize( tqsizeHint() ); } @@ -1038,7 +1038,7 @@ void KEuphoriaSetup::slotHelp() { KMessageBox::about(this, i18n("

Euphoria 1.0

\n

Copyright (c) 2002 Terence M. Welsh
\nhttp://www.reallyslick.com/

\n\n

Ported to KDE by Karl Robillard

"), - TQString::null, KMessageBox::AllowLink); + TQString(), KMessageBox::AllowLink); } @@ -1062,7 +1062,7 @@ void KEuphoriaSetup::slotOk() #ifdef UNIT_TEST -// moc Euphoria.h -o Euphoria.moc +// tqmoc Euphoria.h -o Euphoria.tqmoc // g++ -g -DUNIT_TEST Euphoria.cpp -I/usr/lib/qt3/include -lqt -L/usr/lib/qt3/lib -lGLU -lGL #include diff --git a/kscreensaver/kdesavers/Euphoria.h b/kscreensaver/kdesavers/Euphoria.h index b0ec94c5..ba50c9d3 100644 --- a/kscreensaver/kdesavers/Euphoria.h +++ b/kscreensaver/kdesavers/Euphoria.h @@ -17,9 +17,10 @@ class wisp; class TQTimer; -class EuphoriaWidget : public QGLWidget +class EuphoriaWidget : public TQGLWidget { Q_OBJECT + TQ_OBJECT public: @@ -111,6 +112,7 @@ private: class KEuphoriaScreenSaver : public KScreenSaver { Q_OBJECT + TQ_OBJECT public: @@ -137,6 +139,7 @@ class TQComboBox; class KEuphoriaSetup : public KDialogBase { Q_OBJECT + TQ_OBJECT public: KEuphoriaSetup( TQWidget* parent = 0, const char* name = 0 ); diff --git a/kscreensaver/kdesavers/Flux.cpp b/kscreensaver/kdesavers/Flux.cpp index c38b6627..d04a6d3d 100644 --- a/kscreensaver/kdesavers/Flux.cpp +++ b/kscreensaver/kdesavers/Flux.cpp @@ -546,12 +546,12 @@ void FluxWidget::initializeGL() #ifdef UNIT_TEST void FluxWidget::keyPressEvent( TQKeyEvent* e ) { - if( e->key() == Qt::Key_0 ) { setDefaults( 0 ); updateParameters(); } - if( e->key() == Qt::Key_1 ) { setDefaults( 1 ); updateParameters(); } - if( e->key() == Qt::Key_2 ) { setDefaults( 2 ); updateParameters(); } - if( e->key() == Qt::Key_3 ) { setDefaults( 3 ); updateParameters(); } - if( e->key() == Qt::Key_4 ) { setDefaults( 4 ); updateParameters(); } - if( e->key() == Qt::Key_5 ) { setDefaults( 5 ); updateParameters(); } + if( e->key() == TQt::Key_0 ) { setDefaults( 0 ); updateParameters(); } + if( e->key() == TQt::Key_1 ) { setDefaults( 1 ); updateParameters(); } + if( e->key() == TQt::Key_2 ) { setDefaults( 2 ); updateParameters(); } + if( e->key() == TQt::Key_3 ) { setDefaults( 3 ); updateParameters(); } + if( e->key() == TQt::Key_4 ) { setDefaults( 4 ); updateParameters(); } + if( e->key() == TQt::Key_5 ) { setDefaults( 5 ); updateParameters(); } } #endif @@ -919,7 +919,7 @@ void KFluxSetup::slotHelp() { KMessageBox::about(this, i18n("

Flux 1.0

\n

Copyright (c) 2002 Terence M. Welsh
\nhttp://www.reallyslick.com/

\n\n

Ported to KDE by Karl Robillard

"), - TQString::null, KMessageBox::AllowLink); + TQString(), KMessageBox::AllowLink); } @@ -945,7 +945,7 @@ void KFluxSetup::slotOk() #ifdef UNIT_TEST -// moc Flux.h -o Flux.moc +// tqmoc Flux.h -o Flux.tqmoc // g++ -g -DUNIT_TEST Flux.cpp -I/usr/lib/qt3/include -lqt -L/usr/lib/qt3/lib -lGLU -lGL #include diff --git a/kscreensaver/kdesavers/Flux.h b/kscreensaver/kdesavers/Flux.h index 5f0cd64e..eb921fb0 100644 --- a/kscreensaver/kdesavers/Flux.h +++ b/kscreensaver/kdesavers/Flux.h @@ -20,9 +20,10 @@ class flux; class particle; class TQTimer; -class FluxWidget : public QGLWidget +class FluxWidget : public TQGLWidget { Q_OBJECT + TQ_OBJECT public: @@ -99,6 +100,7 @@ private: class KFluxScreenSaver : public KScreenSaver { Q_OBJECT + TQ_OBJECT public: @@ -125,6 +127,7 @@ class TQComboBox; class KFluxSetup : public KDialogBase { Q_OBJECT + TQ_OBJECT public: diff --git a/kscreensaver/kdesavers/SolarWinds.cpp b/kscreensaver/kdesavers/SolarWinds.cpp index ea3e916a..ee3229f2 100644 --- a/kscreensaver/kdesavers/SolarWinds.cpp +++ b/kscreensaver/kdesavers/SolarWinds.cpp @@ -399,12 +399,12 @@ void SWindsWidget::initializeGL() #ifdef UNIT_TEST void SWindsWidget::keyPressEvent( TQKeyEvent* e ) { - if( e->key() == Qt::Key_0 ) { setDefaults( 0 ); updateParameters(); } - if( e->key() == Qt::Key_1 ) { setDefaults( 1 ); updateParameters(); } - if( e->key() == Qt::Key_2 ) { setDefaults( 2 ); updateParameters(); } - if( e->key() == Qt::Key_3 ) { setDefaults( 3 ); updateParameters(); } - if( e->key() == Qt::Key_4 ) { setDefaults( 4 ); updateParameters(); } - if( e->key() == Qt::Key_5 ) { setDefaults( 5 ); updateParameters(); } + if( e->key() == TQt::Key_0 ) { setDefaults( 0 ); updateParameters(); } + if( e->key() == TQt::Key_1 ) { setDefaults( 1 ); updateParameters(); } + if( e->key() == TQt::Key_2 ) { setDefaults( 2 ); updateParameters(); } + if( e->key() == TQt::Key_3 ) { setDefaults( 3 ); updateParameters(); } + if( e->key() == TQt::Key_4 ) { setDefaults( 4 ); updateParameters(); } + if( e->key() == TQt::Key_5 ) { setDefaults( 5 ); updateParameters(); } } #endif @@ -731,7 +731,7 @@ void KSWindsSetup::slotHelp() { KMessageBox::about(this, i18n("

Solar Winds 1.0

\n

Copyright (c) 2002 Terence M. Welsh
\nhttp://www.reallyslick.com/

\n\n

Ported to KDE by Karl Robillard

"), - TQString::null, KMessageBox::AllowLink); + TQString(), KMessageBox::AllowLink); } @@ -757,7 +757,7 @@ void KSWindsSetup::slotOk() #ifdef UNIT_TEST -// moc SolarWinds.h -o SolarWinds.moc +// tqmoc SolarWinds.h -o SolarWinds.tqmoc // g++ -g -DUNIT_TEST SolarWinds.cpp -I/usr/lib/qt3/include -lqt -L/usr/lib/qt3/lib -lGLU -lGL #include diff --git a/kscreensaver/kdesavers/SolarWinds.h b/kscreensaver/kdesavers/SolarWinds.h index e98252e1..70da2bd4 100644 --- a/kscreensaver/kdesavers/SolarWinds.h +++ b/kscreensaver/kdesavers/SolarWinds.h @@ -19,9 +19,10 @@ class wind; class TQTimer; -class SWindsWidget : public QGLWidget +class SWindsWidget : public TQGLWidget { Q_OBJECT + TQ_OBJECT public: @@ -90,6 +91,7 @@ private: class KSWindsScreenSaver : public KScreenSaver { Q_OBJECT + TQ_OBJECT public: @@ -116,6 +118,7 @@ class TQComboBox; class KSWindsSetup : public KDialogBase { Q_OBJECT + TQ_OBJECT public: diff --git a/kscreensaver/kdesavers/banner.cpp b/kscreensaver/kdesavers/banner.cpp index f33a7ca0..e49ca556 100644 --- a/kscreensaver/kdesavers/banner.cpp +++ b/kscreensaver/kdesavers/banner.cpp @@ -4,7 +4,7 @@ // // Copyright (c) Martin R. Jones 1996 // -// layout management added 1998/04/19 by Mario Weilguni +// tqlayout management added 1998/04/19 by Mario Weilguni // clock function and color cycling added 2000/01/09 by Alexander Neundorf // 2001/03/04 Converted to use libkscreensaver by Martin R. Jones // 2002/04/07 Added random vertical position of text, @@ -74,13 +74,13 @@ KBannerSetup::KBannerSetup( TQWidget *parent, const char *name ) TQVBoxLayout *tl11 = new TQVBoxLayout( 0, 0, spacingHint() ); tl1->addLayout(tl11); - TQGroupBox *group = new TQGroupBox( 0, Vertical, i18n("Font"), main ); - TQGridLayout *gl = new TQGridLayout(group->layout(), 6, 2, spacingHint() ); + TQGroupBox *group = new TQGroupBox( 0,Qt::Vertical, i18n("Font"), main ); + TQGridLayout *gl = new TQGridLayout(group->tqlayout(), 6, 2, spacingHint() ); label = new TQLabel( i18n("Family:"), group ); gl->addWidget(label, 1, 0); - KFontCombo* comboFonts = new KFontCombo( TQFontDatabase().families(), group ); + KFontCombo* comboFonts = new KFontCombo( TQFontDatabase().tqfamilies(), group ); comboFonts->setCurrentFont( fontFamily ); gl->addWidget(comboFonts, 1, 1); connect( comboFonts, TQT_SIGNAL( activated( const TQString& ) ), @@ -116,7 +116,7 @@ KBannerSetup::KBannerSetup( TQWidget *parent, const char *name ) TQT_SLOT( slotColor(const TQColor &) ) ); TQCheckBox *cyclingColorCb=new TQCheckBox(i18n("Cycling color"),group); - cyclingColorCb->setMinimumSize(cyclingColorCb->sizeHint()); + cyclingColorCb->setMinimumSize(cyclingColorCb->tqsizeHint()); gl->addMultiCellWidget(cyclingColorCb,5,5,0,1); connect(cyclingColorCb,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotCyclingColor(bool))); cyclingColorCb->setChecked(cyclingColor); @@ -134,7 +134,7 @@ KBannerSetup::KBannerSetup( TQWidget *parent, const char *name ) tl11->addStretch(1); tl11->addWidget(label); - TQSlider *sb = new TQSlider(0, 100, 10, speed, TQSlider::Horizontal, main ); + TQSlider *sb = new TQSlider(0, 100, 10, speed, Qt::Horizontal, main ); sb->setMinimumWidth( 180); sb->setFixedHeight(20); sb->setTickmarks(TQSlider::Below); @@ -155,8 +155,8 @@ KBannerSetup::KBannerSetup( TQWidget *parent, const char *name ) TQT_SLOT( slotMessage( const TQString & ) ) ); TQCheckBox *timeCb=new TQCheckBox( i18n("Show current time"), main); - timeCb->setFixedSize(timeCb->sizeHint()); - tl->addWidget(timeCb,0,Qt::AlignLeft); + timeCb->setFixedSize(timeCb->tqsizeHint()); + tl->addWidget(timeCb,0,TQt::AlignLeft); connect(timeCb,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotTimeToggled(bool))); timeCb->setChecked(showTime); @@ -191,7 +191,7 @@ void KBannerSetup::fillFontSizes() comboSizes->blockSignals( true ); comboSizes->clear(); int i = 0; - sizes = TQFontDatabase().pointSizes( fontFamily ); + sizes = TQFontDatabase().tqpointSizes( fontFamily ); sizes << 96 << 128 << 156 << 0; int current = 0; while ( sizes[i] ) diff --git a/kscreensaver/kdesavers/banner.h b/kscreensaver/kdesavers/banner.h index 57309787..73dac562 100644 --- a/kscreensaver/kdesavers/banner.h +++ b/kscreensaver/kdesavers/banner.h @@ -23,6 +23,7 @@ class KRandomSequence; class KBannerSaver : public KScreenSaver { Q_OBJECT + TQ_OBJECT public: KBannerSaver( WId id ); virtual ~KBannerSaver(); @@ -44,30 +45,31 @@ protected slots: protected: TQFont font; - QTimer timer; - QString fontFamily; + TQTimer timer; + TQString fontFamily; int fontSize; bool bold; bool italic; - QColor fontColor; + TQColor fontColor; bool cyclingColor; int currentHue; bool needUpdate; bool needBlank; - QString message; + TQString message; bool showTime; int xpos, ypos, step, fsize; KRandomSequence *krnd; int speed; int colorContext; - QPixmap pixmap; - QSize pixmapSize; + TQPixmap pixmap; + TQSize pixmapSize; }; class KBannerSetup : public KDialogBase { Q_OBJECT + TQ_OBJECT public: KBannerSetup( TQWidget *parent = NULL, const char *name = NULL ); diff --git a/kscreensaver/kdesavers/blob.cpp b/kscreensaver/kdesavers/blob.cpp index c8860781..4877866e 100644 --- a/kscreensaver/kdesavers/blob.cpp +++ b/kscreensaver/kdesavers/blob.cpp @@ -369,7 +369,7 @@ void KBlobSaver::box ( int x, int y ) y = 0; // get the box region from the display to upgrade - TQImage img = TQPixmap::grabWindow(winId(), x, y, dim, dim).convertToImage(); + TQImage img = TQPixmap(TQPixmap::grabWindow(winId(), x, y, dim, dim)).convertToImage(); // depending on the depth of the display, use either lookup table for // next rgb val ( 8-bit ) or ramp the color directly for other displays @@ -392,7 +392,7 @@ void KBlobSaver::box ( int x, int y ) { for (int i = 0; i < img.width(); i++) { - QRgb p = img.pixel( i, j ); + TQRgb p = img.pixel( i, j ); p += (colorInc<<18); img.setPixel( i, j, p ); } diff --git a/kscreensaver/kdesavers/blob.h b/kscreensaver/kdesavers/blob.h index 2ef4bcf6..123a4855 100644 --- a/kscreensaver/kdesavers/blob.h +++ b/kscreensaver/kdesavers/blob.h @@ -28,6 +28,7 @@ enum blob_alg { class KBlobSaver : public KScreenSaver { Q_OBJECT + TQ_OBJECT public: KBlobSaver( WId id ); @@ -53,7 +54,7 @@ public: }; private: - QTimer timer; + TQTimer timer; uint colors[RAMP]; uint lookup[256]; int colorContext, colorInc; @@ -93,6 +94,7 @@ class KIntNumInput; class KBlobSetup : public KDialogBase { Q_OBJECT + TQ_OBJECT int showtime; int alg; diff --git a/kscreensaver/kdesavers/firesaver.ChangeLog b/kscreensaver/kdesavers/firesaver.ChangeLog index 98749856..2d3792bd 100644 --- a/kscreensaver/kdesavers/firesaver.ChangeLog +++ b/kscreensaver/kdesavers/firesaver.ChangeLog @@ -95,7 +95,7 @@ 2004-01-28 Enrico Ros * firesaverparticle.cpp: keep a particle independent from the - 'shape' of the firework it belongs to. Added depth (level) of + 'tqshape' of the firework it belongs to. Added depth (level) of explosion (normal particles reach level 1, splitters reach 2). * name syntax: converted filenames to match the style of the ones diff --git a/kscreensaver/kdesavers/firesaver.cpp b/kscreensaver/kdesavers/firesaver.cpp index c8b605fc..3695acb8 100644 --- a/kscreensaver/kdesavers/firesaver.cpp +++ b/kscreensaver/kdesavers/firesaver.cpp @@ -479,7 +479,7 @@ void KFireSaver :: paintGL () glBegin( GL_QUADS ); flashedScreen = true; } - // generating children and removing parent + // generating tqchildren and removing parent int elementIndex = particleList.at(); explodeFirework(particle); particleList.remove(elementIndex); @@ -907,8 +907,8 @@ void KFireSaver :: burnLogo(TQImage * image) { for (int x=0 ; xpixel(x,y); - if ( qAlpha(pixel) < 250 ) + TQRgb pixel = image->pixel(x,y); + if ( tqAlpha(pixel) < 250 ) continue; //if ( DRAND > 0.9 ) // continue; @@ -924,9 +924,9 @@ void KFireSaver :: burnLogo(TQImage * image) particle->xspeed = xI * speed + speedXOffs; particle->zspeed = yI * speed + speedYOffs; - particle->colour[0] = qRed(pixel) / 255.0f; - particle->colour[1] = qGreen(pixel) / 255.0f; - particle->colour[2] = qBlue(pixel) / 255.0f; + particle->colour[0] = tqRed(pixel) / 255.0f; + particle->colour[1] = tqGreen(pixel) / 255.0f; + particle->colour[2] = tqBlue(pixel) / 255.0f; particleList.append(particle); } @@ -1019,7 +1019,7 @@ void KFireSaver :: readConfig () parameters.particleSize = 5; if ( parameters.enableBottomFire = config.readBoolEntry( "enable-BottomFire", true ) ) { - TQColor blue = Qt::darkBlue; + TQColor blue = TQt::darkBlue; parameters.bottomFireColor = config.readColorEntry( "BottomFireColor", &blue ); } parameters.enableSound = config.readBoolEntry( "enable-Sounds", false ); diff --git a/kscreensaver/kdesavers/firesaver.h b/kscreensaver/kdesavers/firesaver.h index dfc713b0..8a34c5e9 100644 --- a/kscreensaver/kdesavers/firesaver.h +++ b/kscreensaver/kdesavers/firesaver.h @@ -43,7 +43,7 @@ class Particle; class Writer; -class KFireSaver : public QGLWidget +class KFireSaver : public TQGLWidget { public: KFireSaver( TQWidget *parent=0, const char *name=0 ); @@ -99,7 +99,7 @@ class KFireSaver : public QGLWidget KArtsDispatcher artsDispatcher; KArtsServer artsServer; TQPtrList playObjectList; - QString sound_explosion, + TQString sound_explosion, sound_debris; //other stuff @@ -133,7 +133,7 @@ class KFireSaver : public QGLWidget flashOpacity, //effects fadeAmount, megaFlares; - QColor + TQColor bottomFireColor; int colorsCount, colorsT[8], diff --git a/kscreensaver/kdesavers/firesaversetup.ui b/kscreensaver/kdesavers/firesaversetup.ui index 37614afa..5fbadc0c 100644 --- a/kscreensaver/kdesavers/firesaversetup.ui +++ b/kscreensaver/kdesavers/firesaversetup.ui @@ -1,6 +1,6 @@ KFireSaverSetup - + KFireSaverSetup @@ -30,7 +30,7 @@ 0 - + useButton @@ -38,7 +38,7 @@ &Load - + KDE (default) @@ -76,7 +76,7 @@ - + presetLabel @@ -94,21 +94,21 @@ Expanding - + 201 31 - + tabWidget Rounded - + tab @@ -129,7 +129,7 @@ Expanding - + 30 220 @@ -146,16 +146,16 @@ Expanding - + 30 210 - + - layout118 + tqlayout118 @@ -171,24 +171,24 @@ Expanding - + 43 180 - + previewFrame - + 240 180 - + 240 180 @@ -210,7 +210,7 @@ unnamed - + previewLabel @@ -220,7 +220,7 @@ P R E V I E W - + AlignCenter @@ -236,14 +236,14 @@ Expanding - + 30 180 - + detachBox @@ -251,7 +251,7 @@ &Show in separate window - + applyButton @@ -263,7 +263,7 @@ - + tab @@ -274,7 +274,7 @@ unnamed - + layS1 @@ -282,7 +282,7 @@ unnamed - + showLabel1 @@ -298,7 +298,7 @@ Show type: - + Simple Show @@ -333,7 +333,7 @@ Expanding - + 260 21 @@ -342,7 +342,7 @@ - + layS2 @@ -350,7 +350,7 @@ unnamed - + showLabel2 @@ -358,7 +358,7 @@ Number of fireworks: - + showLabel3 @@ -366,7 +366,7 @@ few - + fireworksSlider @@ -394,7 +394,7 @@ Horizontal - + showLabel4 @@ -412,7 +412,7 @@ Expanding - + 125 21 @@ -421,7 +421,7 @@ - + layS2_2 @@ -429,7 +429,7 @@ unnamed - + particlesLabel1 @@ -437,7 +437,7 @@ Size of particles: - + particlesLabel2 @@ -445,7 +445,7 @@ small - + particlesSlider @@ -470,7 +470,7 @@ Horizontal - + particlesLabel3 @@ -488,7 +488,7 @@ Expanding - + 125 21 @@ -497,7 +497,7 @@ - + bottomfireBox @@ -508,7 +508,7 @@ true - + layS3 @@ -526,14 +526,14 @@ Fixed - + 16 20 - + bottomfireLabel1 @@ -562,7 +562,7 @@ Expanding - + 309 21 @@ -571,7 +571,7 @@ - + soundsBox @@ -579,7 +579,7 @@ Enable sounds - + overheadBox @@ -587,7 +587,7 @@ Limit overload (recommended) - + frameskipBox @@ -605,7 +605,7 @@ Expanding - + 31 20 @@ -614,7 +614,7 @@ - + TabPage @@ -635,14 +635,14 @@ Expanding - + 21 0 - + layF2 @@ -650,7 +650,7 @@ unnamed - + whiteBox @@ -658,7 +658,7 @@ Blinding white - + purpleBox @@ -666,7 +666,7 @@ Velvet purple - + seagreenBox @@ -674,7 +674,7 @@ Deep-sea green - + redBox @@ -682,7 +682,7 @@ Deep red - + combosBox @@ -696,7 +696,7 @@ This allow a random creation of fireworks that explodes in 2 colors - + blueBox @@ -714,14 +714,14 @@ Fixed - + 16 80 - + orangeBox @@ -729,7 +729,7 @@ Hot orange - + greenBox @@ -739,7 +739,7 @@ - + colorsLabel1 @@ -747,7 +747,7 @@ Colors - + fireworksLabel1 @@ -755,7 +755,7 @@ Fireworks - + layF1 @@ -763,7 +763,7 @@ unnamed - + fire3Box @@ -774,7 +774,7 @@ try me - + fire6Box @@ -785,7 +785,7 @@ try me - + fire5Box @@ -796,7 +796,7 @@ try me - + fire1Box @@ -807,7 +807,7 @@ try me - + fire2Box @@ -828,14 +828,14 @@ Fixed - + 16 80 - + fire8Box @@ -856,7 +856,7 @@ try me - + fire7Box @@ -867,7 +867,7 @@ try me - + fire4Box @@ -882,7 +882,7 @@ - + TabPage @@ -903,14 +903,14 @@ MinimumExpanding - + 41 20 - + logosBox @@ -927,7 +927,7 @@ Enable images explosion. - + logosFrame @@ -954,14 +954,14 @@ Fixed - + 16 70 - + layP1 @@ -969,7 +969,7 @@ unnamed - + logosIconsBox @@ -983,7 +983,7 @@ Enables random KDE Icons explosions. - + logosTuxBox @@ -1000,7 +1000,7 @@ Enables random Tux explosions. - + logosDetailBox @@ -1014,7 +1014,7 @@ When enabled speeds up logo explosion but reduces quality. - + logosKonquiBox @@ -1030,7 +1030,7 @@ - + layP2 @@ -1038,7 +1038,7 @@ unnamed - + frequencyLabel @@ -1046,7 +1046,7 @@ Frequency: - + neverLabel @@ -1054,7 +1054,7 @@ sometimes - + logosSlider @@ -1079,7 +1079,7 @@ Horizontal - + oftenLabel @@ -1097,7 +1097,7 @@ Expanding - + 91 21 @@ -1108,7 +1108,7 @@ - + starsFrame @@ -1135,14 +1135,14 @@ Fixed - + 16 50 - + layP3 @@ -1150,7 +1150,7 @@ unnamed - + starsFlickerBox @@ -1164,7 +1164,7 @@ This option produces a sort of vibration in the lightness of the star. - + starsGradientBox @@ -1180,7 +1180,7 @@ - + layP4 @@ -1188,7 +1188,7 @@ unnamed - + textLabel4_5 @@ -1196,7 +1196,7 @@ Number: - + textLabel3_2_6 @@ -1204,7 +1204,7 @@ less - + starsSlider @@ -1229,7 +1229,7 @@ Horizontal - + textLabel3_2_2_5 @@ -1247,7 +1247,7 @@ Expanding - + 149 21 @@ -1258,7 +1258,7 @@ - + starsBox @@ -1275,7 +1275,7 @@ Enable stars in the sky. - + writingsBox @@ -1294,7 +1294,7 @@ - + TabPage @@ -1305,7 +1305,7 @@ unnamed - + flashBox @@ -1316,7 +1316,7 @@ true - + layE2 @@ -1334,14 +1334,14 @@ Fixed - + 16 20 - + fadeLabel1 @@ -1349,7 +1349,7 @@ Intensity: - + fadeLabel2 @@ -1357,7 +1357,7 @@ small - + fadeSlider @@ -1382,7 +1382,7 @@ Horizontal - + fadeLabel3 @@ -1400,7 +1400,7 @@ Expanding - + 131 21 @@ -1409,7 +1409,7 @@ - + flaresBox @@ -1420,7 +1420,7 @@ true - + layE3 @@ -1438,14 +1438,14 @@ Fixed - + 16 20 - + flaresLabel1 @@ -1453,7 +1453,7 @@ Dimension: - + flaresLabel2 @@ -1461,7 +1461,7 @@ small - + flaresSlider @@ -1486,7 +1486,7 @@ Horizontal - + flaresLabel3 @@ -1504,7 +1504,7 @@ Expanding - + 117 21 @@ -1513,7 +1513,7 @@ - + trailBox @@ -1527,7 +1527,7 @@ not yet ported - + layE1 @@ -1545,14 +1545,14 @@ Fixed - + 16 20 - + flashLabel1 @@ -1560,7 +1560,7 @@ Flash opacity: - + flashLabel2 @@ -1568,7 +1568,7 @@ min - + flashSlider @@ -1593,7 +1593,7 @@ Horizontal - + flashLabel3 @@ -1611,7 +1611,7 @@ Expanding - + 110 21 @@ -1620,7 +1620,7 @@ - + fadeBox @@ -1631,7 +1631,7 @@ true - + lightBox @@ -1655,7 +1655,7 @@ Expanding - + 31 20 @@ -1837,13 +1837,13 @@ KFireSaver * fireSaverWidget; - + applyButton_clicked() updatePreview() writeConfig() readConfig() useButton_clicked() - + init() destroy() diff --git a/kscreensaver/kdesavers/firesaversetup.ui.h b/kscreensaver/kdesavers/firesaversetup.ui.h index 09480126..5602cc6d 100644 --- a/kscreensaver/kdesavers/firesaversetup.ui.h +++ b/kscreensaver/kdesavers/firesaversetup.ui.h @@ -2,7 +2,7 @@ ** ui.h extension file, included from the uic-generated form implementation. ** ** If you wish to add, delete or rename functions or slots use -** Qt Designer which will update this file, preserving your code. Create an +** TQt Designer which will update this file, preserving your code. Create an ** init() function in place of a constructor, and a destroy() function in ** place of a destructor. *****************************************************************************/ @@ -137,7 +137,7 @@ void KFireSaverSetup::readConfig() fireworksSlider->setValue(config.readNumEntry( "FireworksFrequency", 7 )); particlesSlider->setValue(config.readNumEntry( "ParticlesSize", 0 )); bottomfireBox->setChecked(config.readBoolEntry( "enable-BottomFire", true )); - TQColor blue = Qt::darkBlue; + TQColor blue = TQt::darkBlue; bottomfireColorButton->setColor(config.readColorEntry( "BottomFireColor", &blue )); soundsBox->setChecked(config.readBoolEntry( "enable-Sounds", false )); overheadBox->setChecked(config.readBoolEntry( "enable-NoOverhead", true )); @@ -205,7 +205,7 @@ void KFireSaverSetup::useButton_clicked() showCombo->setCurrentItem( 1 ); fireworksSlider->setValue( 7 ); bottomfireBox->setChecked( true ); - bottomfireColorButton->setColor( Qt::darkBlue ); + bottomfireColorButton->setColor( TQt::darkBlue ); frameskipBox->setChecked( true ); fire1Box->setChecked( true ); fire2Box->setChecked( false ); @@ -243,7 +243,7 @@ void KFireSaverSetup::useButton_clicked() case 1: // Elegant white fireworksSlider->setValue( 7 ); bottomfireBox->setChecked( true ); - bottomfireColorButton->setColor( Qt::blue ); + bottomfireColorButton->setColor( TQt::blue ); frameskipBox->setChecked( true ); fire1Box->setChecked( true ); fire2Box->setChecked( false ); @@ -320,7 +320,7 @@ void KFireSaverSetup::useButton_clicked() case 3: //Enhanced reality fireworksSlider->setValue( 8 ); bottomfireBox->setChecked( true ); - bottomfireColorButton->setColor( Qt::magenta ); + bottomfireColorButton->setColor( TQt::magenta ); frameskipBox->setChecked( true ); fire1Box->setChecked( true ); fire2Box->setChecked( true ); @@ -358,7 +358,7 @@ void KFireSaverSetup::useButton_clicked() case 4: //Hypnotic illusions fireworksSlider->setValue( 9 ); bottomfireBox->setChecked( true ); - bottomfireColorButton->setColor( Qt::red ); + bottomfireColorButton->setColor( TQt::red ); frameskipBox->setChecked( true ); fire1Box->setChecked( true ); fire2Box->setChecked( true ); diff --git a/kscreensaver/kdesavers/firesaverwriter.cpp b/kscreensaver/kdesavers/firesaverwriter.cpp index 4f98ae60..82b592d3 100644 --- a/kscreensaver/kdesavers/firesaverwriter.cpp +++ b/kscreensaver/kdesavers/firesaverwriter.cpp @@ -95,9 +95,9 @@ Writer::Writer( TQString descFileName ) return; TQString welcomeString = i18n("Welcome to KDE %1.%2.%3") - .arg(KDE_VERSION_MAJOR) - .arg(KDE_VERSION_MINOR) - .arg(KDE_VERSION_RELEASE); + .tqarg(KDE_VERSION_MAJOR) + .tqarg(KDE_VERSION_MINOR) + .tqarg(KDE_VERSION_RELEASE); spawnWords(welcomeString, Fun1); } diff --git a/kscreensaver/kdesavers/fountain.cpp b/kscreensaver/kdesavers/fountain.cpp index 23d90104..2c208b4c 100644 --- a/kscreensaver/kdesavers/fountain.cpp +++ b/kscreensaver/kdesavers/fountain.cpp @@ -19,7 +19,7 @@ #include #include "fountain.h" #include "fountain.moc" -#ifdef Q_WS_MACX +#ifdef TQ_WS_MACX #include #include #else @@ -218,8 +218,8 @@ Fountain::~Fountain() /** load the particle file */ bool Fountain::loadParticle() { - /* Status indicator */ - bool Status = TRUE; + /* tqStatus indicator */ + bool tqStatus = TRUE; TQImage buf; kdDebug() << "Loading: " << locate("data", "kscreensaver/particle.png") << endl; @@ -232,13 +232,13 @@ bool Fountain::loadParticle() else { TQImage dummy( 32, 32, 32 ); - dummy.fill( Qt::white.rgb() ); + dummy.fill( TQt::white.rgb() ); buf = dummy; tex = convertToGLFormat( buf ); } /* Set the status to true */ - //Status = TRUE; + //tqStatus = TRUE; glGenTextures(1, &texture[0]); /* create three textures */ glBindTexture(GL_TEXTURE_2D, texture[0]); /* use linear filtering */ @@ -250,7 +250,7 @@ bool Fountain::loadParticle() - return Status; + return tqStatus; } /** setup the GL enviroment */ void Fountain::initializeGL () @@ -303,8 +303,8 @@ void Fountain::initializeGL () particle[loop].xi=float((KApplication::random()%50)-26.0f)*10.0f; // Random Speed On X Axis particle[loop].yi=float((KApplication::random()%50)-25.0f)*10.0f; // Random Speed On Y Axis particle[loop].zi=float((KApplication::random()%50)-25.0f)*10.0f; // Random Speed On Z Axis - particle[loop].xg=0.0f; // Set Horizontal Pull To Zero - particle[loop].yg=-0.8f; // Set Vertical Pull Downward + particle[loop].xg=0.0f; // SetQt::Horizontal Pull To Zero + particle[loop].yg=-0.8f; // SetQt::Vertical Pull Downward particle[loop].zg=0.0f; // Set Pull On Z Axis To Zero particle[loop].size=size; // Set particle size. } @@ -424,8 +424,8 @@ void Fountain::paintGL () particle[loop].xi=float((KApplication::random()%50)-26.0f)*10.0f; // Random Speed On X Axis particle[loop].yi=float((KApplication::random()%50)-25.0f)*10.0f; // Random Speed On Y Axis particle[loop].zi=float((KApplication::random()%50)-25.0f)*10.0f; // Random Speed On Z Axis - particle[loop].xg=0.0f; // Set Horizontal Pull To Zero - particle[loop].yg=-0.8f; // Set Vertical Pull Downward + particle[loop].xg=0.0f; // SetQt::Horizontal Pull To Zero + particle[loop].yg=-0.8f; // SetQt::Vertical Pull Downward particle[loop].zg=0.0f; // Set Pull On Z Axis To Zero particle[loop].size=size; // Set particle size. } diff --git a/kscreensaver/kdesavers/fountain.h b/kscreensaver/kdesavers/fountain.h index 1a31f99e..5835e973 100644 --- a/kscreensaver/kdesavers/fountain.h +++ b/kscreensaver/kdesavers/fountain.h @@ -16,7 +16,7 @@ #include #include -#ifdef Q_WS_MACX +#ifdef TQ_WS_MACX #include #include #else @@ -34,9 +34,10 @@ #define MAX_PARTICLES 1000 -class Fountain : public QGLWidget +class Fountain : public TQGLWidget { Q_OBJECT + TQ_OBJECT class particles // Create A Structure For Particle { public: @@ -103,6 +104,7 @@ private: class KFountainSaver : public KScreenSaver { Q_OBJECT + TQ_OBJECT public: KFountainSaver( WId drawable ); virtual ~KFountainSaver(); @@ -120,6 +122,7 @@ private: class KFountainSetup : public SetupUi { Q_OBJECT + TQ_OBJECT public: KFountainSetup( TQWidget *parent = NULL, const char *name = NULL ); diff --git a/kscreensaver/kdesavers/fountaincfg.ui b/kscreensaver/kdesavers/fountaincfg.ui index 94759b2f..f77750aa 100644 --- a/kscreensaver/kdesavers/fountaincfg.ui +++ b/kscreensaver/kdesavers/fountaincfg.ui @@ -1,6 +1,6 @@ SetupUi - + SetupUi @@ -12,7 +12,7 @@ 209 - + 400 209 @@ -37,7 +37,7 @@ 6 - + Layout4 @@ -51,7 +51,7 @@ 6 - + CheckBox1 @@ -59,7 +59,7 @@ Use textures - + PushButton3 @@ -67,7 +67,7 @@ &About - + SpinBox1 @@ -84,7 +84,7 @@ 75 - + PushButton2 @@ -92,7 +92,7 @@ &Cancel - + PushButton1 @@ -103,7 +103,7 @@ true - + GroupBox1 @@ -120,7 +120,7 @@ 6 - + Layout3 @@ -134,7 +134,7 @@ 6 - + RadioButton1 @@ -145,7 +145,7 @@ true - + RadioButton1_2 @@ -157,12 +157,12 @@ - + preview - + TextLabel1 diff --git a/kscreensaver/kdesavers/gravity.cpp b/kscreensaver/kdesavers/gravity.cpp index c8415e49..93ae1660 100644 --- a/kscreensaver/kdesavers/gravity.cpp +++ b/kscreensaver/kdesavers/gravity.cpp @@ -18,7 +18,7 @@ #include #include "gravity.h" #include "gravity.moc" -#ifdef Q_WS_MACX +#ifdef TQ_WS_MACX #include #include #else @@ -61,7 +61,7 @@ KGravitySetup::KGravitySetup( TQWidget *parent, const char *name ) preview->setFixedSize( 220, 170 ); preview->setBackgroundColor( black ); -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 preview->show(); // otherwise saver does not get correct size #endif saver = new KGravitySaver( preview->winId() ); @@ -143,7 +143,7 @@ KGravitySaver::KGravitySaver( WId id ) : KScreenSaver( id ) erase(); gravity = new Gravity(); embed(gravity); -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 gravity->show(); #endif connect( timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(blank()) ); @@ -206,8 +206,8 @@ Gravity::~Gravity() /** load the particle file */ bool Gravity::loadParticle() { - /* Status indicator */ - bool Status = TRUE; + /* tqStatus indicator */ + bool tqStatus = TRUE; TQImage buf; kdDebug() << "Loading: " << locate("data", "kscreensaver/particle.png") << endl; @@ -220,13 +220,13 @@ bool Gravity::loadParticle() else { TQImage dummy( 32, 32, 32 ); - dummy.fill( Qt::white.rgb() ); + dummy.fill( TQt::white.rgb() ); buf = dummy; tex = convertToGLFormat( buf ); } /* Set the status to true */ - //Status = TRUE; + //tqStatus = TRUE; glGenTextures(1, &texture[0]); /* create three textures */ glBindTexture(GL_TEXTURE_2D, texture[0]); /* use linear filtering */ @@ -238,7 +238,7 @@ bool Gravity::loadParticle() - return Status; + return tqStatus; } /** setup the GL enviroment */ void Gravity::initializeGL () diff --git a/kscreensaver/kdesavers/gravity.h b/kscreensaver/kdesavers/gravity.h index 53d60a25..654d3e32 100644 --- a/kscreensaver/kdesavers/gravity.h +++ b/kscreensaver/kdesavers/gravity.h @@ -16,7 +16,7 @@ #include #include -#ifdef Q_WS_MACX +#ifdef TQ_WS_MACX #include #include #else @@ -34,9 +34,10 @@ #define MAX_PARTICLES 100 -class Gravity : public QGLWidget +class Gravity : public TQGLWidget { Q_OBJECT + TQ_OBJECT class particles // Create A Structure For Particle { public: @@ -101,6 +102,7 @@ private: class KGravitySaver : public KScreenSaver { Q_OBJECT + TQ_OBJECT public: KGravitySaver( WId drawable ); virtual ~KGravitySaver(); @@ -118,6 +120,7 @@ private: class KGravitySetup : public SetupUi { Q_OBJECT + TQ_OBJECT public: KGravitySetup( TQWidget *parent = NULL, const char *name = NULL ); ~KGravitySetup(); diff --git a/kscreensaver/kdesavers/gravitycfg.ui b/kscreensaver/kdesavers/gravitycfg.ui index acdd2c80..062b6e83 100644 --- a/kscreensaver/kdesavers/gravitycfg.ui +++ b/kscreensaver/kdesavers/gravitycfg.ui @@ -1,6 +1,6 @@ SetupUi - + SetupUi @@ -12,7 +12,7 @@ 209 - + 400 209 @@ -37,7 +37,7 @@ 6 - + Layout4 @@ -51,7 +51,7 @@ 6 - + CheckBox1 @@ -59,7 +59,7 @@ Use textures - + PushButton3 @@ -67,7 +67,7 @@ &About - + SpinBox1 @@ -84,7 +84,7 @@ 75 - + PushButton2 @@ -92,7 +92,7 @@ &Cancel - + PushButton1 @@ -103,7 +103,7 @@ true - + GroupBox1 @@ -120,7 +120,7 @@ 6 - + Layout3 @@ -134,7 +134,7 @@ 6 - + RadioButton1 @@ -145,7 +145,7 @@ true - + RadioButton1_2 @@ -157,12 +157,12 @@ - + preview - + TextLabel1 diff --git a/kscreensaver/kdesavers/kclock.cpp b/kscreensaver/kdesavers/kclock.cpp index 5079aa57..5ecea27c 100644 --- a/kscreensaver/kdesavers/kclock.cpp +++ b/kscreensaver/kdesavers/kclock.cpp @@ -84,8 +84,8 @@ KClockSetup::KClockSetup(TQWidget *parent, const char *name) top->addLayout( hbox ); TQGroupBox *colgroup = new TQGroupBox(i18n("Colors"), main); - colgroup->setColumnLayout( 0, Horizontal ); - TQGridLayout *grid = new TQGridLayout( colgroup->layout(), + colgroup->setColumnLayout( 0,Qt::Horizontal ); + TQGridLayout *grid = new TQGridLayout( colgroup->tqlayout(), 5, 2, spacingHint() ); TQLabel *label = new TQLabel(i18n("&Hour-hand:"), colgroup); @@ -143,7 +143,7 @@ KClockSetup::KClockSetup(TQWidget *parent, const char *name) label = new TQLabel( i18n( "Si&ze:" ), main ); top->addWidget( label ); - TQSlider *qs = new TQSlider(0, MAX_CLOCK_SIZE, 1, m_size, Horizontal, main); + TQSlider *qs = new TQSlider(0, MAX_CLOCK_SIZE, 1, m_size,Qt::Horizontal, main); label->setBuddy( qs ); qs->setTickInterval(1); qs->setTickmarks(TQSlider::Below); @@ -153,11 +153,11 @@ KClockSetup::KClockSetup(TQWidget *parent, const char *name) bool rtl = kapp->reverseLayout(); TQHBox *qsscale = new TQHBox(main); label = new TQLabel(i18n("Small"), qsscale); - label->setAlignment(rtl ? AlignRight : AlignLeft); + label->tqsetAlignment(rtl ? AlignRight : AlignLeft); label = new TQLabel(i18n("Medium"), qsscale); - label->setAlignment(AlignHCenter); + label->tqsetAlignment(AlignHCenter); label = new TQLabel(i18n("Big"), qsscale); - label->setAlignment(rtl ? AlignLeft : AlignRight); + label->tqsetAlignment(rtl ? AlignLeft : AlignRight); top->addWidget(qsscale); TQCheckBox *keepCentered = new TQCheckBox(i18n("&Keep clock centered"), main); @@ -183,15 +183,15 @@ void KClockSetup::readSettings() m_size = MAX_CLOCK_SIZE; config->setGroup("Colors"); - TQColor c = Qt::black; + TQColor c = TQt::black; m_bgndColor = config->readColorEntry("Background", &c); - c = Qt::white; + c = TQt::white; m_scaleColor = config->readColorEntry("Scale", &c); m_hourColor = config->readColorEntry("HourHand", &c); m_minColor = config->readColorEntry("MinuteHand", &c); - c = Qt::red; + c = TQt::red; m_secColor = config->readColorEntry("SecondHand", &c); if (m_saver) { @@ -229,7 +229,7 @@ void KClockSetup::slotHelp() "Version 1.0
" "Melchior FRANZ (c) 2003") + "
mfranz@kde.org" - "", TQString::null, KMessageBox::AllowLink); + "", TQString(), KMessageBox::AllowLink); } @@ -296,7 +296,7 @@ KClockPainter::KClockPainter(int width, int height) : m_width(width), m_height(height) { - m_buf = new Q_UINT8[m_width * m_height * 3]; + m_buf = new TQ_UINT8[m_width * m_height * 3]; // build Cartesian coordinate system ranging from -1000 to +1000; // points with positive x and y are in the top right quarter m_matrix[0] = m_width / 2000.0; @@ -324,9 +324,9 @@ void KClockPainter::drawToImage(TQImage *q, int xoffs = 0, int yoffs = 0) { unsigned char *src = (unsigned char *)image(); for (int y = 0; y < m_height; y++) { - QRgb *dest = reinterpret_cast(q->scanLine(y + yoffs)) + xoffs; + TQRgb *dest = reinterpret_cast(q->scanLine(y + yoffs)) + xoffs; for (int x = 0; x < m_width; x++, src += 3) - *dest++ = qRgba(src[0], src[1], src[2], 255); + *dest++ = tqRgba(src[0], src[1], src[2], 255); } } @@ -441,7 +441,7 @@ KClockSaver::~KClockSaver() void KClockSaver::start(int size) { - m_diameter = int(QMIN(width(), height()) * (size + 4) / 14.0); + m_diameter = int(TQMIN(width(), height()) * (size + 4) / 14.0); m_x = (width() - m_diameter) / 2; m_y = (height() - m_diameter) / 2; @@ -449,7 +449,7 @@ void KClockSaver::start(int size) m_scale = new KClockPainter(m_diameter, m_diameter); m_clock = new KClockPainter(m_diameter, m_diameter); - m_clock->setShadowColor(qRgb((m_bgndColor.red() + m_scaleColor.red()) / 2, + m_clock->setShadowColor(tqRgb((m_bgndColor.red() + m_scaleColor.red()) / 2, (m_bgndColor.green() + m_scaleColor.green()) / 2, (m_bgndColor.blue() + m_scaleColor.blue()) / 2)); drawScale(); @@ -497,15 +497,15 @@ void KClockSaver::readSettings() m_size = MAX_CLOCK_SIZE; config->setGroup("Colors"); - TQColor c = Qt::black; + TQColor c = TQt::black; m_bgndColor = config->readColorEntry("Background", &c); - c = Qt::white; + c = TQt::white; m_scaleColor = config->readColorEntry("Scale", &c); m_hourColor = config->readColorEntry("HourHand", &c); m_minColor = config->readColorEntry("MinuteHand", &c); - c = Qt::red; + c = TQt::red; m_secColor = config->readColorEntry("SecondHand", &c); } @@ -557,7 +557,7 @@ void KClockSaver::slotTimeout() if (width() < 256) { // intended for the control module preview: always fill the whole area TQImage *img = new TQImage(width(), height(), 32); - img->fill(qRgb(m_bgndColor.red(), m_bgndColor.green(), m_bgndColor.blue())); + img->fill(tqRgb(m_bgndColor.red(), m_bgndColor.green(), m_bgndColor.blue())); m_clock->drawToImage(img, m_x, m_y); p.drawImage(0, 0, *img); delete img; diff --git a/kscreensaver/kdesavers/kclock.h b/kscreensaver/kdesavers/kclock.h index 2afc42a6..662d24b8 100644 --- a/kscreensaver/kdesavers/kclock.h +++ b/kscreensaver/kdesavers/kclock.h @@ -19,10 +19,10 @@ class KClockPainter { int m_width; int m_height; - Q_UINT8 *m_buf; + TQ_UINT8 *m_buf; double m_matrix[6]; - Q_UINT32 m_color; - Q_UINT32 m_shadow; + TQ_UINT32 m_color; + TQ_UINT32 m_shadow; public: KClockPainter(int width, int height); @@ -45,6 +45,7 @@ class KClockPainter class KClockSaver : public KScreenSaver { Q_OBJECT + TQ_OBJECT public: KClockSaver(WId id); virtual ~KClockSaver(); @@ -94,6 +95,7 @@ class KClockSaver : public KScreenSaver class KClockSetup : public KDialogBase { Q_OBJECT + TQ_OBJECT public: KClockSetup(TQWidget *parent = 0, const char *name = 0); ~KClockSetup(); diff --git a/kscreensaver/kdesavers/kvm.cpp b/kscreensaver/kdesavers/kvm.cpp index e0d54265..6e064e29 100644 --- a/kscreensaver/kdesavers/kvm.cpp +++ b/kscreensaver/kdesavers/kvm.cpp @@ -21,7 +21,7 @@ * implied warranty. * */ -// layout management added 1998/04/19 by Mario Weilguni +// tqlayout management added 1998/04/19 by Mario Weilguni #ifdef HAVE_CONFIG_H #include @@ -166,8 +166,8 @@ draw_pool (m_state *state) if( state->modified[index] == 1 ) pos_x += 2; TQPainter p(state->w); - p.setPen( Qt::green ); - p.setBrush( Qt::black ); + p.setPen( TQt::green ); + p.setBrush( TQt::black ); p.drawPixmap( state->grid_margin_x + x*state->char_width, state->grid_margin_y + y*state->char_height, state->images, pos_x*state->char_width, @@ -289,7 +289,7 @@ kVmSetup::kVmSetup( TQWidget *parent, const char *name ) TQLabel *label = new TQLabel( i18n("Virtual machine speed:"), main ); tl1->addWidget(label); - TQSlider *slider = new TQSlider( TQSlider::Horizontal, main ); + TQSlider *slider = new TQSlider( Qt::Horizontal, main ); slider->setMinimumSize( 120, 20 ); slider->setRange( 0, 100 ); slider->setSteps( 10, 20 ); @@ -303,7 +303,7 @@ kVmSetup::kVmSetup( TQWidget *parent, const char *name ) label = new TQLabel( i18n("Display update speed:"), main ); tl1->addWidget(label); - slider = new TQSlider( TQSlider::Horizontal, main ); + slider = new TQSlider( Qt::Horizontal, main ); slider->setMinimumSize( 120, 20 ); slider->setRange( 0, MAX_REFRESH_TIMEOUT ); slider->setSteps( MAX_REFRESH_TIMEOUT/10, MAX_REFRESH_TIMEOUT/5 ); diff --git a/kscreensaver/kdesavers/kvm.h b/kscreensaver/kdesavers/kvm.h index 0f705e21..7b618c9d 100644 --- a/kscreensaver/kdesavers/kvm.h +++ b/kscreensaver/kdesavers/kvm.h @@ -44,6 +44,7 @@ typedef struct { class kVmSaver : public KScreenSaver { Q_OBJECT + TQ_OBJECT public: kVmSaver( WId id ); virtual ~kVmSaver(); @@ -74,6 +75,7 @@ protected: class kVmSetup : public KDialogBase { Q_OBJECT + TQ_OBJECT public: kVmSetup( TQWidget *parent = NULL, const char *name = NULL ); ~kVmSetup(); diff --git a/kscreensaver/kdesavers/lines.cpp b/kscreensaver/kdesavers/lines.cpp index 86919eca..9ea6551b 100644 --- a/kscreensaver/kdesavers/lines.cpp +++ b/kscreensaver/kdesavers/lines.cpp @@ -5,7 +5,7 @@ // based on kpolygon from Martin R. Jones 1996 // mailto:dirk.staneker@student.uni-tuebingen.de // -// layout management added 1998/04/19 by Mario Weilguni +// tqlayout management added 1998/04/19 by Mario Weilguni // 2001/03/04 Converted to libkscreensaver by Martin R. Jones #include @@ -128,7 +128,7 @@ kLinesSetup::kLinesSetup(TQWidget *parent, const char *name) TQLabel *label=new TQLabel(i18n("Length:"), main); tl1->addWidget(label); - TQSlider *sb= new TQSlider(1, MAXLENGTH+1, 16, length, TQSlider::Horizontal, + TQSlider *sb= new TQSlider(1, MAXLENGTH+1, 16, length, Qt::Horizontal, main); sb->setMinimumSize(120, 20); sb->setTickmarks(TQSlider::Below); @@ -139,7 +139,7 @@ kLinesSetup::kLinesSetup(TQWidget *parent, const char *name) label=new TQLabel(i18n("Speed:"), main); tl1->addWidget(label); - sb = new TQSlider(0, 100, 10, speed, TQSlider::Horizontal, main); + sb = new TQSlider(0, 100, 10, speed, Qt::Horizontal, main); sb->setMinimumSize(120, 20); sb->setTickmarks(TQSlider::Below); sb->setTickInterval(10); diff --git a/kscreensaver/kdesavers/lines.h b/kscreensaver/kdesavers/lines.h index c5e7f42a..fe9331bd 100644 --- a/kscreensaver/kdesavers/lines.h +++ b/kscreensaver/kdesavers/lines.h @@ -38,6 +38,7 @@ class Lines{ class kLinesSaver:public KScreenSaver{ Q_OBJECT + TQ_OBJECT public: kLinesSaver( WId id ); virtual ~kLinesSaver(); @@ -68,6 +69,7 @@ class kLinesSaver:public KScreenSaver{ class kLinesSetup : public KDialogBase{ Q_OBJECT + TQ_OBJECT public: kLinesSetup(TQWidget *parent=NULL, const char *name=NULL); ~kLinesSetup(); diff --git a/kscreensaver/kdesavers/lorenz.cpp b/kscreensaver/kdesavers/lorenz.cpp index 86bd0d80..e98410fb 100644 --- a/kscreensaver/kdesavers/lorenz.cpp +++ b/kscreensaver/kdesavers/lorenz.cpp @@ -82,7 +82,7 @@ KLorenzSetup::KLorenzSetup( TQWidget *parent, const char *name ) TQLabel *label = new TQLabel( i18n("Speed:"), main ); tl1->addWidget(label); - sps = new TQSlider(MINSPEED, MAXSPEED, 10, speed, TQSlider::Horizontal, main); + sps = new TQSlider(MINSPEED, MAXSPEED, 10, speed, Qt::Horizontal, main); sps->setMinimumSize( 120, 20 ); sps->setTickmarks(TQSlider::Below); sps->setTickInterval(150); @@ -92,7 +92,7 @@ KLorenzSetup::KLorenzSetup( TQWidget *parent, const char *name ) label = new TQLabel( i18n("Epoch:"), main ); tl1->addWidget(label); - eps = new TQSlider(MINEPOCH, MAXEPOCH, 100, epoch, TQSlider::Horizontal, main); + eps = new TQSlider(MINEPOCH, MAXEPOCH, 100, epoch, Qt::Horizontal, main); eps->setMinimumSize( 120, 20 ); eps->setTickmarks(TQSlider::Below); eps->setTickInterval(3000); @@ -102,7 +102,7 @@ KLorenzSetup::KLorenzSetup( TQWidget *parent, const char *name ) label = new TQLabel( i18n("Color rate:"), main ); tl1->addWidget(label); - crs = new TQSlider(MINCOLOR, MAXCOLOR, 5, crate, TQSlider::Horizontal, main); + crs = new TQSlider(MINCOLOR, MAXCOLOR, 5, crate, Qt::Horizontal, main); crs->setMinimumSize( 120, 20 ); crs->setTickmarks(TQSlider::Below); crs->setTickInterval(10); @@ -112,7 +112,7 @@ KLorenzSetup::KLorenzSetup( TQWidget *parent, const char *name ) label = new TQLabel( i18n("Rotation Z:"), main ); tl1->addWidget(label); - zrs = new TQSlider(MINZROT, MAXZROT, 18, zrot, TQSlider::Horizontal, main); + zrs = new TQSlider(MINZROT, MAXZROT, 18, zrot, Qt::Horizontal, main); zrs->setMinimumSize( 120, 20 ); zrs->setTickmarks(TQSlider::Below); zrs->setTickInterval(36); @@ -122,7 +122,7 @@ KLorenzSetup::KLorenzSetup( TQWidget *parent, const char *name ) label = new TQLabel( i18n("Rotation Y:"), main ); tl1->addWidget(label); - yrs = new TQSlider(MINYROT, MAXYROT, 18, yrot, TQSlider::Horizontal, main); + yrs = new TQSlider(MINYROT, MAXYROT, 18, yrot, Qt::Horizontal, main); yrs->setMinimumSize( 120, 20 ); yrs->setTickmarks(TQSlider::Below); yrs->setTickInterval(36); @@ -132,7 +132,7 @@ KLorenzSetup::KLorenzSetup( TQWidget *parent, const char *name ) label = new TQLabel( i18n("Rotation X:"), main ); tl1->addWidget(label); - xrs = new TQSlider(MINXROT, MAXXROT, 18, xrot, TQSlider::Horizontal, main); + xrs = new TQSlider(MINXROT, MAXXROT, 18, xrot, Qt::Horizontal, main); xrs->setMinimumSize( 120, 20 ); xrs->setTickmarks(TQSlider::Below); xrs->setTickInterval(36); diff --git a/kscreensaver/kdesavers/lorenz.h b/kscreensaver/kdesavers/lorenz.h index 4993273e..5a69634e 100644 --- a/kscreensaver/kdesavers/lorenz.h +++ b/kscreensaver/kdesavers/lorenz.h @@ -22,6 +22,7 @@ class Matrix3D; class KLorenzSaver : public KScreenSaver { Q_OBJECT + TQ_OBJECT public: KLorenzSaver( WId id ); virtual ~KLorenzSaver(); @@ -56,6 +57,7 @@ class TQSlider; class KLorenzSetup : public KDialogBase { Q_OBJECT + TQ_OBJECT public: KLorenzSetup(TQWidget *parent = 0, const char *name = 0 ); ~KLorenzSetup(); diff --git a/kscreensaver/kdesavers/pendulum.cpp b/kscreensaver/kdesavers/pendulum.cpp index 18f03be8..4694ccd3 100644 --- a/kscreensaver/kdesavers/pendulum.cpp +++ b/kscreensaver/kdesavers/pendulum.cpp @@ -29,7 +29,7 @@ // std. C++ headers #include -// Qt headers +// TQt headers #include #include #include @@ -44,7 +44,7 @@ #include "sspreviewarea.h" -// pendulum.moc includes pendulum.h +// pendulum.tqmoc includes pendulum.h #include "pendulum.moc" #define KPENDULUM_VERSION "1.1" @@ -654,7 +654,7 @@ void KPendulumSaver::doTimeStep() glArea->setEyePhi(eyePhi); // set new perspective } - glArea->updateGL(); // repaint scenery + glArea->updateGL(); // tqrepaint scenery timer->start(deltaT, TRUE); // restart timer } @@ -704,28 +704,28 @@ KPendulumSetup::KPendulumSetup(TQWidget* parent, const char* name) TQToolTip::add( mEdit, i18n("Ratio of 2nd mass to sum of both masses.\nValid values from %1 to %2.") - .arg(KPendulumSaver::massRatioLimitLower, 0, 'f', 2) - .arg(KPendulumSaver::massRatioLimitUpper, 0, 'f', 2)); + .tqarg(KPendulumSaver::massRatioLimitLower, 0, 'f', 2) + .tqarg(KPendulumSaver::massRatioLimitUpper, 0, 'f', 2)); TQToolTip::add( lEdit, i18n("Ratio of 2nd pendulum part length to the sum of both part lengths.\nValid values from %1 to %2.") - .arg(KPendulumSaver::lengthRatioLimitLower, 0, 'f', 2) - .arg(KPendulumSaver::lengthRatioLimitUpper, 0, 'f', 2)); + .tqarg(KPendulumSaver::lengthRatioLimitLower, 0, 'f', 2) + .tqarg(KPendulumSaver::lengthRatioLimitUpper, 0, 'f', 2)); TQToolTip::add( gEdit, i18n("Gravitational constant in arbitrary units.\nValid values from %1 to %2.") - .arg(KPendulumSaver::gLimitLower, 0, 'f', 2) - .arg(KPendulumSaver::gLimitUpper, 0, 'f', 2)); + .tqarg(KPendulumSaver::gLimitLower, 0, 'f', 2) + .tqarg(KPendulumSaver::gLimitUpper, 0, 'f', 2)); TQToolTip::add( eEdit, i18n("Energy in units of the maximum potential energy of the given configuration.\nValid values from %1 to %2.") - .arg(KPendulumSaver::ELimitLower, 0, 'f', 2) - .arg(KPendulumSaver::ELimitUpper, 0, 'f', 2)); + .tqarg(KPendulumSaver::ELimitLower, 0, 'f', 2) + .tqarg(KPendulumSaver::ELimitUpper, 0, 'f', 2)); TQToolTip::add( persSpinBox, i18n("Time in seconds after which a random perspective change occurs.\nValid values from %1 to %2.") - .arg(KPendulumSaver::persChangeIntervalLimitLower) - .arg(KPendulumSaver::persChangeIntervalLimitUpper)); + .tqarg(KPendulumSaver::persChangeIntervalLimitLower) + .tqarg(KPendulumSaver::persChangeIntervalLimitUpper)); // init preview area preview->setBackgroundColor(black); @@ -851,7 +851,7 @@ void KPendulumSetup::persChangeEnteredSlot(int t) void KPendulumSetup::barColorButtonClickedSlot(void) { - TQColor color = QColorDialog::getColor( + TQColor color = TQColorDialog::getColor( saver->barColor(), this, "bar color dialog"); if (color.isValid()) { @@ -861,7 +861,7 @@ void KPendulumSetup::barColorButtonClickedSlot(void) } void KPendulumSetup::m1ColorButtonClickedSlot(void) { - TQColor color = QColorDialog::getColor( + TQColor color = TQColorDialog::getColor( saver->m1Color(), this, "mass 1 color dialog"); if (color.isValid()) { @@ -871,7 +871,7 @@ void KPendulumSetup::m1ColorButtonClickedSlot(void) } void KPendulumSetup::m2ColorButtonClickedSlot(void) { - TQColor color = QColorDialog::getColor( + TQColor color = TQColorDialog::getColor( saver->m2Color(), this, "mass 2 color dialog"); if (color.isValid()) { diff --git a/kscreensaver/kdesavers/pendulum.h b/kscreensaver/kdesavers/pendulum.h index 3c26a1ef..af933de9 100644 --- a/kscreensaver/kdesavers/pendulum.h +++ b/kscreensaver/kdesavers/pendulum.h @@ -15,7 +15,7 @@ // STL headers #include -// Qt headers +// TQt headers #include #include #include @@ -79,14 +79,15 @@ class PendulumOdeSolver : public RkOdeSolver /** @brief GL widget class for the KPendulum screen saver * * Class implements TQGLWidget to display the KPendulum screen saver. */ -class PendulumGLWidget : public QGLWidget +class PendulumGLWidget : public TQGLWidget { Q_OBJECT + TQ_OBJECT public: /** @brief Constructor of KPendulum's GL widget - * @param parent parent widget, passed to QGLWidget's constructor - * @param name name of widget, passed to QGLWidget's constructor */ + * @param parent parent widget, passed to TQGLWidget's constructor + * @param name name of widget, passed to TQGLWidget's constructor */ PendulumGLWidget(TQWidget* parent=0, const char* name=0); /** @brief Destructor of KPendulum's GL widget */ ~PendulumGLWidget(void); @@ -184,6 +185,7 @@ class PendulumGLWidget : public QGLWidget class KPendulumSaver : public KScreenSaver { Q_OBJECT + TQ_OBJECT public: /** @brief Constructor of the KPendulum screen saver object @@ -332,6 +334,7 @@ class KPendulumSaver : public KScreenSaver class KPendulumSetup : public KPendulumSetupUi { Q_OBJECT + TQ_OBJECT public: /** @brief Constructor for the KPendulum screen saver setup dialog diff --git a/kscreensaver/kdesavers/pendulumcfg.ui b/kscreensaver/kdesavers/pendulumcfg.ui index 51454a00..0b28fc61 100644 --- a/kscreensaver/kdesavers/pendulumcfg.ui +++ b/kscreensaver/kdesavers/pendulumcfg.ui @@ -1,6 +1,6 @@ KPendulumSetupUi - + KPendulumSetupUi @@ -20,13 +20,13 @@ 2 - + 0 0 - + 1200 900 @@ -48,31 +48,31 @@ Minimum - + - layout18 + tqlayout18 unnamed - + - layout16 + tqlayout16 unnamed - + - layout15 + tqlayout15 unnamed - + textLabel1 @@ -90,7 +90,7 @@ m<sub>1</sub>+m<sub>2</sub> </p> - + mEdit @@ -102,7 +102,7 @@ m<sub>1</sub>+m<sub>2</sub> 0 - + 60 32767 @@ -114,15 +114,15 @@ m<sub>1</sub>+m<sub>2</sub> - + - layout14 + tqlayout14 unnamed - + textLabel2 @@ -134,7 +134,7 @@ l<sub>1</sub>+l<sub>2</sub> </p> - + lEdit @@ -146,7 +146,7 @@ l<sub>1</sub>+l<sub>2</sub> 0 - + 60 32767 @@ -158,26 +158,26 @@ l<sub>1</sub>+l<sub>2</sub> - + - layout13 + tqlayout13 unnamed - + textLabel3 g - + WordBreak|AlignCenter - + gEdit @@ -189,7 +189,7 @@ l<sub>1</sub>+l<sub>2</sub> 0 - + 60 32767 @@ -201,26 +201,26 @@ l<sub>1</sub>+l<sub>2</sub> - + - layout13_2 + tqlayout13_2 unnamed - + textLabel4 E - + WordBreak|AlignCenter - + eEdit @@ -232,7 +232,7 @@ l<sub>1</sub>+l<sub>2</sub> 0 - + 60 32767 @@ -244,15 +244,15 @@ l<sub>1</sub>+l<sub>2</sub> - + - layout18 + tqlayout18 unnamed - + textLabel2_2 @@ -264,7 +264,7 @@ Change [s] specify the time in seconds after which a random perspective change occurs - + persSpinBox @@ -276,13 +276,13 @@ Change [s] 0 - + 60 0 - + 60 32767 @@ -291,19 +291,19 @@ Change [s] - + - layout15 + tqlayout15 unnamed - + barColorButton - + 40 32767 @@ -313,11 +313,11 @@ Change [s] Bars - + m1ColorButton - + 40 32767 @@ -327,11 +327,11 @@ Change [s] M1 - + m2ColorButton - + 40 32767 @@ -353,7 +353,7 @@ Change [s] MinimumExpanding - + 20 0 @@ -374,7 +374,7 @@ Change [s] 0 - + 200 150 @@ -383,9 +383,9 @@ Change [s] - + - layout19 + tqlayout19 @@ -401,14 +401,14 @@ Change [s] Expanding - + 66 31 - + OkButton @@ -419,7 +419,7 @@ Change [s] true - + CancelButton @@ -427,7 +427,7 @@ Change [s] &Cancel - + AboutButton @@ -445,7 +445,7 @@ Change [s] Expanding - + 65 31 @@ -547,7 +547,7 @@ Change [s] m2ColorButtonClickedSlot() - + okButtonClickedSlot() aboutButtonClickedSlot() mEditLostFocusSlot(void) @@ -558,7 +558,7 @@ Change [s] barColorButtonClickedSlot(void) m1ColorButtonClickedSlot(void) m2ColorButtonClickedSlot(void) - + sspreviewarea.h diff --git a/kscreensaver/kdesavers/polygon.cpp b/kscreensaver/kdesavers/polygon.cpp index 41274711..c4e8057c 100644 --- a/kscreensaver/kdesavers/polygon.cpp +++ b/kscreensaver/kdesavers/polygon.cpp @@ -4,7 +4,7 @@ // // Copyright (c) Martin R. Jones 1996 // -// layout management added 1998/04/19 by Mario Weilguni +// tqlayout management added 1998/04/19 by Mario Weilguni // 2001/03/04 Converted to libkscreensaver by Martin R. Jones #include @@ -66,7 +66,7 @@ kPolygonSetup::kPolygonSetup( TQWidget *parent, const char *name ) TQLabel *label = new TQLabel( i18n("Length:"), main ); tl1->addWidget(label); - TQSlider *sb = new TQSlider(1, MAXLENGTH, 10, length, TQSlider::Horizontal, + TQSlider *sb = new TQSlider(1, MAXLENGTH, 10, length, Qt::Horizontal, main ); sb->setMinimumSize( 90, 20 ); sb->setTickmarks(TQSlider::Below); @@ -77,7 +77,7 @@ kPolygonSetup::kPolygonSetup( TQWidget *parent, const char *name ) label = new TQLabel( i18n("Vertices:"), main ); tl1->addWidget(label); - sb = new TQSlider(3, MAXVERTICES, 2, vertices, TQSlider::Horizontal, main); + sb = new TQSlider(3, MAXVERTICES, 2, vertices, Qt::Horizontal, main); sb->setMinimumSize( 90, 20 ); sb->setTickmarks(TQSlider::Below); sb->setTickInterval(2); @@ -87,7 +87,7 @@ kPolygonSetup::kPolygonSetup( TQWidget *parent, const char *name ) label = new TQLabel( i18n("Speed:"), main ); tl1->addWidget(label); - sb = new TQSlider(0, 100, 10, speed, TQSlider::Horizontal, main); + sb = new TQSlider(0, 100, 10, speed, Qt::Horizontal, main); sb->setMinimumSize( 90, 20 ); sb->setTickmarks(TQSlider::Below); sb->setTickInterval(10); @@ -102,7 +102,7 @@ kPolygonSetup::kPolygonSetup( TQWidget *parent, const char *name ) saver = new kPolygonSaver( preview->winId() ); tl->addWidget(preview); - setMinimumSize( sizeHint() ); + setMinimumSize( tqsizeHint() ); } kPolygonSetup::~kPolygonSetup() diff --git a/kscreensaver/kdesavers/polygon.h b/kscreensaver/kdesavers/polygon.h index fed640c1..563d3b39 100644 --- a/kscreensaver/kdesavers/polygon.h +++ b/kscreensaver/kdesavers/polygon.h @@ -18,6 +18,7 @@ class kPolygonSaver : public KScreenSaver { Q_OBJECT + TQ_OBJECT public: kPolygonSaver( WId id ); virtual ~kPolygonSaver(); @@ -37,12 +38,12 @@ protected slots: void slotTimeout(); protected: - QTimer timer; + TQTimer timer; unsigned numLines; int numVertices; int colorContext; int speed; - QColor colors[64]; + TQColor colors[64]; int currentColor; TQPtrList polygons; TQMemArray directions; @@ -52,6 +53,7 @@ protected: class kPolygonSetup : public KDialogBase { Q_OBJECT + TQ_OBJECT public: kPolygonSetup( TQWidget *parent = 0, const char *name = 0 ); ~kPolygonSetup(); diff --git a/kscreensaver/kdesavers/rotation.cpp b/kscreensaver/kdesavers/rotation.cpp index 4868c9dc..7eb757d0 100644 --- a/kscreensaver/kdesavers/rotation.cpp +++ b/kscreensaver/kdesavers/rotation.cpp @@ -31,7 +31,7 @@ #include // STL #include -// Qt headers +// TQt headers #include #include #include @@ -44,7 +44,7 @@ #include "sspreviewarea.h" -// rotation.moc includes rotation.h +// rotation.tqmoc includes rotation.h #include "rotation.moc" /** Version number of this screen saver */ @@ -716,18 +716,18 @@ KRotationSetup::KRotationSetup(TQWidget* parent, const char* name) TQToolTip::add( lengthEdit, i18n("Length of traces in seconds of visibility.\nValid values from %1 to %2.") - .arg(KRotationSaver::traceLengthSecondsLimitLower, 0, 'f', 2) - .arg(KRotationSaver::traceLengthSecondsLimitUpper, 0, 'f', 2)); + .tqarg(KRotationSaver::traceLengthSecondsLimitLower, 0, 'f', 2) + .tqarg(KRotationSaver::traceLengthSecondsLimitUpper, 0, 'f', 2)); TQToolTip::add( LzEdit, i18n("Angular momentum in z direction in arbitrary units.\nValid values from %1 to %2.") - .arg(KRotationSaver::LzLimitLower, 0, 'f', 2) - .arg(KRotationSaver::LzLimitUpper, 0, 'f', 2)); + .tqarg(KRotationSaver::LzLimitLower, 0, 'f', 2) + .tqarg(KRotationSaver::LzLimitUpper, 0, 'f', 2)); TQToolTip::add( thetaEdit, i18n("Gravitational constant in arbitrary units.\nValid values from %1 to %2.") - .arg(KRotationSaver::initEulerThetaLimitLower, 0, 'f', 2) - .arg(KRotationSaver::initEulerThetaLimitUpper, 0, 'f', 2)); + .tqarg(KRotationSaver::initEulerThetaLimitLower, 0, 'f', 2) + .tqarg(KRotationSaver::initEulerThetaLimitUpper, 0, 'f', 2)); // init preview area preview->setBackgroundColor(black); diff --git a/kscreensaver/kdesavers/rotation.h b/kscreensaver/kdesavers/rotation.h index 0144275d..1086ca3e 100644 --- a/kscreensaver/kdesavers/rotation.h +++ b/kscreensaver/kdesavers/rotation.h @@ -12,7 +12,7 @@ #include // STL headers #include -// Qt headers +// TQt headers #include #include #include @@ -79,14 +79,15 @@ class EulerOdeSolver : public RkOdeSolver /** @brief GL widget class for the KRotation screen saver * * Class implements TQGLWidget to display the KRotation screen saver. */ -class RotationGLWidget : public QGLWidget +class RotationGLWidget : public TQGLWidget { Q_OBJECT + TQ_OBJECT public: /** @brief Constructor of KRotation's GL widget - * @param parent parent widget, passed to QGLWidget's constructor - * @param name name of widget, passed to QGLWidget's constructor + * @param parent parent widget, passed to TQGLWidget's constructor + * @param name name of widget, passed to TQGLWidget's constructor * @param omega current rotation vector * @param e1 x trace data * @param e2 y trace data @@ -172,6 +173,7 @@ class RotationGLWidget : public QGLWidget class KRotationSaver : public KScreenSaver { Q_OBJECT + TQ_OBJECT public: /** @brief Constructor of the KRotation screen saver object @@ -299,6 +301,7 @@ class KRotationSaver : public KScreenSaver class KRotationSetup : public KRotationSetupUi { Q_OBJECT + TQ_OBJECT public: KRotationSetup(TQWidget* parent = NULL, const char* name = NULL); diff --git a/kscreensaver/kdesavers/rotationcfg.ui b/kscreensaver/kdesavers/rotationcfg.ui index d7e95d3b..8aa3cb53 100644 --- a/kscreensaver/kdesavers/rotationcfg.ui +++ b/kscreensaver/kdesavers/rotationcfg.ui @@ -1,6 +1,6 @@ KRotationSetupUi - + KRotationSetupUi @@ -20,13 +20,13 @@ 0 - + 0 0 - + 1200 900 @@ -48,23 +48,23 @@ Minimum - + - layout17 + tqlayout17 unnamed - + - layout6 + tqlayout6 unnamed - + buttonGroup1 @@ -83,15 +83,15 @@ unnamed - + - layout5 + tqlayout5 unnamed - + xTrace @@ -102,7 +102,7 @@ x - + randTraces @@ -110,7 +110,7 @@ Random - + yTrace @@ -118,7 +118,7 @@ y - + zTrace @@ -128,7 +128,7 @@ - + textLabel1 @@ -136,7 +136,7 @@ Length: - + lengthEdit @@ -148,7 +148,7 @@ 0 - + 40 32767 @@ -166,15 +166,15 @@ - + - layout10 + tqlayout10 unnamed - + LzEdit @@ -186,7 +186,7 @@ 0 - + 50 32767 @@ -196,7 +196,7 @@ 5 - + textLabel3 @@ -212,7 +212,7 @@ Theta: - + textLabel2 @@ -228,7 +228,7 @@ Lz: - + thetaEdit @@ -240,7 +240,7 @@ 0 - + 50 32767 @@ -262,7 +262,7 @@ Expanding - + 31 51 @@ -275,7 +275,7 @@ preview - + 200 150 @@ -284,9 +284,9 @@ - + - layout9 + tqlayout9 @@ -302,22 +302,22 @@ Expanding - + 51 31 - + - layout4 + tqlayout4 unnamed - + OkButton @@ -328,7 +328,7 @@ true - + CancelButton @@ -336,7 +336,7 @@ &Cancel - + AboutButton @@ -356,7 +356,7 @@ Expanding - + 61 31 @@ -470,7 +470,7 @@ thetaEnteredSlot(const QString&) - + okButtonClickedSlot() aboutButtonClickedSlot() randomTracesToggled(bool) @@ -480,7 +480,7 @@ lengthEnteredSlot(const QString&) LzEnteredSlot(const QString&) thetaEnteredSlot(const QString&) - + sspreviewarea.h diff --git a/kscreensaver/kdesavers/science.cpp b/kscreensaver/kdesavers/science.cpp index 57443e78..f0f61ffe 100644 --- a/kscreensaver/kdesavers/science.cpp +++ b/kscreensaver/kdesavers/science.cpp @@ -31,7 +31,7 @@ #include "science.h" #include "science.moc" -#if defined Q_WS_X11 && !defined K_WS_QTONLY +#if defined Q_WS_X11 && !defined K_WS_TQTONLY #include #include #endif @@ -897,7 +897,7 @@ KScienceSetup::KScienceSetup( TQWidget *parent, const char *name ) label = new TQLabel( i18n("Size:"), main ); ltc->addWidget( label ); - slideSize = new TQSlider(9, 50, 5, size[mode], TQSlider::Horizontal, + slideSize = new TQSlider(9, 50, 5, size[mode], Qt::Horizontal, main ); slideSize->setMinimumSize( 90, 20 ); slideSize->setTickmarks(TQSlider::Below); @@ -916,7 +916,7 @@ KScienceSetup::KScienceSetup( TQWidget *parent, const char *name ) ltc->addWidget( label ); slideIntensity = new TQSlider(0, 10, 1, intensity[mode], - TQSlider::Horizontal, main ); + Qt::Horizontal, main ); slideIntensity->setMinimumSize( 90, 20 ); slideIntensity->setTickmarks(TQSlider::Below); slideIntensity->setTickInterval(1); @@ -933,7 +933,7 @@ KScienceSetup::KScienceSetup( TQWidget *parent, const char *name ) ltc->addWidget( label ); slideSpeed = new TQSlider(0, SCI_MAX_SPEED, 10, speed[mode], - TQSlider::Horizontal, main ); + Qt::Horizontal, main ); slideSpeed->setMinimumSize( 90, 20 ); slideSpeed->setTickmarks(TQSlider::Below); slideSpeed->setTickInterval(10); @@ -949,7 +949,7 @@ KScienceSetup::KScienceSetup( TQWidget *parent, const char *name ) ltc->addLayout( ltcm ); slideMoveX = new TQSlider(0, SCI_MAX_MOVE, 5, moveX[mode], - TQSlider::Horizontal, main ); + Qt::Horizontal, main ); slideMoveX->setMinimumSize( 40, 20 ); slideMoveX->setTickmarks(TQSlider::Below); slideMoveX->setTickInterval(5); @@ -958,7 +958,7 @@ KScienceSetup::KScienceSetup( TQWidget *parent, const char *name ) ltcm->addWidget( slideMoveX ); slideMoveY = new TQSlider(0, SCI_MAX_MOVE, 5, moveY[mode], - TQSlider::Horizontal, main ); + Qt::Horizontal, main ); slideMoveY->setMinimumSize( 40, 20 ); slideMoveY->setTickmarks(TQSlider::Below); slideMoveY->setTickInterval(5); diff --git a/kscreensaver/kdesavers/science.h b/kscreensaver/kdesavers/science.h index eb92d339..48635bff 100644 --- a/kscreensaver/kdesavers/science.h +++ b/kscreensaver/kdesavers/science.h @@ -22,9 +22,10 @@ typedef signed int T32bit; class KScienceSaver; -class KPreviewWidget : public QWidget +class KPreviewWidget : public TQWidget { Q_OBJECT + TQ_OBJECT public: KPreviewWidget( TQWidget *parent ); void paintEvent( TQPaintEvent *event ); @@ -38,6 +39,7 @@ struct KScienceData; class KScienceSaver : public KScreenSaver { Q_OBJECT + TQ_OBJECT public: KScienceSaver( WId id, bool setup=false, bool gP=false); virtual ~KScienceSaver(); @@ -106,6 +108,7 @@ protected: class KScienceSetup : public KDialogBase { Q_OBJECT + TQ_OBJECT public: KScienceSetup(TQWidget *parent=0, const char *name=0); ~KScienceSetup(); diff --git a/kscreensaver/kdesavers/slideshow.cpp b/kscreensaver/kdesavers/slideshow.cpp index de88fe3d..42c702ee 100644 --- a/kscreensaver/kdesavers/slideshow.cpp +++ b/kscreensaver/kdesavers/slideshow.cpp @@ -95,7 +95,7 @@ kSlideShowSaver::kSlideShowSaver( WId id ): KScreenSaver(id) connect(&mTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotTimeout())); TQDesktopWidget *d = TQApplication::desktop(); - if( geometry() == d->geometry() && d->numScreens() > 1) + if( tqgeometry() == d->tqgeometry() && d->numScreens() > 1) { for(int i = 0; i < d->numScreens(); ++i) { @@ -285,7 +285,7 @@ int kSlideShowSaver::effectSpiralIn(bool aInit) my0 += miy; } - bitBlt(this, mx, my, &mNextScreen, mx, my, mix, miy, CopyROP, true); + bitBlt(TQT_TQPAINTDEVICE(this), mx, my, TQT_TQPAINTDEVICE(&mNextScreen), mx, my, mix, miy, CopyROP, true); mx += mdx; my += mdy; @@ -321,8 +321,8 @@ int kSlideShowSaver::effectMeltdown(bool aInit) if (y >= mh) continue; done = false; if ((KApplication::random()&15) < 6) continue; - bitBlt(this, x, y+mdy, this, x, y, mdx, mh-y-mdy, CopyROP, true); - bitBlt(this, x, y, &mNextScreen, x, y, mdx, mdy, CopyROP, true); + bitBlt(TQT_TQPAINTDEVICE(this), x, y+mdy, TQT_TQPAINTDEVICE(this), x, y, mdx, mh-y-mdy, CopyROP, true); + bitBlt(TQT_TQPAINTDEVICE(this), x, y, TQT_TQPAINTDEVICE(&mNextScreen), x, y, mdx, mdy, CopyROP, true); mIntArray[i] += mdy; } @@ -407,7 +407,7 @@ int kSlideShowSaver::effectSweep(bool aInit) } for (w=2,i=4,x=mx; i>0; i--, w<<=1, x-=mdx) { - bitBlt(this, x, 0, &mNextScreen, x, 0, w, mh, CopyROP, true); + bitBlt(TQT_TQPAINTDEVICE(this), x, 0, TQT_TQPAINTDEVICE(&mNextScreen), x, 0, w, mh, CopyROP, true); } mx += mdx; } @@ -421,7 +421,7 @@ int kSlideShowSaver::effectSweep(bool aInit) } for (h=2,i=4,y=my; i>0; i--, h<<=1, y-=mdy) { - bitBlt(this, 0, y, &mNextScreen, 0, y, mw, h, CopyROP, true); + bitBlt(TQT_TQPAINTDEVICE(this), 0, y, TQT_TQPAINTDEVICE(&mNextScreen), 0, y, mw, h, CopyROP, true); } my += mdy; } @@ -477,7 +477,7 @@ int kSlideShowSaver::effectRandom(bool /*aInit*/) { x = (KApplication::random() % w) << fact; y = (KApplication::random() % h) << fact; - bitBlt(this, x, y, &mNextScreen, x, y, sz, sz, CopyROP, true); + bitBlt(TQT_TQPAINTDEVICE(this), x, y, TQT_TQPAINTDEVICE(&mNextScreen), x, y, sz, sz, CopyROP, true); } showNextScreen(); @@ -509,7 +509,7 @@ int kSlideShowSaver::effectGrowing(bool aInit) return -1; } - bitBlt(this, mx, my, &mNextScreen, mx, my, + bitBlt(TQT_TQPAINTDEVICE(this), mx, my, TQT_TQPAINTDEVICE(&mNextScreen), mx, my, mw - (mx<<1), mh - (my<<1), CopyROP, true); return 20; @@ -548,9 +548,9 @@ int kSlideShowSaver::effectChessboard(bool aInit) for (y=0; y> 1) + geoptr->mYorg; } - // bitBlt(&mNextScreen, x, y, &mImage, 0, 0, iw, ih, CopyROP, false); + // bitBlt(TQT_TQPAINTDEVICE(&mNextScreen), x, y, TQT_TQPAINTDEVICE(&mImage), 0, 0, iw, ih, CopyROP, false); p.drawImage(x, y, mImage); } } @@ -884,8 +884,8 @@ void kSlideShowSaver::traverseDirectory(const TQString &dirName) } dir.setFilter(TQDir::Dirs | TQDir::Files); - const QFileInfoList *fileinfolist = dir.entryInfoList(); - QFileInfoListIterator it(*fileinfolist); + const TQFileInfoList *fileinfolist = dir.entryInfoList(); + TQFileInfoListIterator it(*fileinfolist); TQFileInfo *fi; while ((fi = it.current())) { diff --git a/kscreensaver/kdesavers/slideshow.h b/kscreensaver/kdesavers/slideshow.h index c52dbda9..96655392 100644 --- a/kscreensaver/kdesavers/slideshow.h +++ b/kscreensaver/kdesavers/slideshow.h @@ -25,6 +25,7 @@ class SlideShowCfg; class kSlideShowSaver: public KScreenSaver { Q_OBJECT + TQ_OBJECT public: kSlideShowSaver( WId id ); virtual ~kSlideShowSaver(); @@ -82,7 +83,7 @@ protected: protected: /** Init mPainter with next-screen's pixmap and call mPainter.begin(&mWidget) */ - void startPainter(Qt::PenStyle penStyle=NoPen); + void startPainter(TQt::PenStyle penStyle=NoPen); protected: struct mScreenGeo { @@ -128,6 +129,7 @@ protected: class kSlideShowSetup : public KDialogBase { Q_OBJECT + TQ_OBJECT public: kSlideShowSetup(TQWidget *parent=NULL, const char *name=NULL); ~kSlideShowSetup(); diff --git a/kscreensaver/kdesavers/slideshowcfg.ui b/kscreensaver/kdesavers/slideshowcfg.ui index 544ea60b..89856efe 100644 --- a/kscreensaver/kdesavers/slideshowcfg.ui +++ b/kscreensaver/kdesavers/slideshowcfg.ui @@ -1,6 +1,6 @@ SlideShowCfg - + Form1 @@ -19,7 +19,7 @@ 0 - + mCbxSubdirectory @@ -27,7 +27,7 @@ &Include images from sub-folders - + mCbxRandom @@ -40,7 +40,7 @@ mDirChooser - + mCbxZoom @@ -58,14 +58,14 @@ Expanding - + 161 20 - + textLabel1 @@ -76,7 +76,7 @@ mDirChooser - + mCbxShowName @@ -94,14 +94,14 @@ Expanding - + 20 19 - + mDelay @@ -118,7 +118,7 @@ 1 - + textLabel1_2 @@ -129,7 +129,7 @@ mDelay - + mCbxRandomPosition @@ -137,7 +137,7 @@ Random &position - + mPreview diff --git a/kscreensaver/kdesavers/sspreviewarea.h b/kscreensaver/kdesavers/sspreviewarea.h index e0c9fc51..54450bcb 100644 --- a/kscreensaver/kdesavers/sspreviewarea.h +++ b/kscreensaver/kdesavers/sspreviewarea.h @@ -25,13 +25,14 @@ * function calls the reimplemented TQGLWidget::resizeGL() method of the GL * widgets (PendulumGLWidget::resizeGL(), RotationGLWidget::resizeGL()) which * really resizes the GL scenery. */ -class SsPreviewArea : public QWidget +class SsPreviewArea : public TQWidget { Q_OBJECT + TQ_OBJECT public: /** @brief Constructor for SsPreviewArea - * @param parent Pointer tp parent widget, forwarded to the QWidget + * @param parent Pointer tp parent widget, forwarded to the TQWidget * constructor * @param name Pointer to widget name, forwarded to the TQWidget constructor * diff --git a/kscreensaver/kdesavers/wave.cpp b/kscreensaver/kdesavers/wave.cpp index e65d04ac..7d94057f 100644 --- a/kscreensaver/kdesavers/wave.cpp +++ b/kscreensaver/kdesavers/wave.cpp @@ -16,7 +16,7 @@ #include #include "wave.h" #include "wave.moc" -#ifdef Q_WS_MACX +#ifdef TQ_WS_MACX #include #include #else @@ -288,8 +288,8 @@ void Wave::paintGL () bool Wave::LoadGLTextures() { - /* Status indicator */ - bool Status = TRUE; + /* tqStatus indicator */ + bool tqStatus = TRUE; TQImage buf; // = TQPixmap::grabWindow ( 0 ).convertToImage(); kdDebug() << "Loading: " << locate("data", "kscreensaver/image.png") << endl; @@ -302,12 +302,12 @@ bool Wave::LoadGLTextures() else { TQImage dummy( 64, 64, 64 ); - dummy.fill( Qt::white.rgb() ); + dummy.fill( TQt::white.rgb() ); buf = dummy; tex = convertToGLFormat( buf ); } /* Set the status to true */ - //Status = TRUE; + //tqStatus = TRUE; glGenTextures(1, &texture[0]); /* create three textures */ glBindTexture(GL_TEXTURE_2D, texture[0]); /* use linear filtering */ @@ -320,5 +320,5 @@ bool Wave::LoadGLTextures() kdDebug() << "Texture Loaded: " << tex.width() << "," << tex.height() << endl; - return Status; + return tqStatus; } diff --git a/kscreensaver/kdesavers/wave.h b/kscreensaver/kdesavers/wave.h index 4d0f614f..d7c65671 100644 --- a/kscreensaver/kdesavers/wave.h +++ b/kscreensaver/kdesavers/wave.h @@ -16,7 +16,7 @@ #include #include -#ifdef Q_WS_MACX +#ifdef TQ_WS_MACX #include #include #else @@ -29,9 +29,10 @@ #include "wavecfg.h" -class Wave : public QGLWidget +class Wave : public TQGLWidget { Q_OBJECT + TQ_OBJECT public: Wave( TQWidget * parent=0, const char * name=0 ); @@ -62,6 +63,7 @@ private: class KWaveSaver : public KScreenSaver { Q_OBJECT + TQ_OBJECT public: KWaveSaver( WId drawable ); virtual ~KWaveSaver(); @@ -77,6 +79,7 @@ private: class KWaveSetup : public SetupUi { Q_OBJECT + TQ_OBJECT public: KWaveSetup( TQWidget *parent = NULL, const char *name = NULL ); ~KWaveSetup( ); diff --git a/kscreensaver/kdesavers/wavecfg.ui b/kscreensaver/kdesavers/wavecfg.ui index 7fcab67a..fddbdae1 100644 --- a/kscreensaver/kdesavers/wavecfg.ui +++ b/kscreensaver/kdesavers/wavecfg.ui @@ -1,6 +1,6 @@ SetupUi - + SetupUi @@ -20,7 +20,7 @@ 0 - + 400 209 @@ -35,7 +35,7 @@ Bitmap Flag Setup - + Layout4 @@ -57,7 +57,7 @@ 6 - + CheckBox1 @@ -65,7 +65,7 @@ Use textures - + PushButton3 @@ -73,7 +73,7 @@ &About - + SpinBox1 @@ -87,7 +87,7 @@ 10 - + PushButton2 @@ -95,7 +95,7 @@ &Cancel - + PushButton1 @@ -106,14 +106,14 @@ true - + GroupBox1 Shapes - + Layout3 @@ -135,7 +135,7 @@ 6 - + RadioButton1 @@ -146,7 +146,7 @@ true - + RadioButton1_2 @@ -157,12 +157,12 @@ - + preview - + TextLabel1 -- cgit v1.2.1