diff options
Diffstat (limited to 'q15/src/mainwindow.cpp')
-rw-r--r-- | q15/src/mainwindow.cpp | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/q15/src/mainwindow.cpp b/q15/src/mainwindow.cpp deleted file mode 100644 index 593b0fc9..00000000 --- a/q15/src/mainwindow.cpp +++ /dev/null @@ -1,51 +0,0 @@ -/* - * $Id: mainwindow.cpp,v 0.1 2005/08/14 11:25:03 denis Exp $ - * - * Author: Denis Kozadaev ([email protected]) - * Description: - * - * See also: style(9) - * - * Hacked by: - */ - -#include <tqapplication.h> - -#include "mainwindow.h" - -MainWindow::MainWindow(TQWidget *parent, const char *name) - :TQMainWindow(parent, name) -{ - file = new TQPopupMenu(this); - file->insertItem(tr("New"), this, SLOT(newGame()), TQt::CTRL + TQt::Key_N); - file->insertItem(tr("Load an image"), this, SLOT(loadImage()), - TQt::CTRL + TQt::Key_L); - file->insertItem(tr("Quit"), tqApp, SLOT(quit()), TQt::CTRL + TQt::Key_Q); - - menuBar()->insertItem(tr("File"), file); - - gb = new GameBoard(this); - setCentralWidget(gb); -} - -MainWindow::~MainWindow() -{ - delete gb; - delete file; -} - - -void -MainWindow::newGame() -{ - gb->newGame(); -} - - -void -MainWindow::loadImage() -{ - gb->loadImage(); -} - -#include "mainwindow.moc" |