summaryrefslogtreecommitdiff
path: root/noncore/games/zsame/ZSameWidget.h
Unidiff
Diffstat (limited to 'noncore/games/zsame/ZSameWidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/zsame/ZSameWidget.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/noncore/games/zsame/ZSameWidget.h b/noncore/games/zsame/ZSameWidget.h
new file mode 100644
index 0000000..f31cbb7
--- a/dev/null
+++ b/noncore/games/zsame/ZSameWidget.h
@@ -0,0 +1,56 @@
1#ifndef ZSAME_WIDGET_H
2#define ZSAME_WIDGET_H
3
4#include "StoneWidget.h"
5#include <qmainwindow.h>
6
7class Config;
8class QAction;
9class ZSameWidget : public QMainWindow {
10 Q_OBJECT
11public:
12 static QString appName() { return QString::fromLatin1("zsame"); }
13 ZSameWidget(QWidget* parent, const char* name, WFlags fl );
14 ~ZSameWidget();
15
16private:
17 void desktop_widget(int *f)const;
18 StoneWidget *stone;
19 QAction *restart;
20 QAction *undo;
21
22 int multispin_item;
23
24protected:
25 void newGame( unsigned int board,int colors);
26
27 virtual void saveProperties(Config *conf);
28 virtual void readProperties(Config *conf);
29
30 bool confirmAbort();
31
32public slots:
33 void sizeChanged();
34
35/* File Menu */
36 void m_new();
37 void m_restart();
38 void m_load();
39 void m_save();
40 void m_showhs();
41 void m_quit();
42 void m_undo();
43
44/* Options Menu */
45 void m_tglboard();
46
47 void gameover();
48 void setColors(int colors);
49 void setBoard(int board);
50 void setScore(int score);
51 void setMarked(int m);
52 void stonesRemoved(int,int);
53};
54
55
56#endif