QTfrontend/frameTeam.h
author displacer
Fri, 18 Aug 2006 20:37:50 +0000
changeset 117 d21a48200772
parent 63 27e2b5bb6d4b
child 132 2d0f404cdf05
permissions -rw-r--r--
HWTeam integration in team select widget

#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);
  void removeTeam(HWTeam team);

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

#endif // _FRAME_TAM_INCLUDED