diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-15 19:08:22 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-18 09:31:41 +0900 |
commit | a30f5359f03c3017fa19a6770fab32d25d22cb87 (patch) | |
tree | cb365dd7a1c3666e3f972c6cad04be7b8e846cba /doc/html/movies-example.html | |
parent | 25ad1267da6916e738a126ff5a9b41cd686adfc6 (diff) | |
download | tqt3-a30f5359f03c3017fa19a6770fab32d25d22cb87.tar.gz tqt3-a30f5359f03c3017fa19a6770fab32d25d22cb87.zip |
Rename graphics class nt* related files to equivalent tq* (part 1)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/movies-example.html')
-rw-r--r-- | doc/html/movies-example.html | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/doc/html/movies-example.html b/doc/html/movies-example.html index 5a5ae1959..ae07a20b1 100644 --- a/doc/html/movies-example.html +++ b/doc/html/movies-example.html @@ -33,7 +33,7 @@ body { background: #ffffff; color: black; } <p> -The Movies example displays MNG and animated GIF files using the <a href="ntqmovie.html">TQMovie</a> and +The Movies example displays MNG and animated GIF files using the <a href="tqmovie.html">TQMovie</a> and <a href="ntqlabel.html">TQLabel</a> classes. <p> The movies will only read an animated GIF if GIF reading was enabled when TQt was built. <p> <hr> @@ -52,15 +52,15 @@ The Movies example displays MNG and animated GIF files using the <a href="ntqmov #include <<a href="tqfiledialog-h.html">tqfiledialog.h</a>> #include <<a href="qpushbutton-h.html">ntqpushbutton.h</a>> #include <<a href="qlabel-h.html">ntqlabel.h</a>> -#include <<a href="qpainter-h.html">ntqpainter.h</a>> +#include <<a href="tqpainter-h.html">tqpainter.h</a>> #include <<a href="qmessagebox-h.html">ntqmessagebox.h</a>> -#include <<a href="qmovie-h.html">ntqmovie.h</a>> +#include <<a href="tqmovie-h.html">tqmovie.h</a>> #include <<a href="qvbox-h.html">ntqvbox.h</a>> class MovieScreen : public <a href="ntqframe.html">TQFrame</a> { <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> - <a href="ntqmovie.html">TQMovie</a> movie; + <a href="tqmovie.html">TQMovie</a> movie; <a href="tqstring.html">TQString</a> filename; <a href="tqsize.html">TQSize</a> sh; @@ -81,9 +81,9 @@ public: setBackgroundMode(NoBackground); // Get the movie to tell use when interesting things happen. -<a name="x500"></a> movie.<a href="ntqmovie.html#connectUpdate">connectUpdate</a>(this, TQ_SLOT(movieUpdated(const <a href="ntqrect.html">TQRect</a>&))); -<a name="x498"></a> movie.<a href="ntqmovie.html#connectResize">connectResize</a>(this, TQ_SLOT(movieResized(const <a href="tqsize.html">TQSize</a>&))); -<a name="x499"></a> movie.<a href="ntqmovie.html#connectStatus">connectStatus</a>(this, TQ_SLOT(movieStatus(int))); +<a name="x500"></a> movie.<a href="tqmovie.html#connectUpdate">connectUpdate</a>(this, TQ_SLOT(movieUpdated(const <a href="ntqrect.html">TQRect</a>&))); +<a name="x498"></a> movie.<a href="tqmovie.html#connectResize">connectResize</a>(this, TQ_SLOT(movieResized(const <a href="tqsize.html">TQSize</a>&))); +<a name="x499"></a> movie.<a href="tqmovie.html#connectStatus">connectStatus</a>(this, TQ_SLOT(movieStatus(int))); setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding,TQSizePolicy::Expanding)); } @@ -99,7 +99,7 @@ protected: void drawContents(TQPainter* p) { // Get the current movie frame. -<a name="x502"></a> <a href="ntqpixmap.html">TQPixmap</a> pm = movie.<a href="ntqmovie.html#framePixmap">framePixmap</a>(); +<a name="x502"></a> <a href="ntqpixmap.html">TQPixmap</a> pm = movie.<a href="tqmovie.html#framePixmap">framePixmap</a>(); // Get the area we have to draw in. <a href="ntqrect.html">TQRect</a> r = contentsRect(); @@ -125,11 +125,11 @@ protected: const char* message = 0; -<a name="x504"></a> if (movie.<a href="ntqmovie.html#paused">paused</a>()) { +<a name="x504"></a> if (movie.<a href="tqmovie.html#paused">paused</a>()) { message = "PAUSED"; -<a name="x501"></a> } else if (movie.<a href="ntqmovie.html#finished">finished</a>()) { +<a name="x501"></a> } else if (movie.<a href="tqmovie.html#finished">finished</a>()) { message = "THE END"; -<a name="x507"></a> } else if (movie.<a href="ntqmovie.html#steps">steps</a>() > 0) { +<a name="x507"></a> } else if (movie.<a href="tqmovie.html#steps">steps</a>() > 0) { message = "FF >>"; } @@ -137,20 +137,20 @@ protected: // Find a good font size... p->setFont(TQFont("Helvetica", 24)); - <a href="ntqfontmetrics.html">TQFontMetrics</a> fm = p->fontMetrics(); -<a name="x496"></a> if ( fm.<a href="ntqfontmetrics.html#width">width</a>(message) > r.<a href="ntqrect.html#width">width</a>()-10 ) + <a href="tqfontmetrics.html">TQFontMetrics</a> fm = p->fontMetrics(); +<a name="x496"></a> if ( fm.<a href="tqfontmetrics.html#width">width</a>(message) > r.<a href="ntqrect.html#width">width</a>()-10 ) p->setFont(TQFont("Helvetica", 18)); fm = p->fontMetrics(); - if ( fm.<a href="ntqfontmetrics.html#width">width</a>(message) > r.<a href="ntqrect.html#width">width</a>()-10 ) + if ( fm.<a href="tqfontmetrics.html#width">width</a>(message) > r.<a href="ntqrect.html#width">width</a>()-10 ) p->setFont(TQFont("Helvetica", 14)); fm = p->fontMetrics(); - if ( fm.<a href="ntqfontmetrics.html#width">width</a>(message) > r.<a href="ntqrect.html#width">width</a>()-10 ) + if ( fm.<a href="tqfontmetrics.html#width">width</a>(message) > r.<a href="ntqrect.html#width">width</a>()-10 ) p->setFont(TQFont("Helvetica", 12)); fm = p->fontMetrics(); - if ( fm.<a href="ntqfontmetrics.html#width">width</a>(message) > r.<a href="ntqrect.html#width">width</a>()-10 ) + if ( fm.<a href="tqfontmetrics.html#width">width</a>(message) > r.<a href="ntqrect.html#width">width</a>()-10 ) p->setFont(TQFont("Helvetica", 10)); // "Shadow" effect. @@ -164,28 +164,28 @@ protected: public slots: void restart() { -<a name="x505"></a> movie.<a href="ntqmovie.html#restart">restart</a>(); +<a name="x505"></a> movie.<a href="tqmovie.html#restart">restart</a>(); repaint(); } void togglePause() { - if ( movie.<a href="ntqmovie.html#paused">paused</a>() ) -<a name="x508"></a> movie.<a href="ntqmovie.html#unpause">unpause</a>(); + if ( movie.<a href="tqmovie.html#paused">paused</a>() ) +<a name="x508"></a> movie.<a href="tqmovie.html#unpause">unpause</a>(); else -<a name="x503"></a> movie.<a href="ntqmovie.html#pause">pause</a>(); +<a name="x503"></a> movie.<a href="tqmovie.html#pause">pause</a>(); repaint(); } void step() { -<a name="x506"></a> movie.<a href="ntqmovie.html#step">step</a>(); +<a name="x506"></a> movie.<a href="tqmovie.html#step">step</a>(); repaint(); } void step10() { - movie.<a href="ntqmovie.html#step">step</a>(10); + movie.<a href="tqmovie.html#step">step</a>(10); repaint(); } @@ -199,7 +199,7 @@ private slots: <a href="ntqrect.html">TQRect</a> r = contentsRect(); - if ( r.<a href="ntqrect.html#size">size</a>() != movie.<a href="ntqmovie.html#framePixmap">framePixmap</a>().size() ) { + if ( r.<a href="ntqrect.html#size">size</a>() != movie.<a href="tqmovie.html#framePixmap">framePixmap</a>().size() ) { // Need to scale - redraw whole frame. repaint( r ); } else { @@ -245,11 +245,11 @@ public: <a href="ntqhbox.html">TQHBox</a>* hb = new <a href="ntqhbox.html">TQHBox</a>(this); <a href="ntqpushbutton.html">TQPushButton</a>* btn; btn = new <a href="ntqpushbutton.html">TQPushButton</a>("<<", hb); - <a href="tqobject.html#connect">connect</a>(btn, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), movie, TQ_SLOT(<a href="ntqmovie.html#restart">restart</a>())); + <a href="tqobject.html#connect">connect</a>(btn, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), movie, TQ_SLOT(<a href="tqmovie.html#restart">restart</a>())); btn = new <a href="ntqpushbutton.html">TQPushButton</a>("||", hb); <a href="tqobject.html#connect">connect</a>(btn, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), movie, TQ_SLOT(togglePause())); btn = new <a href="ntqpushbutton.html">TQPushButton</a>(">|", hb); - <a href="tqobject.html#connect">connect</a>(btn, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), movie, TQ_SLOT(<a href="ntqmovie.html#step">step</a>())); + <a href="tqobject.html#connect">connect</a>(btn, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), movie, TQ_SLOT(<a href="tqmovie.html#step">step</a>())); btn = new <a href="ntqpushbutton.html">TQPushButton</a>(">>|", hb); <a href="tqobject.html#connect">connect</a>(btn, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), movie, TQ_SLOT(step10())); } |