summaryrefslogtreecommitdiffstats
path: root/klickety/field.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 /klickety/field.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 'klickety/field.h')
-rw-r--r--klickety/field.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/klickety/field.h b/klickety/field.h
new file mode 100644
index 00000000..67e6529b
--- /dev/null
+++ b/klickety/field.h
@@ -0,0 +1,33 @@
+#ifndef KL_FIELD_H
+#define KL_FIELD_H
+
+#include <qwidget.h>
+
+#include "base/field.h"
+#include "base/inter.h"
+
+class KGameLCDClock;
+
+class Field : public QWidget, public BaseField, public BaseInterface
+{
+ Q_OBJECT
+ public:
+ Field(QWidget *parent);
+
+ private slots:
+ void scoreUpdatedSlot() { scoreUpdated(); }
+ void start();
+ void gameOver();
+ void settingsChanged() { BaseField::settingsChanged(); }
+
+ private:
+ KGameLCDClock *elapsedTime;
+
+ void pause();
+ KExtHighscore::Score currentScore() const;
+ void _start() { start(); }
+ void _pause() { pause(); }
+ bool _isPaused() const;
+};
+
+#endif