diff options
Diffstat (limited to 'src/kernel/tqmovie.cpp')
| -rw-r--r-- | src/kernel/tqmovie.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/kernel/tqmovie.cpp b/src/kernel/tqmovie.cpp index 6350f5ceb..76e676144 100644 --- a/src/kernel/tqmovie.cpp +++ b/src/kernel/tqmovie.cpp @@ -213,14 +213,14 @@ public: TQMoviePrivate::TQMoviePrivate() { - dirty_cache = FALSE; + dirty_cache = false; buffer = 0; pump = 0; source = 0; decoder = 0; display_widget=0; buf_size = 0; - init(FALSE); + init(false); } // NOTE: The ownership of the TQDataSource is transferred to the Private @@ -231,13 +231,13 @@ TQMoviePrivate::TQMoviePrivate(TQDataSource* src, TQMovie* movie, int bufsize) : frametimer = new TQTimer(this); pump = src ? new TQDataPump(src, this) : 0; TQObject::connect(frametimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(refresh())); - dirty_cache = FALSE; + dirty_cache = false; source = src; buffer = 0; decoder = 0; speed = 100; display_widget=0; - init(TRUE); + init(true); } TQMoviePrivate::~TQMoviePrivate() @@ -258,12 +258,12 @@ bool TQMoviePrivate::isNull() const return !buf_size; } -// Initialize. Only actually allocate any space if \a fully is TRUE, +// Initialize. Only actually allocate any space if \a fully is true, // otherwise, just enough to be a valid null Private. void TQMoviePrivate::init(bool fully) { #ifdef QT_SAVE_MOVIE_HACK - save_image = TRUE; + save_image = true; image_number = 0; #endif @@ -282,7 +282,7 @@ void TQMoviePrivate::init(bool fully) source->open(IO_ReadOnly); #endif - waitingForFrameTick = FALSE; + waitingForFrameTick = false; stepping = -1; framenumber = 0; frameperiod = -1; @@ -291,9 +291,9 @@ void TQMoviePrivate::init(bool fully) changed_area.setRect(0,0,-1,-1); valid_area = changed_area; loop = -1; - movie_ended = FALSE; + movie_ended = false; error = 0; - empty = TRUE; + empty = true; } void TQMoviePrivate::flushBuffer() @@ -366,7 +366,7 @@ void TQMoviePrivate::updatePixmapFromImage(const TQPoint& off, if ( !TQPixmapCache::find( key, lines ) ) { lines.convertFromImage(img, TQt::ColorOnly); TQPixmapCache::insert( key, lines ); - dirty_cache = TRUE; + dirty_cache = true; } } else #endif @@ -416,7 +416,7 @@ void TQMoviePrivate::changed(const TQRect& rect) void TQMoviePrivate::end() { - movie_ended = TRUE; + movie_ended = true; } void TQMoviePrivate::preFrameDone() @@ -428,7 +428,7 @@ void TQMoviePrivate::preFrameDone() emit dataStatus( TQMovie::Paused ); } } else { - waitingForFrameTick = TRUE; + waitingForFrameTick = true; restartTimer(); } } @@ -471,7 +471,7 @@ void TQMoviePrivate::setLooping(int nloops) { if (loop == -1) { // Only if we don't already know how many loops! if (source && source->rewindable()) { - source->enableRewind(TRUE); + source->enableRewind(true); loop = nloops; } else { // Cannot loop from this source @@ -508,7 +508,7 @@ int TQMoviePrivate::readyToReceive() void TQMoviePrivate::receive(const uchar* b, int bytecount) { - if ( bytecount ) empty = FALSE; + if ( bytecount ) empty = false; while (bytecount && !waitingForFrameTick && stepping != 0) { int used = decoder->decode(b, bytecount); @@ -540,7 +540,7 @@ void TQMoviePrivate::eof() emit dataStatus(TQMovie::SourceEmpty); #ifdef QT_SAVE_MOVIE_HACK - save_image = FALSE; + save_image = false; #endif emit dataStatus(TQMovie::EndOfLoop); @@ -554,7 +554,7 @@ void TQMoviePrivate::eof() decoder = new TQImageDecoder(this); source->rewind(); framenumber = 0; - movie_ended = FALSE; + movie_ended = false; } else { delete decoder; decoder = 0; @@ -594,7 +594,7 @@ void TQMoviePrivate::refresh() frametimer->stop(); } - waitingForFrameTick = FALSE; + waitingForFrameTick = false; flushBuffer(); } @@ -727,7 +727,7 @@ TQMovie::~TQMovie() } /*! - Returns TRUE if the movie is null; otherwise returns FALSE. + Returns true if the movie is null; otherwise returns false. */ bool TQMovie::isNull() const { @@ -822,7 +822,7 @@ int TQMovie::steps() const int TQMovie::frameNumber() const { return d->framenumber; } /*! - Returns TRUE if the image is paused; otherwise returns FALSE. + Returns true if the image is paused; otherwise returns false. */ bool TQMovie::paused() const { @@ -830,8 +830,8 @@ bool TQMovie::paused() const } /*! - Returns TRUE if the image is no longer playing: this happens when - all loops of all frames are complete; otherwise returns FALSE. + Returns true if the image is no longer playing: this happens when + all loops of all frames are complete; otherwise returns false. */ bool TQMovie::finished() const { @@ -839,8 +839,8 @@ bool TQMovie::finished() const } /*! - Returns TRUE if the image is not single-stepping, not paused, and - not finished; otherwise returns FALSE. + Returns true if the image is not single-stepping, not paused, and + not finished; otherwise returns false. */ bool TQMovie::running() const { @@ -883,7 +883,7 @@ void TQMovie::step(int steps) return; d->stepping = steps; d->frametimer->start(0); - d->waitingForFrameTick = FALSE; // Full speed ahead! + d->waitingForFrameTick = false; // Full speed ahead! } /*! @@ -903,10 +903,10 @@ void TQMovie::restart() if (d->isNull()) return; if (d->source->rewindable()) { - d->source->enableRewind(TRUE); + d->source->enableRewind(true); d->source->rewind(); int s = d->stepping; - d->init(TRUE); + d->init(true); if ( s>0 ) step(s); else if ( s==0 ) |
