summaryrefslogtreecommitdiffstats
path: root/kolf/scoreboard.h
diff options
context:
space:
mode:
Diffstat (limited to 'kolf/scoreboard.h')
-rw-r--r--kolf/scoreboard.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/kolf/scoreboard.h b/kolf/scoreboard.h
new file mode 100644
index 00000000..b9dc78f4
--- /dev/null
+++ b/kolf/scoreboard.h
@@ -0,0 +1,29 @@
+#ifndef SCOREBOARD_H
+#define SCOREBOARD_H
+
+#include <qtable.h>
+
+class QWidget;
+class QHeader;
+
+class ScoreBoard : public QTable
+{
+ Q_OBJECT
+
+public:
+ ScoreBoard(QWidget *parent = 0, const char *name = 0);
+ int total(int id, QString &name);
+
+public slots:
+ void newHole(int);
+ void newPlayer(const QString &name);
+ void setScore(int id, int hole, int score);
+ void parChanged(int hole, int par);
+
+private:
+ QTable *table;
+ QHeader *vh;
+ QHeader *hh;
+};
+
+#endif