QTfrontend/hwform.cpp
changeset 8559 29e420194558
parent 8534 92da587691c9
child 8569 62f4e903fddc
equal deleted inserted replaced
8556:6f4c2711baa6 8559:29e420194558
  1728 void HWForm::NetGameMaster()
  1728 void HWForm::NetGameMaster()
  1729 {
  1729 {
  1730     ui.pageNetGame->setMasterMode(true);
  1730     ui.pageNetGame->setMasterMode(true);
  1731     ui.pageNetGame->restrictJoins->setChecked(false);
  1731     ui.pageNetGame->restrictJoins->setChecked(false);
  1732     ui.pageNetGame->restrictTeamAdds->setChecked(false);
  1732     ui.pageNetGame->restrictTeamAdds->setChecked(false);
       
  1733     ui.pageNetGame->restrictUnregistered->setChecked(false);
  1733     ui.pageNetGame->pGameCFG->GameSchemes->setModel(ammoSchemeModel);
  1734     ui.pageNetGame->pGameCFG->GameSchemes->setModel(ammoSchemeModel);
  1734     ui.pageNetGame->pGameCFG->setMaster(true);
  1735     ui.pageNetGame->pGameCFG->setMaster(true);
  1735     ui.pageNetGame->pNetTeamsWidget->setInteractivity(true);
  1736     ui.pageNetGame->pNetTeamsWidget->setInteractivity(true);
  1736 
  1737 
  1737     if (hwnet)
  1738     if (hwnet)
  1740         ui.pageNetGame->BtnStart->disconnect(this);
  1741         ui.pageNetGame->BtnStart->disconnect(this);
  1741         ui.pageNetGame->BtnUpdate->disconnect(hwnet);
  1742         ui.pageNetGame->BtnUpdate->disconnect(hwnet);
  1742         ui.pageNetGame->leRoomName->disconnect(hwnet);
  1743         ui.pageNetGame->leRoomName->disconnect(hwnet);
  1743         ui.pageNetGame->restrictJoins->disconnect(hwnet);
  1744         ui.pageNetGame->restrictJoins->disconnect(hwnet);
  1744         ui.pageNetGame->restrictTeamAdds->disconnect(hwnet);
  1745         ui.pageNetGame->restrictTeamAdds->disconnect(hwnet);
       
  1746         ui.pageNetGame->restrictUnregistered->disconnect(hwnet);
  1745         ui.pageNetGame->disconnect(hwnet, SLOT(updateRoomName(const QString&)));
  1747         ui.pageNetGame->disconnect(hwnet, SLOT(updateRoomName(const QString&)));
  1746 
  1748 
  1747         ui.pageNetGame->setRoomName(hwnet->getRoom());
  1749         ui.pageNetGame->setRoomName(hwnet->getRoom());
  1748 
  1750 
  1749         connect(ui.pageNetGame->BtnStart, SIGNAL(clicked()), this, SLOT(startGame()));
  1751         connect(ui.pageNetGame->BtnStart, SIGNAL(clicked()), this, SLOT(startGame()));
  1750         connect(ui.pageNetGame, SIGNAL(askForUpdateRoomName(const QString &)), hwnet, SLOT(updateRoomName(const QString &)));
  1752         connect(ui.pageNetGame, SIGNAL(askForUpdateRoomName(const QString &)), hwnet, SLOT(updateRoomName(const QString &)));
  1751         connect(ui.pageNetGame->restrictJoins, SIGNAL(triggered()), hwnet, SLOT(toggleRestrictJoins()));
  1753         connect(ui.pageNetGame->restrictJoins, SIGNAL(triggered()), hwnet, SLOT(toggleRestrictJoins()));
  1752         connect(ui.pageNetGame->restrictTeamAdds, SIGNAL(triggered()), hwnet, SLOT(toggleRestrictTeamAdds()));
  1754         connect(ui.pageNetGame->restrictTeamAdds, SIGNAL(triggered()), hwnet, SLOT(toggleRestrictTeamAdds()));
       
  1755         connect(ui.pageNetGame->restrictUnregistered, SIGNAL(triggered()), hwnet, SLOT(toggleRegisteredOnly()));
  1753         connect(ui.pageNetGame->pGameCFG->GameSchemes->model(),
  1756         connect(ui.pageNetGame->pGameCFG->GameSchemes->model(),
  1754                 SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)),
  1757                 SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)),
  1755                 ui.pageNetGame->pGameCFG,
  1758                 ui.pageNetGame->pGameCFG,
  1756                 SLOT(resendSchemeData())
  1759                 SLOT(resendSchemeData())
  1757                );
  1760                );