diff options
author | Denis Kozadaev <[email protected]> | 2020-03-28 14:31:25 +0300 |
---|---|---|
committer | gregory guy <[email protected]> | 2020-12-01 12:20:38 +0100 |
commit | b4978e97409c609686dc6eb97b150ed2e677ff13 (patch) | |
tree | cdaa6c2b2860f61df0d8942d8b8c6ea6dca98bb0 /q15/src/mainwindow.h | |
parent | 66bc1814115c78f72920527f7ad1495a8317acac (diff) | |
download | tdegames-b4978e97409c609686dc6eb97b150ed2e677ff13.tar.gz tdegames-b4978e97409c609686dc6eb97b150ed2e677ff13.zip |
fifteen puzzle game
Signed-off-by: Denis Kozadaev <[email protected]>
Diffstat (limited to 'q15/src/mainwindow.h')
-rw-r--r-- | q15/src/mainwindow.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/q15/src/mainwindow.h b/q15/src/mainwindow.h new file mode 100644 index 00000000..1fb9ee77 --- /dev/null +++ b/q15/src/mainwindow.h @@ -0,0 +1,53 @@ +/* + * $Id: mainwindow.h,v 0.1 2005/08/14 11:25:03 denis Exp $ + * + * Author: Denis Kozadaev ([email protected]) + * Description: + * + * See also: style(9) + * + * Hacked by: + */ + +#ifndef __MAIN_WINDOW_H__ +#define __MAIN_WINDOW_H__ + +#include <stdlib.h> + +#if QT_VERSION >= 0x040000 +#include <QtGui/QMainWindow> +#include <QtGui/QMenuBar> +#include <QtGui/QMenu> +#else +#include <ntqmainwindow.h> +#include <ntqmenubar.h> +#include <ntqpopupmenu.h> +#endif + +#include "gameboard.h" + +class MainWindow:public TQMainWindow +{ + Q_OBJECT +public: +#if QT_VERSION >= 0x040000 + MainWindow(QWidget *parent = NULL); +#else + MainWindow(TQWidget *parent = NULL, const char *name = NULL); +#endif + ~MainWindow(); + +private: +#if QT_VERSION >= 0x040000 + QMenu *file; +#else + TQPopupMenu *file; +#endif + GameBoard *gb; + +private slots: + void newGame(); + void loadImage(); +}; + +#endif /* __MAIN_WINDOW_H__ */ |