author | imm <imm> | 2002-08-31 22:42:59 (UTC) |
---|---|---|
committer | imm <imm> | 2002-08-31 22:42:59 (UTC) |
commit | 754ba2082e46197a5b5c7b0885f36ed42785631a (patch) (side-by-side diff) | |
tree | 64bbcccb27725f84fad86f0b25ceb1eba5d47e46 /noncore/games/bounce/kbounce.cpp | |
parent | 89587f7c6ae60715644d06a60c16bc5c88075e29 (diff) | |
download | opie-754ba2082e46197a5b5c7b0885f36ed42785631a.zip opie-754ba2082e46197a5b5c7b0885f36ed42785631a.tar.gz opie-754ba2082e46197a5b5c7b0885f36ed42785631a.tar.bz2 |
zbounce -> bounce
Diffstat (limited to 'noncore/games/bounce/kbounce.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/bounce/kbounce.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/games/bounce/kbounce.cpp b/noncore/games/bounce/kbounce.cpp index c1c0f70..f703f74 100644 --- a/noncore/games/bounce/kbounce.cpp +++ b/noncore/games/bounce/kbounce.cpp @@ -8,49 +8,49 @@ * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <qlayout.h> #include <qtimer.h> #include <qlcdnumber.h> #include <qmessagebox.h> #include <qmainwindow.h> #include <qpe/qpeapplication.h> #include "kbounce.h" #include "game.h" #include <qlabel.h> KJezzball::KJezzball() : QMainWindow(0), m_gameWidget( 0 ) { - setCaption(tr("ZBounce")); + setCaption(tr("Bounce")); // setup variables m_game.level = 1; m_game.score = 0; m_state = Idle; menu = menuBar(); game = new QPopupMenu; game->insertItem(tr("&New game"), this, SLOT(newGame()), Key_N ); game->insertItem(tr("&Pause game"), this, SLOT(pauseGame()), Key_P ); game->insertSeparator(); game->insertItem(tr("&About"), this, SLOT(about())); menu->insertItem( tr("&Game"), game ); // create widgets m_view = new QWidget( this, "m_view" ); setCentralWidget( m_view ); m_layout = new QGridLayout( m_view ); m_layout->setSpacing( 0 ); m_layout->setMargin( 0 ); ScoreLabel = new QLabel( m_view, "ScoreLabel" ); ScoreLabel->setText( tr( "Score: 00" ) ); @@ -79,49 +79,49 @@ KJezzball::KJezzball() : QMainWindow(0), m_gameWidget( 0 ) // create timers m_nextLevelTimer = new QTimer( this, "m_nextLevelTimer" ); connect( m_nextLevelTimer, SIGNAL(timeout()), this, SLOT(switchLevel()) ); m_gameOverTimer = new QTimer( this, "m_gameOverTimer" ); connect( m_gameOverTimer, SIGNAL(timeout()), this, SLOT(gameOverNow()) ); m_timer = new QTimer( this, "m_timer" ); connect( m_timer, SIGNAL(timeout()), this, SLOT(second()) ); // create demo game createLevel( 1 ); } void KJezzball::newGame() { // Check for running game closeGame(); if ( m_state==Idle ) { // update displays m_game.level = 1; m_game.score = 0; - setCaption(tr("ZBounce Level %1").arg(m_game.level)); + setCaption(tr("Bounce Level %1").arg(m_game.level)); ScoreLabel->setText( tr( "Score: %1" ).arg(m_game.score) ); // start new game m_state = Running; createLevel( m_game.level ); startLevel(); } } void KJezzball::about() { QMessageBox::information( this, "About", "Written by: Stefan Schimanski\nPorted by: Martin Imobersteg\n\nThis program is distributed under\nthe terms of the GPL v2." ); } void KJezzball::closeGame() { if ( m_state!=Idle ) { stopLevel(); m_state = Idle; } } |