summaryrefslogtreecommitdiffstats
path: root/doc/html/tutorial1-14.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/tutorial1-14.html')
-rw-r--r--doc/html/tutorial1-14.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/html/tutorial1-14.html b/doc/html/tutorial1-14.html
index fdf985631..87623cd6a 100644
--- a/doc/html/tutorial1-14.html
+++ b/doc/html/tutorial1-14.html
@@ -79,13 +79,13 @@ three mouse event handlers. The names say it all.
<p> This private function checks if a point is inside the barrel of the cannon.
<p> <pre> bool barrelPressed;
</pre>
-<p> This private variable is TRUE if the user has pressed the mouse on the
+<p> This private variable is true if the user has pressed the mouse on the
barrel and not released it.
<p> <h3> <a href="t14-cannon-cpp.html">t14/cannon.cpp</a>
</h3>
<a name="1-2"></a><p>
-<p> <pre> barrelPressed = FALSE;
+<p> <pre> barrelPressed = false;
</pre>
<p> This line has been added to the constructor. Initially, the mouse is
not pressed on the barrel.
@@ -99,7 +99,7 @@ the third, too.
if ( e-&gt;<a href="tqmouseevent.html#button">button</a>() != LeftButton )
return;
<a name="x2418"></a> if ( barrelHit( e-&gt;<a href="tqmouseevent.html#pos">pos</a>() ) )
- barrelPressed = TRUE;
+ barrelPressed = true;
}
</pre>
<p> This is a TQt event handler. It is called when the user presses a
@@ -107,7 +107,7 @@ mouse button when the mouse cursor is over the widget.
<p> If the event was not generated by the left mouse button, we return
immediately. Otherwise, we check if the position of the mouse cursor
is within the cannon's barrel. If it is, we set <tt>barrelPressed</tt> to
-TRUE.
+true.
<p> Notice that the pos() function returns a point in the widget's
coordinate system.
<p> <pre> void CannonField::<a href="tqwidget.html#mouseMoveEvent">mouseMoveEvent</a>( <a href="tqmouseevent.html">TQMouseEvent</a> *e )
@@ -140,7 +140,7 @@ value converted to degrees.
<p> <pre> <a name="x2432"></a>void CannonField::<a href="tqwidget.html#mouseReleaseEvent">mouseReleaseEvent</a>( <a href="tqmouseevent.html">TQMouseEvent</a> *e )
{
<a name="x2417"></a> if ( e-&gt;<a href="tqmouseevent.html#button">button</a>() == LeftButton )
- barrelPressed = FALSE;
+ barrelPressed = false;
}
</pre>
<p> This TQt event handler is called whenever the user releases a mouse
@@ -178,8 +178,8 @@ the bottom edge of the barrier to the bottom edge of the widget.
<a name="x2434"></a><a name="x2426"></a> return barrelRect.<a href="tqrect.html#contains">contains</a>( mtx.<a href="tqwmatrix.html#map">map</a>(p) );
}
</pre>
-<p> This function returns TRUE if the point is in the barrel; otherwise it returns
-FALSE.
+<p> This function returns true if the point is in the barrel; otherwise it returns
+false.
<p> Here we use the class <a href="tqwmatrix.html">TQWMatrix</a>. It is defined in the header file
tqwmatrix.h, which is included by tqpainter.h.
<p> <a href="tqwmatrix.html">TQWMatrix</a> defines a coordinate system mapping. It can perform the same
@@ -191,7 +191,7 @@ coordinate system and then we rotate it.
inside the barrel. To do this, we invert the <a href="tqwmatrix.html#TransformationMode">transformation matrix</a>.
The inverted matrix performs the inverse transformation that we used
when drawing the barrel. We map the point <tt>p</tt> using the inverted
-matrix and return TRUE if it is inside the original barrel rectangle.
+matrix and return true if it is inside the original barrel rectangle.
<p> <h3> <a href="t14-gamebrd-cpp.html">t14/gamebrd.cpp</a>
</h3>
<a name="1-3"></a><p>