QTfrontend/frameTeam.h
author unc0rr
Wed, 13 Sep 2006 19:26:16 +0000
changeset 144 e6084b0c9316
parent 132 2d0f404cdf05
child 150 d9e8a336195c
permissions -rw-r--r--
- Fix 'new team' regression - Some improvements to AI

#ifndef _FRAME_TEAM_INCLUDED
#define _FRAME_TEAM_INCLUDED

#include <QWidget>

#include "teamselect.h"
#include <map>

class FrameTeams : public QWidget
{
  Q_OBJECT

 public:
  FrameTeams(QWidget* parent=0);
  QWidget* getTeamWidget(HWTeam team);

 public slots:
  void addTeam(HWTeam team, bool willPlay);
  void removeTeam(HWTeam team);

 private:
  QVBoxLayout mainLayout;
  typedef map<HWTeam, QWidget*> tmapTeamToWidget;
  tmapTeamToWidget teamToWidget;
};

#endif // _FRAME_TAM_INCLUDED