summaryrefslogtreecommitdiffstats
path: root/kolf/scoreboard.h
blob: f15a323a60411db38540259fa465f378a6ac0934 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef SCOREBOARD_H
#define SCOREBOARD_H

#include <tqtable.h>

class TQWidget;
class TQHeader;

class ScoreBoard : public TQTable
{
	Q_OBJECT
  TQ_OBJECT

public:
	ScoreBoard(TQWidget *tqparent = 0, const char *name = 0);
	int total(int id, TQString &name);

public slots:
	void newHole(int);
	void newPlayer(const TQString &name);
	void setScore(int id, int hole, int score);
	void parChanged(int hole, int par);

private:
	TQTable *table;
	TQHeader *vh;
	TQHeader *hh;
};

#endif