diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-20 00:16:02 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-20 00:16:02 -0600 |
commit | ca76618006d430d1253cc6cc0a20dc2c6ca666f9 (patch) | |
tree | 2040fc1d273d66067b34cc67e97f06c2e2602aa1 /kscreensaver | |
parent | de2e00ccad5e4f0ef40e88290954c8ccb7d518a5 (diff) | |
download | tdeartwork-ca76618006d430d1253cc6cc0a20dc2c6ca666f9.tar.gz tdeartwork-ca76618006d430d1253cc6cc0a20dc2c6ca666f9.zip |
Rename KApplication to TDEApplication to avoid conflicts with KDE4
Diffstat (limited to 'kscreensaver')
-rw-r--r-- | kscreensaver/kdesavers/fountain.cpp | 24 | ||||
-rw-r--r-- | kscreensaver/kdesavers/gravity.cpp | 12 | ||||
-rw-r--r-- | kscreensaver/kdesavers/slideshow.cpp | 30 | ||||
-rw-r--r-- | kscreensaver/kxsconfig/kxsconfig.cpp | 2 | ||||
-rw-r--r-- | kscreensaver/kxsconfig/kxsrun.cpp | 2 | ||||
-rw-r--r-- | kscreensaver/xsavers/main.cpp | 2 |
6 files changed, 36 insertions, 36 deletions
diff --git a/kscreensaver/kdesavers/fountain.cpp b/kscreensaver/kdesavers/fountain.cpp index 729e8aa4..47b66998 100644 --- a/kscreensaver/kdesavers/fountain.cpp +++ b/kscreensaver/kdesavers/fountain.cpp @@ -296,13 +296,13 @@ void Fountain::initializeGL () { particle[loop].active=true; // Make All The Particles Active particle[loop].life=1.0f; // Give All The Particles Full Life - particle[loop].fade=float(KApplication::random()%100)/1000.0f+0.003f; // Random Fade Speed + particle[loop].fade=float(TDEApplication::random()%100)/1000.0f+0.003f; // Random Fade Speed particle[loop].r=colors[(loop+1)/(MAX_PARTICLES/12)][0]; // Select Red Rainbow Color particle[loop].g=colors[(loop+1)/(MAX_PARTICLES/12)][1]; // Select Green Rainbow Color particle[loop].b=colors[(loop+1)/(MAX_PARTICLES/12)][2]; // Select Blue Rainbow Color - 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].xi=float((TDEApplication::random()%50)-26.0f)*10.0f; // Random Speed On X Axis + particle[loop].yi=float((TDEApplication::random()%50)-25.0f)*10.0f; // Random Speed On Y Axis + particle[loop].zi=float((TDEApplication::random()%50)-25.0f)*10.0f; // Random Speed On Z Axis 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 @@ -401,13 +401,13 @@ void Fountain::paintGL () if (particle[loop].life<0.0f) // If Particle Is Burned Out { particle[loop].life=2.0f; // Give It New Life - particle[loop].fade=float(KApplication::random()%100)/1000.0f+0.003f; // Random Fade Value + particle[loop].fade=float(TDEApplication::random()%100)/1000.0f+0.003f; // Random Fade Value particle[loop].x=0.0f; // Center On X Axis particle[loop].y=0.0f; // Center On Y Axis particle[loop].z=0.0f; // Center On Z Axis - particle[loop].xi=xspeed+float((KApplication::random()%60)-32.0f); // X Axis Speed And Direction - particle[loop].yi=yspeed+float((KApplication::random()%60)-30.0f); // Y Axis Speed And Direction - particle[loop].zi=float((KApplication::random()%60)-30.0f); // Z Axis Speed And Direction + particle[loop].xi=xspeed+float((TDEApplication::random()%60)-32.0f); // X Axis Speed And Direction + particle[loop].yi=yspeed+float((TDEApplication::random()%60)-30.0f); // Y Axis Speed And Direction + particle[loop].zi=float((TDEApplication::random()%60)-30.0f); // Z Axis Speed And Direction particle[loop].r=colors[col][0]; // Select Red From Color Table particle[loop].g=colors[col][1]; // Select Green From Color Table particle[loop].b=colors[col][2]; // Select Blue From Color Table @@ -417,13 +417,13 @@ void Fountain::paintGL () // Explode particle[loop].active=true; // Make All The Particles Active particle[loop].life=1.0f; // Give All The Particles Full Life - particle[loop].fade=float(KApplication::random()%100)/1000.0f+0.003f; // Random Fade Speed + particle[loop].fade=float(TDEApplication::random()%100)/1000.0f+0.003f; // Random Fade Speed particle[loop].r=colors[(loop+1)/(MAX_PARTICLES/12)][0]; // Select Red Rainbow Color particle[loop].g=colors[(loop+1)/(MAX_PARTICLES/12)][1]; // Select Green Rainbow Color particle[loop].b=colors[(loop+1)/(MAX_PARTICLES/12)][2]; // Select Blue Rainbow Color - 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].xi=float((TDEApplication::random()%50)-26.0f)*10.0f; // Random Speed On X Axis + particle[loop].yi=float((TDEApplication::random()%50)-25.0f)*10.0f; // Random Speed On Y Axis + particle[loop].zi=float((TDEApplication::random()%50)-25.0f)*10.0f; // Random Speed On Z Axis 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 diff --git a/kscreensaver/kdesavers/gravity.cpp b/kscreensaver/kdesavers/gravity.cpp index d6afc184..25adf2e2 100644 --- a/kscreensaver/kdesavers/gravity.cpp +++ b/kscreensaver/kdesavers/gravity.cpp @@ -398,18 +398,18 @@ void Gravity::buildParticle(int loop) {0.5f,0.5f,1.0f},{0.75f,0.5f,1.0f},{1.0f,0.5f,1.0f},{1.0f,0.5f,0.75f}}; col = ( ++col ) % 12; particle[loop].active=true; - particle[loop].index=KApplication::random()%100; + particle[loop].index=TDEApplication::random()%100; particle[loop].indexo=particle[loop].index; - particle[loop].fade=float(KApplication::random()%100)/1000.0f+0.003f; // Random Fade Value + particle[loop].fade=float(TDEApplication::random()%100)/1000.0f+0.003f; // Random Fade Value particle[loop].r=colors[col][0]; // Select Red From Color Table particle[loop].g=colors[col][1]; // Select Green From Color Table particle[loop].b=colors[col][2]; // Select Blue From Color Table particle[loop].size=size; - particle[loop].x = float(KApplication::random()%100-50)*4.0; - particle[loop].y = float(KApplication::random()%20-10)*4.0; - particle[loop].z = float(KApplication::random()%100-50)*4.0; + particle[loop].x = float(TDEApplication::random()%100-50)*4.0; + particle[loop].y = float(TDEApplication::random()%20-10)*4.0; + particle[loop].z = float(TDEApplication::random()%100-50)*4.0; particle[loop].xo = particle[loop].x; - if ((1+(KApplication::random() % 10) > 5)) + if ((1+(TDEApplication::random() % 10) > 5)) particle[loop].yo = particle[loop].y; else particle[loop].yo = 0.0; diff --git a/kscreensaver/kdesavers/slideshow.cpp b/kscreensaver/kdesavers/slideshow.cpp index 5ce30caf..4c4a4cd8 100644 --- a/kscreensaver/kdesavers/slideshow.cpp +++ b/kscreensaver/kdesavers/slideshow.cpp @@ -194,7 +194,7 @@ int kSlideShowSaver::effectMultiCircleOut(bool aInit) pa.setPoint(0, mw>>1, mh>>1); pa.setPoint(3, mw>>1, mh>>1); mfy = sqrt((double)mw*mw + mh*mh) / 2; - mi = KApplication::random()%15 + 2; + mi = TDEApplication::random()%15 + 2; mfd = M_PI*2/mi; mAlpha = mfd; mwait = 10 * mi; @@ -320,7 +320,7 @@ int kSlideShowSaver::effectMeltdown(bool aInit) y = mIntArray[i]; if (y >= mh) continue; done = false; - if ((KApplication::random()&15) < 6) continue; + if ((TDEApplication::random()&15) < 6) continue; 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; @@ -388,7 +388,7 @@ int kSlideShowSaver::effectSweep(bool aInit) { // subtype: 0=sweep right to left, 1=sweep left to right // 2=sweep bottom to top, 3=sweep top to bottom - mSubType = KApplication::random() % 4; + mSubType = TDEApplication::random() % 4; mw = width(); mh = height(); mdx = (mSubType==1 ? 16 : -16); @@ -451,9 +451,9 @@ int kSlideShowSaver::effectBlobs(bool aInit) return -1; } - mx = KApplication::random() % mw; - my = KApplication::random() % mh; - r = (KApplication::random() % 200) + 50; + mx = TDEApplication::random() % mw; + my = TDEApplication::random() % mh; + r = (TDEApplication::random() % 200) + 50; mPainter.drawEllipse(mx-r, my-r, r, r); mi--; @@ -467,7 +467,7 @@ int kSlideShowSaver::effectRandom(bool /*aInit*/) { int x, y, i, w, h, fact, sz; - fact = (KApplication::random() % 3) + 1; + fact = (TDEApplication::random() % 3) + 1; w = width() >> fact; h = height() >> fact; @@ -475,8 +475,8 @@ int kSlideShowSaver::effectRandom(bool /*aInit*/) for (i = (w*h)<<1; i > 0; i--) { - x = (KApplication::random() % w) << fact; - y = (KApplication::random() % h) << fact; + x = (TDEApplication::random() % w) << fact; + y = (TDEApplication::random() % h) << fact; bitBlt(TQT_TQPAINTDEVICE(this), x, y, TQT_TQPAINTDEVICE(&mNextScreen), x, y, sz, sz, CopyROP, true); } showNextScreen(); @@ -572,7 +572,7 @@ int kSlideShowSaver::effectIncomingEdges(bool aInit) mfx = mix / 100.0; mfy = miy / 100.0; mi = 0; - mSubType = KApplication::random() & 1; + mSubType = TDEApplication::random() & 1; } mx = (int)(mfx * mi); @@ -697,7 +697,7 @@ void kSlideShowSaver::slotTimeout() loadNextImage(); createNextScreen(); - if (mNumEffects > 1) i = KApplication::random() % mNumEffects; + if (mNumEffects > 1) i = TDEApplication::random() % mNumEffects; else i = 0; mEffect = mEffectList[i]; @@ -748,7 +748,7 @@ void kSlideShowSaver::createNextScreen() if (mFileList.isEmpty()) { p.setPen(TQColor("white")); - p.drawText(20 + (KApplication::random() % (ww>>1)), 20 + (KApplication::random() % (wh>>1)), + p.drawText(20 + (TDEApplication::random() % (ww>>1)), 20 + (TDEApplication::random() % (wh>>1)), i18n("No images found")); } else @@ -789,8 +789,8 @@ void kSlideShowSaver::createNextScreen() { if(mRandomPosition) { - x = (KApplication::random() % (ww - iw)) + geoptr->mXorg; - y = (KApplication::random() % (wh - ih)) + geoptr->mYorg; + x = (TDEApplication::random() % (ww - iw)) + geoptr->mXorg; + y = (TDEApplication::random() % (wh - ih)) + geoptr->mYorg; } else { @@ -832,7 +832,7 @@ void kSlideShowSaver::loadNextImage() if (mShowRandom) { - mFileIdx = KApplication::random() % num; + mFileIdx = TDEApplication::random() % num; fname = mFileList[mFileIdx]; mFileList.remove(fname); if (num == 1) //we're about to run out of images diff --git a/kscreensaver/kxsconfig/kxsconfig.cpp b/kscreensaver/kxsconfig/kxsconfig.cpp index 4950c993..b3de5e45 100644 --- a/kscreensaver/kxsconfig/kxsconfig.cpp +++ b/kscreensaver/kxsconfig/kxsconfig.cpp @@ -339,7 +339,7 @@ int main(int argc, char *argv[]) TDECmdLineArgs::addCmdLineOptions(options); - KApplication app; + TDEApplication app; TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); if(args->count()==0) diff --git a/kscreensaver/kxsconfig/kxsrun.cpp b/kscreensaver/kxsconfig/kxsrun.cpp index fa1b9c3b..6f4dbf5e 100644 --- a/kscreensaver/kxsconfig/kxsrun.cpp +++ b/kscreensaver/kxsconfig/kxsrun.cpp @@ -64,7 +64,7 @@ int main(int argc, char *argv[]) TDECmdLineArgs::addCmdLineOptions(options); - KApplication app( false, false ); + TDEApplication app( false, false ); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/kscreensaver/xsavers/main.cpp b/kscreensaver/xsavers/main.cpp index ec9c361d..d7f76dcd 100644 --- a/kscreensaver/xsavers/main.cpp +++ b/kscreensaver/xsavers/main.cpp @@ -53,7 +53,7 @@ int main(int argc, char *argv[]) TDECmdLineArgs::addCmdLineOptions(options); - KApplication app; + TDEApplication app; KCrash::setCrashHandler( crashHandler ); |