80
|
1 |
#ifndef _TEAMSEL_HELPER_INCLUDED
|
|
2 |
#define _TEAMSEL_HELPER_INCLUDED
|
|
3 |
|
|
4 |
#include <QLabel>
|
|
5 |
#include <QWidget>
|
|
6 |
#include <QString>
|
|
7 |
|
|
8 |
#include "teamselect.h"
|
|
9 |
|
|
10 |
class TeamLabel : public QLabel
|
|
11 |
{
|
|
12 |
Q_OBJECT
|
|
13 |
|
|
14 |
public:
|
|
15 |
TeamLabel(const QString& inp_str) : QLabel(inp_str) {};
|
|
16 |
|
|
17 |
signals:
|
|
18 |
void teamActivated(QString team_name);
|
|
19 |
|
|
20 |
public slots:
|
|
21 |
void teamButtonClicked();
|
|
22 |
|
|
23 |
};
|
|
24 |
|
|
25 |
class TeamShowWidget : public QWidget
|
|
26 |
{
|
|
27 |
Q_OBJECT
|
|
28 |
|
|
29 |
private slots:
|
|
30 |
void activateTeam();
|
|
31 |
|
|
32 |
public:
|
132
|
33 |
TeamShowWidget(HWTeam team, bool isPlaying, QWidget * parent = 0);
|
|
34 |
void setPlaying(bool isPlaying);
|
80
|
35 |
|
|
36 |
private:
|
|
37 |
QHBoxLayout mainLayout;
|
117
|
38 |
HWTeam m_team;
|
132
|
39 |
bool m_isPlaying;
|
80
|
40 |
|
|
41 |
signals:
|
117
|
42 |
void teamStatusChanged(HWTeam team);
|
80
|
43 |
};
|
|
44 |
|
|
45 |
#endif // _TEAMSEL_HELPER_INCLUDED
|