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:
|
117
|
33 |
TeamShowWidget(HWTeam team, QWidget * parent = 0);
|
80
|
34 |
|
|
35 |
private:
|
|
36 |
QHBoxLayout mainLayout;
|
117
|
37 |
HWTeam m_team;
|
80
|
38 |
|
|
39 |
signals:
|
117
|
40 |
void teamStatusChanged(HWTeam team);
|
80
|
41 |
};
|
|
42 |
|
|
43 |
#endif // _TEAMSEL_HELPER_INCLUDED
|