summaryrefslogtreecommitdiffstats
path: root/doc/html/tutorial1-11.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/tutorial1-11.html')
-rw-r--r--doc/html/tutorial1-11.html20
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/html/tutorial1-11.html b/doc/html/tutorial1-11.html
index e4e977a6..ce5de2a6 100644
--- a/doc/html/tutorial1-11.html
+++ b/doc/html/tutorial1-11.html
@@ -59,7 +59,7 @@ implementation.
void moveShot();
</pre>
<p> This private slot is used to move the shot while it is in the air,
-using a <a href="ntqtimer.html">TQTimer</a>.
+using a <a href="tqtimer.html">TQTimer</a>.
<p> <pre> private:
void paintShot( <a href="ntqpainter.html">TQPainter</a> * );
</pre>
@@ -69,7 +69,7 @@ using a <a href="ntqtimer.html">TQTimer</a>.
<p> This private function returns the shot's enclosing rectangle if
one is in the air; otherwise the returned rectangle is undefined.
<p> <pre> int timerCount;
- <a href="ntqtimer.html">TQTimer</a> * autoShootTimer;
+ <a href="tqtimer.html">TQTimer</a> * autoShootTimer;
float shoot_ang;
float shoot_f;
};
@@ -91,24 +91,24 @@ when the shot was fired.
ang = 45;
f = 0;
timerCount = 0;
- autoShootTimer = new <a href="ntqtimer.html">TQTimer</a>( this, "movement handler" );
- <a name="x2379"></a> <a href="tqobject.html#connect">connect</a>( autoShootTimer, TQ_SIGNAL(<a href="ntqtimer.html#timeout">timeout</a>()),
+ autoShootTimer = new <a href="tqtimer.html">TQTimer</a>( this, "movement handler" );
+ <a name="x2379"></a> <a href="tqobject.html#connect">connect</a>( autoShootTimer, TQ_SIGNAL(<a href="tqtimer.html#timeout">timeout</a>()),
this, TQ_SLOT(moveShot()) );
shoot_ang = 0;
shoot_f = 0;
<a href="tqwidget.html#setPalette">setPalette</a>( TQPalette( TQColor( 250, 250, 200) ) );
}
</pre>
-<p> We initialize our new private variables and connect the <a href="ntqtimer.html#timeout">TQTimer::timeout</a>() signal to our moveShot() slot. We'll move the
+<p> We initialize our new private variables and connect the <a href="tqtimer.html#timeout">TQTimer::timeout</a>() signal to our moveShot() slot. We'll move the
shot every time the timer times out.
<p> <pre> void CannonField::shoot()
{
- <a name="x2376"></a> if ( autoShootTimer-&gt;<a href="ntqtimer.html#isActive">isActive</a>() )
+ <a name="x2376"></a> if ( autoShootTimer-&gt;<a href="tqtimer.html#isActive">isActive</a>() )
return;
timerCount = 0;
shoot_ang = ang;
shoot_f = f;
- <a name="x2377"></a> autoShootTimer-&gt;<a href="ntqtimer.html#start">start</a>( 50 );
+ <a name="x2377"></a> autoShootTimer-&gt;<a href="tqtimer.html#start">start</a>( 50 );
}
</pre>
<p> This function shoots a shot unless a shot is in the air. The <tt>timerCount</tt>
@@ -122,14 +122,14 @@ cannon angle and force. Finally, we start the timer.
<a href="ntqrect.html">TQRect</a> shotR = shotRect();
if ( shotR.<a href="ntqrect.html#x">x</a>() &gt; width() || shotR.<a href="ntqrect.html#y">y</a>() &gt; height() )
- <a name="x2378"></a> autoShootTimer-&gt;<a href="ntqtimer.html#stop">stop</a>();
+ <a name="x2378"></a> autoShootTimer-&gt;<a href="tqtimer.html#stop">stop</a>();
else
<a name="x2373"></a> r = r.<a href="ntqrect.html#unite">unite</a>( TQRegion( shotR ) );
<a href="tqwidget.html#repaint">repaint</a>( r );
}
</pre>
<p> moveShot() is the slot that moves the shot, called every 50
-milliseconds when the <a href="ntqtimer.html">TQTimer</a> fires.
+milliseconds when the <a href="tqtimer.html">TQTimer</a> fires.
<p> Its tasks are to compute the new position, repaint the screen with the
shot in the new position, and if necessary, stop the timer.
<p> First we make a <a href="ntqregion.html">TQRegion</a> that holds the old shotRect(). A <a href="ntqregion.html">TQRegion</a>
@@ -150,7 +150,7 @@ for just the one or two rectangles that need updating.
<a name="x2370"></a> if ( updateR.<a href="ntqrect.html#intersects">intersects</a>( cannonRect() ) )
paintCannon( &amp;p );
- if ( autoShootTimer-&gt;<a href="ntqtimer.html#isActive">isActive</a>() &amp;&amp;
+ if ( autoShootTimer-&gt;<a href="tqtimer.html#isActive">isActive</a>() &amp;&amp;
updateR.<a href="ntqrect.html#intersects">intersects</a>( shotRect() ) )
paintShot( &amp;p );
}