QTfrontend/hwform.cpp
changeset 1860 ce140b2b928a
parent 1856 e71dbf958c87
child 1872 abfce825a14f
equal deleted inserted replaced
1859:e071284b118e 1860:ce140b2b928a
   482 
   482 
   483 	connect(hwnet, SIGNAL(roomsList(const QStringList&)),
   483 	connect(hwnet, SIGNAL(roomsList(const QStringList&)),
   484 		ui.pageRoomsList, SLOT(setRoomsList(const QStringList&)));
   484 		ui.pageRoomsList, SLOT(setRoomsList(const QStringList&)));
   485 	connect(hwnet, SIGNAL(adminAccess(bool)),
   485 	connect(hwnet, SIGNAL(adminAccess(bool)),
   486 		ui.pageRoomsList, SLOT(setAdmin(bool)));
   486 		ui.pageRoomsList, SLOT(setAdmin(bool)));
       
   487 	connect(hwnet, SIGNAL(adminAccess(bool)),
       
   488 		ui.pageRoomsList->chatWidget, SLOT(adminAccess(bool)));
   487 	
   489 	
   488 	connect(hwnet, SIGNAL(serverMessage(const QString&)),
   490 	connect(hwnet, SIGNAL(serverMessage(const QString&)),
   489 		ui.pageRoomsList->chatWidget, SLOT(onServerMessage(const QString&)));
   491 		ui.pageRoomsList->chatWidget, SLOT(onServerMessage(const QString&)));
   490 
   492 
   491 	connect(ui.pageRoomsList, SIGNAL(askForCreateRoom(const QString &)),
   493 	connect(ui.pageRoomsList, SIGNAL(askForCreateRoom(const QString &)),
   503 		ui.pageNetGame->pChatWidget, SLOT(onChatString(const QString&)));
   505 		ui.pageNetGame->pChatWidget, SLOT(onChatString(const QString&)));
   504 	connect(hwnet, SIGNAL(setReadyStatus(const QString &, bool)),
   506 	connect(hwnet, SIGNAL(setReadyStatus(const QString &, bool)),
   505 		ui.pageNetGame->pChatWidget, SLOT(setReadyStatus(const QString &, bool)));
   507 		ui.pageNetGame->pChatWidget, SLOT(setReadyStatus(const QString &, bool)));
   506 	connect(hwnet, SIGNAL(chatStringFromMe(const QString&)),
   508 	connect(hwnet, SIGNAL(chatStringFromMe(const QString&)),
   507 		ui.pageNetGame->pChatWidget, SLOT(onChatString(const QString&)));
   509 		ui.pageNetGame->pChatWidget, SLOT(onChatString(const QString&)));
       
   510 	connect(hwnet, SIGNAL(roomMaster(bool)),
       
   511 		ui.pageNetGame->pChatWidget, SLOT(adminAccess(bool)));
   508 	connect(ui.pageNetGame->pChatWidget, SIGNAL(chatLine(const QString&)),
   512 	connect(ui.pageNetGame->pChatWidget, SIGNAL(chatLine(const QString&)),
   509 		hwnet, SLOT(chatLineToNet(const QString&)));
   513 		hwnet, SLOT(chatLineToNet(const QString&)));
   510 	connect(ui.pageNetGame->BtnGo, SIGNAL(clicked()), hwnet, SLOT(ToggleReady()));
   514 	connect(ui.pageNetGame->BtnGo, SIGNAL(clicked()), hwnet, SLOT(ToggleReady()));
   511 	connect(hwnet, SIGNAL(setMyReadyStatus(bool)),
   515 	connect(hwnet, SIGNAL(setMyReadyStatus(bool)),
   512 		ui.pageNetGame, SLOT(setReadyStatus(bool)));
   516 		ui.pageNetGame, SLOT(setReadyStatus(bool)));
   513 
   517 
   514 	connect(ui.pageNetGame->pChatWidget, SIGNAL(kick(const QString&)),
   518 	connect(ui.pageNetGame->pChatWidget, SIGNAL(kick(const QString&)),
   515 		hwnet, SLOT(kickPlayer(const QString&)));
   519 		hwnet, SLOT(kickPlayer(const QString&)));
       
   520 	connect(ui.pageNetGame->pChatWidget, SIGNAL(ban(const QString&)),
       
   521 		hwnet, SLOT(banPlayer(const QString&)));
   516 	connect(ui.pageNetGame->pChatWidget, SIGNAL(info(const QString&)),
   522 	connect(ui.pageNetGame->pChatWidget, SIGNAL(info(const QString&)),
   517 		hwnet, SLOT(infoPlayer(const QString&)));
   523 		hwnet, SLOT(infoPlayer(const QString&)));
       
   524 	connect(ui.pageRoomsList->chatWidget, SIGNAL(kick(const QString&)),
       
   525 		hwnet, SLOT(kickPlayer(const QString&)));
       
   526 	connect(ui.pageRoomsList->chatWidget, SIGNAL(ban(const QString&)),
       
   527 		hwnet, SLOT(banPlayer(const QString&)));
   518 	connect(ui.pageRoomsList->chatWidget, SIGNAL(info(const QString&)),
   528 	connect(ui.pageRoomsList->chatWidget, SIGNAL(info(const QString&)),
   519 		hwnet, SLOT(infoPlayer(const QString&)));
   529 		hwnet, SLOT(infoPlayer(const QString&)));
   520 
   530 
   521 	connect(ui.pageRoomsList->chatWidget, SIGNAL(chatLine(const QString&)),
   531 	connect(ui.pageRoomsList->chatWidget, SIGNAL(chatLine(const QString&)),
   522 		hwnet, SLOT(chatLineToLobby(const QString&)));
   532 		hwnet, SLOT(chatLineToLobby(const QString&)));