QTfrontend/hwform.cpp
changeset 8534 92da587691c9
parent 8529 124b49fa408b
child 8559 29e420194558
equal deleted inserted replaced
8531:5e7f01d78ab0 8534:92da587691c9
  1200     connect(hwnet, SIGNAL(Warning(const QString&)), this, SLOT(NetWarning(const QString&)), Qt::QueuedConnection);
  1200     connect(hwnet, SIGNAL(Warning(const QString&)), this, SLOT(NetWarning(const QString&)), Qt::QueuedConnection);
  1201     connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()), Qt::QueuedConnection);
  1201     connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()), Qt::QueuedConnection);
  1202     connect(hwnet, SIGNAL(LeftRoom(const QString&)), this, SLOT(NetLeftRoom(const QString&)), Qt::QueuedConnection);
  1202     connect(hwnet, SIGNAL(LeftRoom(const QString&)), this, SLOT(NetLeftRoom(const QString&)), Qt::QueuedConnection);
  1203     connect(hwnet, SIGNAL(AddNetTeam(const HWTeam&)), this, SLOT(AddNetTeam(const HWTeam&)), Qt::QueuedConnection);
  1203     connect(hwnet, SIGNAL(AddNetTeam(const HWTeam&)), this, SLOT(AddNetTeam(const HWTeam&)), Qt::QueuedConnection);
  1204     connect(hwnet, SIGNAL(RemoveNetTeam(const HWTeam&)), this, SLOT(RemoveNetTeam(const HWTeam&)), Qt::QueuedConnection);
  1204     connect(hwnet, SIGNAL(RemoveNetTeam(const HWTeam&)), this, SLOT(RemoveNetTeam(const HWTeam&)), Qt::QueuedConnection);
  1205     connect(hwnet, SIGNAL(TeamAccepted(const QString&)), this, SLOT(NetTeamAccepted(const QString&)));
  1205     connect(hwnet, SIGNAL(TeamAccepted(const QString&)), this, SLOT(NetTeamAccepted(const QString&)), Qt::QueuedConnection);
  1206     connect(hwnet, SIGNAL(NickRegistered(const QString&)), this, SLOT(NetNickRegistered(const QString&)), Qt::QueuedConnection);
  1206     connect(hwnet, SIGNAL(NickRegistered(const QString&)), this, SLOT(NetNickRegistered(const QString&)), Qt::QueuedConnection);
  1207     connect(hwnet, SIGNAL(NickNotRegistered(const QString&)), this, SLOT(NetNickNotRegistered(const QString&)), Qt::QueuedConnection);
  1207     connect(hwnet, SIGNAL(NickNotRegistered(const QString&)), this, SLOT(NetNickNotRegistered(const QString&)), Qt::QueuedConnection);
  1208     connect(hwnet, SIGNAL(NickTaken(const QString&)), this, SLOT(NetNickTaken(const QString&)), Qt::QueuedConnection);
  1208     connect(hwnet, SIGNAL(NickTaken(const QString&)), this, SLOT(NetNickTaken(const QString&)), Qt::QueuedConnection);
  1209     connect(hwnet, SIGNAL(AuthFailed()), this, SLOT(NetAuthFailed()), Qt::QueuedConnection);
  1209     connect(hwnet, SIGNAL(AuthFailed()), this, SLOT(NetAuthFailed()), Qt::QueuedConnection);
  1210     //connect(ui.pageNetGame->BtnBack, SIGNAL(clicked()), hwnet, SLOT(partRoom()));
  1210     //connect(ui.pageNetGame->BtnBack, SIGNAL(clicked()), hwnet, SLOT(partRoom()));
  1232 //      this, SLOT(NetGameSlave()));
  1232 //      this, SLOT(NetGameSlave()));
  1233     connect(ui.pageRoomsList, SIGNAL(askForRoomList()),
  1233     connect(ui.pageRoomsList, SIGNAL(askForRoomList()),
  1234             hwnet, SLOT(askRoomsList()));
  1234             hwnet, SLOT(askRoomsList()));
  1235 
  1235 
  1236 // room status stuff
  1236 // room status stuff
  1237 // not queued because creates new signal/slot connection
       
  1238     connect(hwnet, SIGNAL(roomMaster(bool)),
  1237     connect(hwnet, SIGNAL(roomMaster(bool)),
  1239             this, SLOT(NetGameChangeStatus(bool)));
  1238             this, SLOT(NetGameChangeStatus(bool)), Qt::QueuedConnection);
  1240 
  1239 
  1241 // net page stuff
  1240 // net page stuff
  1242     connect(hwnet, SIGNAL(roomNameUpdated(const QString &)),
  1241     connect(hwnet, SIGNAL(roomNameUpdated(const QString &)),
  1243             ui.pageNetGame, SLOT(setRoomName(const QString &)));
  1242             ui.pageNetGame, SLOT(setRoomName(const QString &)), Qt::QueuedConnection);
  1244     connect(hwnet, SIGNAL(chatStringFromNet(const QString&)),
  1243     connect(hwnet, SIGNAL(chatStringFromNet(const QString&)),
  1245             ui.pageNetGame->chatWidget, SLOT(onChatString(const QString&)), Qt::QueuedConnection);
  1244             ui.pageNetGame->chatWidget, SLOT(onChatString(const QString&)), Qt::QueuedConnection);
  1246 
  1245 
  1247     connect(hwnet, SIGNAL(chatStringFromMe(const QString&)),
  1246     connect(hwnet, SIGNAL(chatStringFromMe(const QString&)),
  1248             ui.pageNetGame->chatWidget, SLOT(onChatString(const QString&)), Qt::QueuedConnection);
  1247             ui.pageNetGame->chatWidget, SLOT(onChatString(const QString&)), Qt::QueuedConnection);