From fef846914f8db6dc117e206ef913d519bf6bb33e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 29 Jul 2024 12:43:23 +0900 Subject: Rename basic widget nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/t13-gamebrd-cpp.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'doc/html/t13-gamebrd-cpp.html') diff --git a/doc/html/t13-gamebrd-cpp.html b/doc/html/t13-gamebrd-cpp.html index d1140eb88..34186e59b 100644 --- a/doc/html/t13-gamebrd-cpp.html +++ b/doc/html/t13-gamebrd-cpp.html @@ -43,8 +43,8 @@ body { background: #ffffff; color: black; } #include <tqfont.h> #include <ntqapplication.h> #include <tqlabel.h> -#include <ntqpushbutton.h> -#include <ntqlcdnumber.h> +#include <tqpushbutton.h> +#include <tqlcdnumber.h> #include <ntqlayout.h> #include "lcdrange.h" @@ -53,7 +53,7 @@ body { background: #ffffff; color: black; } GameBoard::GameBoard( TQWidget *parent, const char *name ) : TQWidget( parent, name ) { - TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" ); + TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" ); quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); @@ -81,7 +81,7 @@ body { background: #ffffff; color: black; } connect( cannonField, TQ_SIGNAL(missed()), this, TQ_SLOT(missed()) ); - TQPushButton *shoot = new TQPushButton( "&Shoot", this, "shoot" ); + TQPushButton *shoot = new TQPushButton( "&Shoot", this, "shoot" ); shoot->setFont( TQFont( "Times", 18, TQFont::Bold ) ); connect( shoot, TQ_SIGNAL(clicked()), TQ_SLOT(fire()) ); @@ -89,13 +89,13 @@ body { background: #ffffff; color: black; } shoot, TQ_SLOT(setEnabled(bool)) ); TQPushButton *restart - = new TQPushButton( "&New Game", this, "newgame" ); + = new TQPushButton( "&New Game", this, "newgame" ); restart->setFont( TQFont( "Times", 18, TQFont::Bold ) ); connect( restart, TQ_SIGNAL(clicked()), this, TQ_SLOT(newGame()) ); - hits = new TQLCDNumber( 2, this, "hits" ); - shotsLeft = new TQLCDNumber( 2, this, "shotsleft" ); + hits = new TQLCDNumber( 2, this, "hits" ); + shotsLeft = new TQLCDNumber( 2, this, "shotsleft" ); TQLabel *hitsL = new TQLabel( "HITS", this, "hitsLabel" ); TQLabel *shotsLeftL = new TQLabel( "SHOTS LEFT", this, "shotsleftLabel" ); @@ -132,15 +132,15 @@ void GameBoard::fire() { if ( cannonField->gameOver() || cannonField->isShooting() ) return; - shotsLeft->display( shotsLeft->intValue() - 1 ); + shotsLeft->display( shotsLeft->intValue() - 1 ); cannonField->shoot(); } void GameBoard::hit() { - hits->display( hits->intValue() + 1 ); - if ( shotsLeft->intValue() == 0 ) + hits->display( hits->intValue() + 1 ); + if ( shotsLeft->intValue() == 0 ) cannonField->setGameOver(); else cannonField->newTarget(); @@ -149,15 +149,15 @@ void GameBoard::hit() void GameBoard::missed() { - if ( shotsLeft->intValue() == 0 ) + if ( shotsLeft->intValue() == 0 ) cannonField->setGameOver(); } void GameBoard::newGame() { - shotsLeft->display( 15 ); - hits->display( 0 ); + shotsLeft->display( 15 ); + hits->display( 0 ); cannonField->restartGame(); cannonField->newTarget(); } -- cgit v1.2.1