QTfrontend/teamselect.h
author displacer
Mon, 18 Sep 2006 17:56:27 +0000
changeset 152 c558957ef644
parent 151 9eb5a4cee35e
child 153 dc10da2a73f9
permissions -rw-r--r--
teams moving order fixed
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);
151
9eb5a4cee35e reset playing teams
displacer
parents: 140
diff changeset
    26
  void resetPlayingTeams(const QStringList& teamslist);
152
c558957ef644 teams moving order fixed
displacer
parents: 151
diff changeset
    27
  bool isPlaying(HWTeam team) const;
c558957ef644 teams moving order fixed
displacer
parents: 151
diff changeset
    28
  unsigned char numHedgedogs(HWTeam team) const;
c558957ef644 teams moving order fixed
displacer
parents: 151
diff changeset
    29
  list<HWTeam> getPlayingTeams() const;
50
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    30
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    31
private slots:
117
d21a48200772 HWTeam integration in team select widget
displacer
parents: 63
diff changeset
    32
  void changeTeamStatus(HWTeam team);
50
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    33
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    34
 private:
63
27e2b5bb6d4b Scroll added to team control widget
displacer
parents: 61
diff changeset
    35
  void addScrArea(FrameTeams* pfteams, QColor color);
27e2b5bb6d4b Scroll added to team control widget
displacer
parents: 61
diff changeset
    36
  FrameTeams* frameDontPlaying;
27e2b5bb6d4b Scroll added to team control widget
displacer
parents: 61
diff changeset
    37
  FrameTeams* framePlaying;
61
505691a09dee colors added to teamselwidget
displacer
parents: 50
diff changeset
    38
63
27e2b5bb6d4b Scroll added to team control widget
displacer
parents: 61
diff changeset
    39
  QVBoxLayout mainLayout;
50
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    40
117
d21a48200772 HWTeam integration in team select widget
displacer
parents: 63
diff changeset
    41
  list<HWTeam> curPlayingTeams;
d21a48200772 HWTeam integration in team select widget
displacer
parents: 63
diff changeset
    42
  list<HWTeam> curDontPlayingTeams;
50
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    43
};
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    44
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    45
#endif // _TEAM_SELECT_INCLUDED