summaryrefslogtreecommitdiffstats
path: root/doc/html/movies-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-07-15 19:08:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-07-18 09:31:41 +0900
commita30f5359f03c3017fa19a6770fab32d25d22cb87 (patch)
treecb365dd7a1c3666e3f972c6cad04be7b8e846cba /doc/html/movies-example.html
parent25ad1267da6916e738a126ff5a9b41cd686adfc6 (diff)
downloadtqt3-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.html50
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 &lt;<a href="tqfiledialog-h.html">tqfiledialog.h</a>&gt;
#include &lt;<a href="qpushbutton-h.html">ntqpushbutton.h</a>&gt;
#include &lt;<a href="qlabel-h.html">ntqlabel.h</a>&gt;
-#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
+#include &lt;<a href="tqpainter-h.html">tqpainter.h</a>&gt;
#include &lt;<a href="qmessagebox-h.html">ntqmessagebox.h</a>&gt;
-#include &lt;<a href="qmovie-h.html">ntqmovie.h</a>&gt;
+#include &lt;<a href="tqmovie-h.html">tqmovie.h</a>&gt;
#include &lt;<a href="qvbox-h.html">ntqvbox.h</a>&gt;
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>&amp;)));
-<a name="x498"></a> movie.<a href="ntqmovie.html#connectResize">connectResize</a>(this, TQ_SLOT(movieResized(const <a href="tqsize.html">TQSize</a>&amp;)));
-<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>&amp;)));
+<a name="x498"></a> movie.<a href="tqmovie.html#connectResize">connectResize</a>(this, TQ_SLOT(movieResized(const <a href="tqsize.html">TQSize</a>&amp;)));
+<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>() &gt; 0) {
+<a name="x507"></a> } else if (movie.<a href="tqmovie.html#steps">steps</a>() &gt; 0) {
message = "FF &gt;&gt;";
}
@@ -137,20 +137,20 @@ protected:
// Find a good font size...
p-&gt;setFont(TQFont("Helvetica", 24));
- <a href="ntqfontmetrics.html">TQFontMetrics</a> fm = p-&gt;fontMetrics();
-<a name="x496"></a> if ( fm.<a href="ntqfontmetrics.html#width">width</a>(message) &gt; r.<a href="ntqrect.html#width">width</a>()-10 )
+ <a href="tqfontmetrics.html">TQFontMetrics</a> fm = p-&gt;fontMetrics();
+<a name="x496"></a> if ( fm.<a href="tqfontmetrics.html#width">width</a>(message) &gt; r.<a href="ntqrect.html#width">width</a>()-10 )
p-&gt;setFont(TQFont("Helvetica", 18));
fm = p-&gt;fontMetrics();
- if ( fm.<a href="ntqfontmetrics.html#width">width</a>(message) &gt; r.<a href="ntqrect.html#width">width</a>()-10 )
+ if ( fm.<a href="tqfontmetrics.html#width">width</a>(message) &gt; r.<a href="ntqrect.html#width">width</a>()-10 )
p-&gt;setFont(TQFont("Helvetica", 14));
fm = p-&gt;fontMetrics();
- if ( fm.<a href="ntqfontmetrics.html#width">width</a>(message) &gt; r.<a href="ntqrect.html#width">width</a>()-10 )
+ if ( fm.<a href="tqfontmetrics.html#width">width</a>(message) &gt; r.<a href="ntqrect.html#width">width</a>()-10 )
p-&gt;setFont(TQFont("Helvetica", 12));
fm = p-&gt;fontMetrics();
- if ( fm.<a href="ntqfontmetrics.html#width">width</a>(message) &gt; r.<a href="ntqrect.html#width">width</a>()-10 )
+ if ( fm.<a href="tqfontmetrics.html#width">width</a>(message) &gt; r.<a href="ntqrect.html#width">width</a>()-10 )
p-&gt;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>("&lt;&lt;", 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>("&gt;|", 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>("&gt;&gt;|", hb);
<a href="tqobject.html#connect">connect</a>(btn, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), movie, TQ_SLOT(step10()));
}