summaryrefslogtreecommitdiffstats
path: root/twin4/twin4/scorewidget.h
blob: 7f94a6f7e89f459016c5ed201f76bcd0decaa886 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef _SCOREWIDGET_H
#define _SCOREWIDGET_H

#include <tqframe.h>
class TQVBoxLayout; 
class TQHBoxLayout; 
class TQGridLayout; 
class TQGroupBox;
class TQLabel;

class ScoreWidget : public TQFrame
{ 
    Q_OBJECT
  

public:
    ScoreWidget( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
    void setMove(int i);
    void setLevel(int i);
    void setChance(int i);
    void setPlayer(TQString s,int no);
    void setTurn(int i); 

protected:
    TQGroupBox* GroupBox1;
    TQLabel* TextLabel4;
    TQLabel* TextLabel5;
    TQLabel* TextLabel6;
    TQLabel* TextLabel1;
    TQLabel* TextLabel2;
    TQLabel* TextLabel3;
    TQLabel* TextLabel7;
    TQLabel* TextLabel8;
    TQLabel* TextLabel9;

protected:
    void paintEvent( TQPaintEvent * );
    void Paint(TQPainter *p,TQRect rect);
    void drawBorder(TQPainter *p,TQRect rect,int offset,int width,int mode);

protected:
    TQGridLayout* LayoutB;
};

#endif // _SCOREWIDGET_H