blob: 1fb9ee777ff9d8eb8d055759e01e646a90987637 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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__ */
|