Diffstat (limited to 'noncore/games/zlines/klines.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/games/zlines/klines.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/noncore/games/zlines/klines.cpp b/noncore/games/zlines/klines.cpp index 02ff0db..76c94e2 100644 --- a/noncore/games/zlines/klines.cpp +++ b/noncore/games/zlines/klines.cpp @@ -1,89 +1,80 @@ /*************************************************************************** klines.cpp - description ------------------- begin : Fri May 19 2000 copyright : (C) 2000 by Roman Merzlyakov email : roman@sbrf.barrt.ru copyright : (C) 2000 by Roman Razilov email : Roman.Razilov@gmx.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ /* changes 21.05.2000 Roman Razilov Menu game/Next */ // // The implementation of the KLines widget // -#include <qkeycode.h> -#include <qlabel.h> -#include <qpushbutton.h> -#include <qtooltip.h> -#include <qstring.h> #include <stdlib.h> #include <unistd.h> #include <time.h> #include <qapplication.h> -#include <qmenubar.h> -#include <qpopupmenu.h> -#include "cfg.h" -#include <qstatusbar.h> #include "klines.h" /* Creates the KLines widget and sets saved options (if any). */ KLines::KLines(QWidget *par, const char* n, WFlags fl) : QMainWindow(par,n,fl) { time_t t; time(&t); srand((unsigned int)t + getpid()); setCaption(QString("ZLines")); mwidget = new MainWidget(this); setCentralWidget( mwidget ); lsb = mwidget->GetLsb(); lPrompt = mwidget->GetPrompt(); menu = menuBar(); game = new QPopupMenu; edit = new QPopupMenu; game->insertItem(tr("&New game"), this, SLOT(stopGame()), CTRL+Key_N ); game->insertSeparator(); game->insertItem(tr("Ne&xt"), this, SLOT(makeTurn()), Key_N ); game->insertSeparator(); idMenuPrompt = game->insertItem( tr("&Show next"), this, SLOT(switchPrompt()), CTRL+Key_P ); game->setCheckable(true); game->setItemChecked(idMenuPrompt, lPrompt->getState()); game->insertSeparator(); game->insertItem(tr("&Quit"), qApp, SLOT(quit()), CTRL+Key_Q ); idMenuUndo = edit->insertItem(tr("Und&o"), this, SLOT(undo()), CTRL+Key_Z ); menu->insertItem( tr("&Game"), game ); menu->insertItem( tr("&Edit"), edit ); menu->show(); score = 0; prev_score = 0; mwidget->setMessage(tr("Points: 0")); startGame(); |