summaryrefslogtreecommitdiffstats
path: root/kenolaba/Spy.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitc90c389a8a8d9d8661e9772ec4144c5cf2039f23 (patch)
tree6d8391395bce9eaea4ad78958617edb20c6a7573 /kenolaba/Spy.h
downloadtdegames-c90c389a8a8d9d8661e9772ec4144c5cf2039f23.tar.gz
tdegames-c90c389a8a8d9d8661e9772ec4144c5cf2039f23.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kenolaba/Spy.h')
-rw-r--r--kenolaba/Spy.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/kenolaba/Spy.h b/kenolaba/Spy.h
new file mode 100644
index 00000000..f69d99d3
--- /dev/null
+++ b/kenolaba/Spy.h
@@ -0,0 +1,46 @@
+/* Class Spion
+ *
+ * Josef Weidendorfer, 10/97
+ */
+
+#ifndef _SPY_H_
+#define _SPY_H_
+
+
+#include <qlayout.h>
+#include "Board.h"
+
+
+class BoardWidget;
+class QLabel;
+
+class Spy: public QWidget
+{
+ Q_OBJECT
+
+public:
+ Spy(Board&);
+ ~Spy() {}
+
+ enum { BoardCount = 5 };
+
+ void clearActBoards();
+
+ void keyPressEvent(QKeyEvent *e);
+
+public slots:
+ void update(int,int,Move&,bool);
+ void updateBest(int,int,Move&,bool);
+ void nextStep();
+
+private:
+ bool next;
+ Board &board;
+ QBoxLayout *top;
+ BoardWidget *actBoard[BoardCount], *bestBoard[BoardCount];
+ QLabel *actLabel[BoardCount], *bestLabel[BoardCount];
+};
+
+
+
+#endif /* _SPION_H_ */