QTfrontend/hwform.cpp
changeset 5907 64ccc6be0ec5
parent 5865 35387d27f73a
child 5998 e8f44e9433f0
child 5999 dad168522e3b
equal deleted inserted replaced
5906:ed9676dc8cb4 5907:64ccc6be0ec5
   167     connect(ui.pageDataDownload->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack()));
   167     connect(ui.pageDataDownload->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack()));
   168 
   168 
   169     connect(ui.pageEditTeam->BtnTeamSave, SIGNAL(clicked()), this, SLOT(TeamSave()));
   169     connect(ui.pageEditTeam->BtnTeamSave, SIGNAL(clicked()), this, SLOT(TeamSave()));
   170     connect(ui.pageEditTeam->BtnTeamDiscard, SIGNAL(clicked()), this, SLOT(TeamDiscard()));
   170     connect(ui.pageEditTeam->BtnTeamDiscard, SIGNAL(clicked()), this, SLOT(TeamDiscard()));
   171 
   171 
   172     connect(ui.pageEditTeam->signalMapper, SIGNAL(mapped(const int &)), this, SLOT(RandomName(const int &)));
   172     connect(ui.pageEditTeam->signalMapper2, SIGNAL(mapped(const int &)), this, SLOT(RandomName(const int &)));
   173     connect(ui.pageEditTeam->randTeamButton, SIGNAL(clicked()), this, SLOT(RandomNames()));
   173     connect(ui.pageEditTeam->randTeamButton, SIGNAL(clicked()), this, SLOT(RandomNames()));
   174 
   174 
   175     connect(ui.pageMultiplayer->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack()));
   175     connect(ui.pageMultiplayer->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack()));
   176     connect(ui.pageMultiplayer->BtnStartMPGame, SIGNAL(clicked()), this, SLOT(StartMPGame()));
   176     connect(ui.pageMultiplayer->BtnStartMPGame, SIGNAL(clicked()), this, SLOT(StartMPGame()));
   177     connect(ui.pageMultiplayer->teamsSelect, SIGNAL(setEnabledGameStart(bool)),
   177     connect(ui.pageMultiplayer->teamsSelect, SIGNAL(setEnabledGameStart(bool)),
   637     GoToPage(ID_PAGE_SETUP);
   637     GoToPage(ID_PAGE_SETUP);
   638 }
   638 }
   639 
   639 
   640 void HWForm::NewTeam()
   640 void HWForm::NewTeam()
   641 {
   641 {
   642     editedTeam = new HWTeam("unnamed");
   642     editedTeam = new HWTeam(QLineEdit::tr("unnamed"));
   643     editedTeam->SetToPage(this);
   643     editedTeam->SetToPage(this);
   644     GoToPage(ID_PAGE_SETUP_TEAM);
   644     GoToPage(ID_PAGE_SETUP_TEAM);
   645 }
   645 }
   646 
   646 
   647 void HWForm::EditTeam()
   647 void HWForm::EditTeam()