summaryrefslogtreecommitdiffstats
path: root/src/kernel/qmovie.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qmovie.cpp')
-rw-r--r--src/kernel/qmovie.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/kernel/qmovie.cpp b/src/kernel/qmovie.cpp
index 6833762e8..42c2d13d0 100644
--- a/src/kernel/qmovie.cpp
+++ b/src/kernel/qmovie.cpp
@@ -217,14 +217,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
@@ -235,13 +235,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()
@@ -262,12 +262,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
@@ -286,7 +286,7 @@ void TQMoviePrivate::init(bool fully)
source->open(IO_ReadOnly);
#endif
- waitingForFrameTick = FALSE;
+ waitingForFrameTick = false;
stepping = -1;
framenumber = 0;
frameperiod = -1;
@@ -295,9 +295,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()
@@ -370,7 +370,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
@@ -442,7 +442,7 @@ void TQMoviePrivate::changed(const TQRect& rect)
void TQMoviePrivate::end()
{
- movie_ended = TRUE;
+ movie_ended = true;
}
void TQMoviePrivate::preFrameDone()
@@ -454,7 +454,7 @@ void TQMoviePrivate::preFrameDone()
emit dataStatus( TQMovie::Paused );
}
} else {
- waitingForFrameTick = TRUE;
+ waitingForFrameTick = true;
restartTimer();
}
}
@@ -497,7 +497,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
@@ -534,7 +534,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);
@@ -566,7 +566,7 @@ void TQMoviePrivate::eof()
emit dataStatus(TQMovie::SourceEmpty);
#ifdef QT_SAVE_MOVIE_HACK
- save_image = FALSE;
+ save_image = false;
#endif
emit dataStatus(TQMovie::EndOfLoop);
@@ -580,7 +580,7 @@ void TQMoviePrivate::eof()
decoder = new TQImageDecoder(this);
source->rewind();
framenumber = 0;
- movie_ended = FALSE;
+ movie_ended = false;
} else {
delete decoder;
decoder = 0;
@@ -620,7 +620,7 @@ void TQMoviePrivate::refresh()
frametimer->stop();
}
- waitingForFrameTick = FALSE;
+ waitingForFrameTick = false;
flushBuffer();
}
@@ -763,7 +763,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
{
@@ -858,7 +858,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
{
@@ -866,8 +866,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
{
@@ -875,8 +875,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
{
@@ -919,7 +919,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!
}
/*!
@@ -939,10 +939,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 )