diff -r 62aa418ed214 -r 6fe3e922246e QTfrontend/ui/page/pageeditteam.h --- a/QTfrontend/ui/page/pageeditteam.h Fri Oct 21 04:11:26 2011 +0200 +++ b/QTfrontend/ui/page/pageeditteam.h Fri Oct 21 07:00:49 2011 +0200 @@ -22,8 +22,9 @@ #include "AbstractPage.h" #include "binds.h" #include "hwconsts.h" +#include "HWDataManager.h" #include "namegen.h" -#include "SDLs.h" +#include "SDLInteraction.h" #include "team.h" @@ -34,7 +35,7 @@ Q_OBJECT public: - PageEditTeam(QWidget* parent, SDLInteraction * sdli); + PageEditTeam(QWidget* parent); void createTeam(const QString & name, const QString & playerHash); void editTeam(const QString & name, const QString & playerHash); @@ -64,7 +65,6 @@ QLineEdit * HHNameEdit[HEDGEHOGS_PER_TEAM]; QComboBox * HHHats[HEDGEHOGS_PER_TEAM]; QComboBox * CBBind[BINDS_NUMBER]; - SDLInteraction * mySdli; HWTeam data(); QString m_playerHash; @@ -85,8 +85,12 @@ private slots: void saveTeam(); void setRandomNames(); + void setRandomName(int hh_index); + + /// Plays a random voice sound of the currently edited team. void testSound(); + void fixHHname(int idx); };