author | zecke <zecke> | 2004-02-17 15:55:24 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-02-17 15:55:24 (UTC) |
commit | 1207607ebbc59841718b79508fc222cb4eee9fde (patch) (unidiff) | |
tree | 60c292a98621385006fbacca82dd11326765c0ab /noncore/games/zsame/ZSameWidget.h | |
parent | 2ec4085cc290a212c7bec8bdf7a2475f3ee6e069 (diff) | |
download | opie-1207607ebbc59841718b79508fc222cb4eee9fde.zip opie-1207607ebbc59841718b79508fc222cb4eee9fde.tar.gz opie-1207607ebbc59841718b79508fc222cb4eee9fde.tar.bz2 |
Add the source of zsame
Diffstat (limited to 'noncore/games/zsame/ZSameWidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/zsame/ZSameWidget.h | 56 |
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 | |||
7 | class Config; | ||
8 | class QAction; | ||
9 | class ZSameWidget : public QMainWindow { | ||
10 | Q_OBJECT | ||
11 | public: | ||
12 | static QString appName() { return QString::fromLatin1("zsame"); } | ||
13 | ZSameWidget(QWidget* parent, const char* name, WFlags fl ); | ||
14 | ~ZSameWidget(); | ||
15 | |||
16 | private: | ||
17 | void desktop_widget(int *f)const; | ||
18 | StoneWidget *stone; | ||
19 | QAction *restart; | ||
20 | QAction *undo; | ||
21 | |||
22 | int multispin_item; | ||
23 | |||
24 | protected: | ||
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 | |||
32 | public 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 | ||