QTfrontend/frameTeam.h
changeset 207 287077789132
parent 184 f97a7a3dc8f6
child 240 c7f0a4f7a54a
--- a/QTfrontend/frameTeam.h	Fri Oct 27 14:30:36 2006 +0000
+++ b/QTfrontend/frameTeam.h	Fri Oct 27 19:37:59 2006 +0000
@@ -20,6 +20,8 @@
 #define _FRAME_TEAM_INCLUDED
 
 #include <QWidget>
+#include <QList>
+#include <QColor>
 
 #include "teamselect.h"
 #include <map>
@@ -29,11 +31,13 @@
   Q_OBJECT
 
  friend class CHedgehogerWidget;
+ friend class TeamShowWidget;
 
  public:
   FrameTeams(QWidget* parent=0);
   QWidget* getTeamWidget(HWTeam team);
   bool isFullTeams() const;
+  void resetColors();
 
  public slots:
   void addTeam(HWTeam team, bool willPlay);
@@ -42,6 +46,9 @@
  private:
   const int maxHedgehogsPerGame;
   int overallHedgehogs;
+  QList<QColor> availableColors;
+  QList<QColor>::Iterator currentColor;
+    
   QVBoxLayout mainLayout;
   typedef map<HWTeam, QWidget*> tmapTeamToWidget;
   tmapTeamToWidget teamToWidget;