summaryrefslogtreecommitdiff
path: root/noncore/games/zsame/ZSameWidget.h
authorzecke <zecke>2004-02-17 15:55:24 (UTC)
committer zecke <zecke>2004-02-17 15:55:24 (UTC)
commit1207607ebbc59841718b79508fc222cb4eee9fde (patch) (side-by-side diff)
tree60c292a98621385006fbacca82dd11326765c0ab /noncore/games/zsame/ZSameWidget.h
parent2ec4085cc290a212c7bec8bdf7a2475f3ee6e069 (diff)
downloadopie-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.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 @@
+#ifndef ZSAME_WIDGET_H
+#define ZSAME_WIDGET_H
+
+#include "StoneWidget.h"
+#include <qmainwindow.h>
+
+class Config;
+class QAction;
+class ZSameWidget : public QMainWindow {
+ Q_OBJECT
+public:
+ static QString appName() { return QString::fromLatin1("zsame"); }
+ ZSameWidget(QWidget* parent, const char* name, WFlags fl );
+ ~ZSameWidget();
+
+private:
+ void desktop_widget(int *f)const;
+ StoneWidget *stone;
+ QAction *restart;
+ QAction *undo;
+
+ int multispin_item;
+
+protected:
+ void newGame( unsigned int board,int colors);
+
+ virtual void saveProperties(Config *conf);
+ virtual void readProperties(Config *conf);
+
+ bool confirmAbort();
+
+public slots:
+ void sizeChanged();
+
+/* File Menu */
+ void m_new();
+ void m_restart();
+ void m_load();
+ void m_save();
+ void m_showhs();
+ void m_quit();
+ void m_undo();
+
+/* Options Menu */
+ void m_tglboard();
+
+ void gameover();
+ void setColors(int colors);
+ void setBoard(int board);
+ void setScore(int score);
+ void setMarked(int m);
+ void stonesRemoved(int,int);
+};
+
+
+#endif