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() |