diff options
Diffstat (limited to 'doc/html/t13-cannon-cpp.html')
-rw-r--r-- | doc/html/t13-cannon-cpp.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/html/t13-cannon-cpp.html b/doc/html/t13-cannon-cpp.html index ecf2bf8c8..be93bcc21 100644 --- a/doc/html/t13-cannon-cpp.html +++ b/doc/html/t13-cannon-cpp.html @@ -48,8 +48,8 @@ body { background: #ffffff; color: black; } #include <stdlib.h> -<a name="f94"></a>CannonField::CannonField( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name ) - : <a href="ntqwidget.html">TQWidget</a>( parent, name ) +<a name="f94"></a>CannonField::CannonField( <a href="tqwidget.html">TQWidget</a> *parent, const char *name ) + : <a href="tqwidget.html">TQWidget</a>( parent, name ) { ang = 45; f = 0; @@ -61,7 +61,7 @@ body { background: #ffffff; color: black; } shoot_f = 0; target = TQPoint( 0, 0 ); gameEnded = FALSE; - <a href="ntqwidget.html#setPalette">setPalette</a>( TQPalette( TQColor( 250, 250, 200) ) ); + <a href="tqwidget.html#setPalette">setPalette</a>( TQPalette( TQColor( 250, 250, 200) ) ); newTarget(); } @@ -75,7 +75,7 @@ void <a name="f95"></a>CannonField::setAngle( int degrees ) if ( ang == degrees ) return; ang = degrees; - <a href="ntqwidget.html#repaint">repaint</a>( cannonRect(), FALSE ); + <a href="tqwidget.html#repaint">repaint</a>( cannonRect(), FALSE ); emit angleChanged( ang ); } @@ -114,7 +114,7 @@ void <a name="f98"></a>CannonField::newTarget() <a href="ntqregion.html">TQRegion</a> r( targetRect() ); target = TQPoint( 200 + rand() % 190, 10 + rand() % 255 ); - <a href="ntqwidget.html#repaint">repaint</a>( r.<a href="ntqrect.html#unite">unite</a>( targetRect() ) ); + <a href="tqwidget.html#repaint">repaint</a>( r.<a href="ntqrect.html#unite">unite</a>( targetRect() ) ); } void <a name="f99"></a>CannonField::setGameOver() @@ -124,7 +124,7 @@ void <a name="f99"></a>CannonField::setGameOver() if ( isShooting() ) autoShootTimer-><a href="ntqtimer.html#stop">stop</a>(); gameEnded = TRUE; - <a href="ntqwidget.html#repaint">repaint</a>(); + <a href="tqwidget.html#repaint">repaint</a>(); } void <a name="f100"></a>CannonField::restartGame() @@ -132,7 +132,7 @@ void <a name="f100"></a>CannonField::restartGame() if ( isShooting() ) autoShootTimer-><a href="ntqtimer.html#stop">stop</a>(); gameEnded = FALSE; - <a href="ntqwidget.html#repaint">repaint</a>(); + <a href="tqwidget.html#repaint">repaint</a>(); emit canShoot( TRUE ); } @@ -155,11 +155,11 @@ void <a name="f101"></a>CannonField::moveShot() r = r.<a href="ntqrect.html#unite">unite</a>( TQRegion( shotR ) ); } - <a href="ntqwidget.html#repaint">repaint</a>( r ); + <a href="tqwidget.html#repaint">repaint</a>( r ); } -void CannonField::<a href="ntqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> *e ) +void CannonField::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> *e ) { <a href="ntqrect.html">TQRect</a> updateR = e-><a href="qpaintevent.html#rect">rect</a>(); <a href="ntqpainter.html">TQPainter</a> p( this ); @@ -167,7 +167,7 @@ void CannonField::<a href="ntqwidget.html#paintEvent">paintEvent</a>( <a href="q if ( gameEnded ) { p.<a href="ntqpainter.html#setPen">setPen</a>( black ); p.<a href="ntqpainter.html#setFont">setFont</a>( TQFont( "Courier", 48, TQFont::Bold ) ); - p.<a href="ntqpainter.html#drawText">drawText</a>( <a href="ntqwidget.html#rect">rect</a>(), AlignCenter, "Game Over" ); + p.<a href="ntqpainter.html#drawText">drawText</a>( <a href="tqwidget.html#rect">rect</a>(), AlignCenter, "Game Over" ); } if ( updateR.<a href="ntqrect.html#intersects">intersects</a>( cannonRect() ) ) paintCannon( &p ); @@ -219,7 +219,7 @@ void <a name="f104"></a>CannonField::paintCannon( <a href="ntqpainter.html">TQPa TQRect <a name="f105"></a>CannonField::cannonRect() const { <a href="ntqrect.html">TQRect</a> r( 0, 0, 50, 50 ); - r.<a href="ntqrect.html#moveBottomLeft">moveBottomLeft</a>( <a href="ntqwidget.html#rect">rect</a>().bottomLeft() ); + r.<a href="ntqrect.html#moveBottomLeft">moveBottomLeft</a>( <a href="tqwidget.html#rect">rect</a>().bottomLeft() ); return r; } @@ -259,7 +259,7 @@ bool <a name="f108"></a>CannonField::isShooting() const } -TQSizePolicy CannonField::<a href="ntqwidget.html#sizePolicy">sizePolicy</a>() const +TQSizePolicy CannonField::<a href="tqwidget.html#sizePolicy">sizePolicy</a>() const { return TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ); } |