63
|
1 |
#ifndef _FRAME_TEAM_INCLUDED
|
|
2 |
#define _FRAME_TEAM_INCLUDED
|
|
3 |
|
|
4 |
#include <QWidget>
|
|
5 |
|
|
6 |
#include "teamselect.h"
|
|
7 |
#include <map>
|
|
8 |
|
|
9 |
class FrameTeams : public QWidget
|
|
10 |
{
|
|
11 |
Q_OBJECT
|
|
12 |
|
|
13 |
public:
|
|
14 |
FrameTeams(QWidget* parent=0);
|
|
15 |
QWidget* getTeamWidget(tmprop team);
|
|
16 |
|
|
17 |
public slots:
|
|
18 |
void addTeam(tmprop team);
|
|
19 |
void removeTeam(tmprop team);
|
|
20 |
|
|
21 |
private:
|
|
22 |
QVBoxLayout mainLayout;
|
|
23 |
typedef map<tmprop, QWidget*> tmapTeamToWidget;
|
|
24 |
tmapTeamToWidget teamToWidget;
|
|
25 |
};
|
|
26 |
|
|
27 |
#endif // _FRAME_TAM_INCLUDED
|