QTfrontend/teamselect.h
author unc0rr
Sun, 20 Aug 2006 19:22:12 +0000
changeset 123 6987769ced3d
parent 117 d21a48200772
child 140 50ccde437ea1
permissions -rw-r--r--
Various small fixes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
50
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
     1
#ifndef _TEAM_SELECT_INCLUDED
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
     2
#define _TEAM_SELECT_INCLUDED
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
     3
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
     4
#include <QWidget>
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
     5
#include <QVBoxLayout>
63
27e2b5bb6d4b Scroll added to team control widget
displacer
parents: 61
diff changeset
     6
class QFrame;
50
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
     7
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
     8
#include <list>
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
     9
#include <map>
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    10
117
d21a48200772 HWTeam integration in team select widget
displacer
parents: 63
diff changeset
    11
#include "team.h"
d21a48200772 HWTeam integration in team select widget
displacer
parents: 63
diff changeset
    12
63
27e2b5bb6d4b Scroll added to team control widget
displacer
parents: 61
diff changeset
    13
class TeamSelWidget;
27e2b5bb6d4b Scroll added to team control widget
displacer
parents: 61
diff changeset
    14
class FrameTeams;
27e2b5bb6d4b Scroll added to team control widget
displacer
parents: 61
diff changeset
    15
50
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    16
using namespace std;
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    17
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    18
class TeamSelWidget : public QWidget
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    19
{
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    20
  Q_OBJECT
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    21
 
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    22
 public:
61
505691a09dee colors added to teamselwidget
displacer
parents: 50
diff changeset
    23
  TeamSelWidget(QWidget* parent=0);
117
d21a48200772 HWTeam integration in team select widget
displacer
parents: 63
diff changeset
    24
  void addTeam(HWTeam team);
d21a48200772 HWTeam integration in team select widget
displacer
parents: 63
diff changeset
    25
  //void removeTeam(HWTeam team);
50
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    26
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    27
private slots:
117
d21a48200772 HWTeam integration in team select widget
displacer
parents: 63
diff changeset
    28
  void changeTeamStatus(HWTeam team);
50
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    29
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    30
 private:
63
27e2b5bb6d4b Scroll added to team control widget
displacer
parents: 61
diff changeset
    31
  void addScrArea(FrameTeams* pfteams, QColor color);
27e2b5bb6d4b Scroll added to team control widget
displacer
parents: 61
diff changeset
    32
  FrameTeams* frameDontPlaying;
27e2b5bb6d4b Scroll added to team control widget
displacer
parents: 61
diff changeset
    33
  FrameTeams* framePlaying;
61
505691a09dee colors added to teamselwidget
displacer
parents: 50
diff changeset
    34
63
27e2b5bb6d4b Scroll added to team control widget
displacer
parents: 61
diff changeset
    35
  QVBoxLayout mainLayout;
50
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    36
117
d21a48200772 HWTeam integration in team select widget
displacer
parents: 63
diff changeset
    37
  list<HWTeam> curPlayingTeams;
d21a48200772 HWTeam integration in team select widget
displacer
parents: 63
diff changeset
    38
  list<HWTeam> curDontPlayingTeams;
50
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    39
};
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    40
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    41
#endif // _TEAM_SELECT_INCLUDED