-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgamedialogs.h
57 lines (41 loc) · 1.29 KB
/
gamedialogs.h
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
47
48
49
50
51
52
53
54
55
56
57
#ifndef GAMEDIALOGS_H
#define GAMEDIALOGS_H
#include "gamepanel.h"
////////////////////////////////////////////////////////////////////////////////
class LevelWinDialog : public GamePanel
{
Q_OBJECT
public:
LevelWinDialog(class GamePanelControl *panelControl);
void setScore(int score_) { score = score_; }
void setTime(int time_) { time = time_; }
void setLevel(int level_) { level = level_; }
signals:
void okClicked();
void cancelClicked();
protected:
virtual void paintContent(QPainter &p);
virtual void subcontrolClicked(int id);
class GameButton *buttonOk, *buttonCancel;
int score, time, level;
};
////////////////////////////////////////////////////////////////////////////////
class LevelFailDialog : public LevelWinDialog
{
Q_OBJECT
public:
LevelFailDialog(class GamePanelControl *panelControl);
protected:
virtual void paintContent(QPainter &p);
};
////////////////////////////////////////////////////////////////////////////////
class GameWinDialog : public LevelWinDialog
{
Q_OBJECT
public:
GameWinDialog(class GamePanelControl *panelControl);
protected:
virtual void paintContent(QPainter &p);
};
////////////////////////////////////////////////////////////////////////////////
#endif // GAMEDIALOGS_H