QTfrontend/teamselect.h
author unc0rr
Sat, 09 Sep 2006 17:59:25 +0000
changeset 141 ac3680be1f4b
parent 140 50ccde437ea1
child 151 9eb5a4cee35e
permissions -rw-r--r--
- Small fix for AI - Full-functional Multiplayer
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);
140
50ccde437ea1 teams and hedgedogs num selection added to HWgame
displacer
parents: 117
diff changeset
    26
  void resetPlayingTeams();
50ccde437ea1 teams and hedgedogs num selection added to HWgame
displacer
parents: 117
diff changeset
    27
  bool isPlaying(HWTeam team);
50ccde437ea1 teams and hedgedogs num selection added to HWgame
displacer
parents: 117
diff changeset
    28
  unsigned char numHedgedogs(HWTeam team);
50
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    29
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    30
private slots:
117
d21a48200772 HWTeam integration in team select widget
displacer
parents: 63
diff changeset
    31
  void changeTeamStatus(HWTeam team);
50
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    32
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    33
 private:
63
27e2b5bb6d4b Scroll added to team control widget
displacer
parents: 61
diff changeset
    34
  void addScrArea(FrameTeams* pfteams, QColor color);
27e2b5bb6d4b Scroll added to team control widget
displacer
parents: 61
diff changeset
    35
  FrameTeams* frameDontPlaying;
27e2b5bb6d4b Scroll added to team control widget
displacer
parents: 61
diff changeset
    36
  FrameTeams* framePlaying;
61
505691a09dee colors added to teamselwidget
displacer
parents: 50
diff changeset
    37
63
27e2b5bb6d4b Scroll added to team control widget
displacer
parents: 61
diff changeset
    38
  QVBoxLayout mainLayout;
50
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    39
117
d21a48200772 HWTeam integration in team select widget
displacer
parents: 63
diff changeset
    40
  list<HWTeam> curPlayingTeams;
d21a48200772 HWTeam integration in team select widget
displacer
parents: 63
diff changeset
    41
  list<HWTeam> curDontPlayingTeams;
50
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    42
};
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    43
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    44
#endif // _TEAM_SELECT_INCLUDED