From 1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 20 Jul 2024 20:15:52 +0900 Subject: Rename graphics class nt* related files to equivalent tq* (part 2) Signed-off-by: Michele Calgaro --- doc/html/movies-example.html | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'doc/html/movies-example.html') diff --git a/doc/html/movies-example.html b/doc/html/movies-example.html index ae07a20b1..96fdea355 100644 --- a/doc/html/movies-example.html +++ b/doc/html/movies-example.html @@ -81,7 +81,7 @@ public: setBackgroundMode(NoBackground); // Get the movie to tell use when interesting things happen. - movie.connectUpdate(this, TQ_SLOT(movieUpdated(const TQRect&))); + movie.connectUpdate(this, TQ_SLOT(movieUpdated(const TQRect&))); movie.connectResize(this, TQ_SLOT(movieResized(const TQSize&))); movie.connectStatus(this, TQ_SLOT(movieStatus(int))); @@ -99,25 +99,25 @@ protected: void drawContents(TQPainter* p) { // Get the current movie frame. - TQPixmap pm = movie.framePixmap(); + TQPixmap pm = movie.framePixmap(); // Get the area we have to draw in. - TQRect r = contentsRect(); + TQRect r = contentsRect(); - if ( !pm.isNull() ) { + if ( !pm.isNull() ) { // Only rescale is we need to - it can take CPU! - if ( r.size() != pm.size() ) { - TQWMatrix m; - m.scale((double)r.width()/pm.width(), - (double)r.height()/pm.height()); - pm = pm.xForm(m); + if ( r.size() != pm.size() ) { + TQWMatrix m; + m.scale((double)r.width()/pm.width(), + (double)r.height()/pm.height()); + pm = pm.xForm(m); } // Draw the [possibly scaled] frame. movieUpdated() below calls // repaint with only the changed area, so clipping will ensure we // only do the minimum amount of rendering. // - p->drawPixmap(r.x(), r.y(), pm); + p->drawPixmap(r.x(), r.y(), pm); } @@ -138,19 +138,19 @@ protected: p->setFont(TQFont("Helvetica", 24)); TQFontMetrics fm = p->fontMetrics(); - if ( fm.width(message) > r.width()-10 ) + if ( fm.width(message) > r.width()-10 ) p->setFont(TQFont("Helvetica", 18)); fm = p->fontMetrics(); - if ( fm.width(message) > r.width()-10 ) + if ( fm.width(message) > r.width()-10 ) p->setFont(TQFont("Helvetica", 14)); fm = p->fontMetrics(); - if ( fm.width(message) > r.width()-10 ) + if ( fm.width(message) > r.width()-10 ) p->setFont(TQFont("Helvetica", 12)); fm = p->fontMetrics(); - if ( fm.width(message) > r.width()-10 ) + if ( fm.width(message) > r.width()-10 ) p->setFont(TQFont("Helvetica", 10)); // "Shadow" effect. @@ -190,22 +190,22 @@ public slots: } private slots: - void movieUpdated(const TQRect& area) + void movieUpdated(const TQRect& area) { if (!isVisible()) show(); // The given area of the movie has changed. - TQRect r = contentsRect(); + TQRect r = contentsRect(); - if ( r.size() != movie.framePixmap().size() ) { + if ( r.size() != movie.framePixmap().size() ) { // Need to scale - redraw whole frame. repaint( r ); } else { // Only redraw the changed area of the frame - repaint( area.x()+r.x(), area.y()+r.x(), - area.width(), area.height() ); + repaint( area.x()+r.x(), area.y()+r.x(), + area.width(), area.height() ); } } -- cgit v1.2.1