QTfrontend/teamselect.h
changeset 117 d21a48200772
parent 63 27e2b5bb6d4b
child 140 50ccde437ea1
--- a/QTfrontend/teamselect.h	Fri Aug 18 19:59:16 2006 +0000
+++ b/QTfrontend/teamselect.h	Fri Aug 18 20:37:50 2006 +0000
@@ -8,35 +8,24 @@
 #include <list>
 #include <map>
 
+#include "team.h"
+
 class TeamSelWidget;
 class FrameTeams;
 
 using namespace std;
 
-struct tmprop
-{
-  tmprop(QString nm) : teamName(nm) {};
-  QString teamName;
-  QString pixmapFileName;
-  bool operator==(const tmprop& t1) const {
-    return teamName==t1.teamName;
-  };
-  bool operator<(const tmprop& t1) const {
-    return teamName<t1.teamName;
-  };
-};
-
 class TeamSelWidget : public QWidget
 {
   Q_OBJECT
  
  public:
   TeamSelWidget(QWidget* parent=0);
-  void addTeam(tmprop team);
-  void removeTeam(tmprop team);
+  void addTeam(HWTeam team);
+  //void removeTeam(HWTeam team);
 
 private slots:
-  void changeTeamStatus(tmprop team);
+  void changeTeamStatus(HWTeam team);
 
  private:
   void addScrArea(FrameTeams* pfteams, QColor color);
@@ -45,8 +34,8 @@
 
   QVBoxLayout mainLayout;
 
-  list<tmprop> curPlayingTeams;
-  list<tmprop> curDontPlayingTeams;
+  list<HWTeam> curPlayingTeams;
+  list<HWTeam> curDontPlayingTeams;
 };
 
 #endif // _TEAM_SELECT_INCLUDED