QTfrontend/frameTeam.h
author displacer
Sat, 16 Sep 2006 17:24:41 +0000
changeset 150 d9e8a336195c
parent 132 2d0f404cdf05
child 153 dc10da2a73f9
permissions -rw-r--r--
team hedgehogs number improved
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
63
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
     1
#ifndef _FRAME_TEAM_INCLUDED
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
     2
#define _FRAME_TEAM_INCLUDED
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
     3
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
     4
#include <QWidget>
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
     5
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
     6
#include "teamselect.h"
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
     7
#include <map>
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
     8
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
     9
class FrameTeams : public QWidget
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
    10
{
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
    11
  Q_OBJECT
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
    12
150
d9e8a336195c team hedgehogs number improved
displacer
parents: 132
diff changeset
    13
 friend class CHedgehogerWidget;
d9e8a336195c team hedgehogs number improved
displacer
parents: 132
diff changeset
    14
63
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
    15
 public:
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
    16
  FrameTeams(QWidget* parent=0);
117
d21a48200772 HWTeam integration in team select widget
displacer
parents: 63
diff changeset
    17
  QWidget* getTeamWidget(HWTeam team);
150
d9e8a336195c team hedgehogs number improved
displacer
parents: 132
diff changeset
    18
  bool isFullTeams() const;
63
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
    19
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
    20
 public slots:
132
2d0f404cdf05 first hedgehogs number selection added
displacer
parents: 117
diff changeset
    21
  void addTeam(HWTeam team, bool willPlay);
117
d21a48200772 HWTeam integration in team select widget
displacer
parents: 63
diff changeset
    22
  void removeTeam(HWTeam team);
63
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
    23
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
    24
 private:
150
d9e8a336195c team hedgehogs number improved
displacer
parents: 132
diff changeset
    25
  const int maxHedgehogsPerGame;
d9e8a336195c team hedgehogs number improved
displacer
parents: 132
diff changeset
    26
  int overallHedgehogs;
63
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
    27
  QVBoxLayout mainLayout;
117
d21a48200772 HWTeam integration in team select widget
displacer
parents: 63
diff changeset
    28
  typedef map<HWTeam, QWidget*> tmapTeamToWidget;
63
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
    29
  tmapTeamToWidget teamToWidget;
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
    30
};
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
    31
27e2b5bb6d4b Scroll added to team control widget
displacer
parents:
diff changeset
    32
#endif // _FRAME_TAM_INCLUDED