QTfrontend/hwform.cpp
changeset 703 424297e3165a
parent 702 97858a6682bb
child 705 c8219a8a64fb
equal deleted inserted replaced
702:97858a6682bb 703:424297e3165a
   142 }
   142 }
   143 
   143 
   144 void HWForm::NetWeaponNameChanged(const QString& name)
   144 void HWForm::NetWeaponNameChanged(const QString& name)
   145 {
   145 {
   146   QString ammo=ui.pageSelectWeapon->pWeapons->getWeaponsString(ui.pageNetGame->pGameCFG->WeaponsName->currentText());
   146   QString ammo=ui.pageSelectWeapon->pWeapons->getWeaponsString(ui.pageNetGame->pGameCFG->WeaponsName->currentText());
   147   hwnet->onWeaponsNameChanged(ammo);
   147   hwnet->onWeaponsNameChanged(name, ammo);
   148 }
   148 }
   149 
   149 
   150 void HWForm::UpdateTeamsLists(const QStringList* editable_teams)
   150 void HWForm::UpdateTeamsLists(const QStringList* editable_teams)
   151 {
   151 {
   152 	QStringList teamslist;
   152 	QStringList teamslist;
   426 	connect(hwnet, SIGNAL(fortsModeChanged(bool)), ui.pageNetGame->pGameCFG, SLOT(setFortsMode(bool)));
   426 	connect(hwnet, SIGNAL(fortsModeChanged(bool)), ui.pageNetGame->pGameCFG, SLOT(setFortsMode(bool)));
   427 	connect(hwnet, SIGNAL(hhnumChanged(const HWTeam&)),
   427 	connect(hwnet, SIGNAL(hhnumChanged(const HWTeam&)),
   428 		ui.pageNetGame->pNetTeamsWidget, SLOT(changeHHNum(const HWTeam&)));
   428 		ui.pageNetGame->pNetTeamsWidget, SLOT(changeHHNum(const HWTeam&)));
   429 	connect(hwnet, SIGNAL(teamColorChanged(const HWTeam&)),
   429 	connect(hwnet, SIGNAL(teamColorChanged(const HWTeam&)),
   430 		ui.pageNetGame->pNetTeamsWidget, SLOT(changeTeamColor(const HWTeam&)));
   430 		ui.pageNetGame->pNetTeamsWidget, SLOT(changeTeamColor(const HWTeam&)));
   431 	connect(hwnet, SIGNAL(ammoChanged(const QString&)), ui.pageNetGame->pGameCFG, SLOT(setNetAmmo(const QString&)));
   431 	connect(hwnet, SIGNAL(ammoChanged(const QString&, const QString&)), ui.pageNetGame->pGameCFG, SLOT(setNetAmmo(const QString&, const QString&)));
   432 
   432 
   433 	hwnet->Connect(hostName, port, nick);
   433 	hwnet->Connect(hostName, port, nick);
   434 }
   434 }
   435 
   435 
   436 void HWForm::NetConnect()
   436 void HWForm::NetConnect()