QTfrontend/hwform.cpp
changeset 1600 305e13c5f327
parent 1598 c853e02ed663
child 1621 d1ded2532d3f
equal deleted inserted replaced
1599:65b5d3cd3e01 1600:305e13c5f327
   441 	connect(hwnet, SIGNAL(showMessage(const QString &)), this, SLOT(ShowErrorMessage(const QString &)), Qt::QueuedConnection);
   441 	connect(hwnet, SIGNAL(showMessage(const QString &)), this, SLOT(ShowErrorMessage(const QString &)), Qt::QueuedConnection);
   442 
   442 
   443 	connect(hwnet, SIGNAL(AskForRunGame()), this, SLOT(CreateNetGame()));
   443 	connect(hwnet, SIGNAL(AskForRunGame()), this, SLOT(CreateNetGame()));
   444 	connect(hwnet, SIGNAL(Connected()), this, SLOT(NetConnected()));
   444 	connect(hwnet, SIGNAL(Connected()), this, SLOT(NetConnected()));
   445 	connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()));
   445 	connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()));
       
   446 	connect(hwnet, SIGNAL(LeftRoom()), this, SLOT(NetLeftRoom()));
   446 	connect(hwnet, SIGNAL(AddNetTeam(const HWTeam&)), this, SLOT(AddNetTeam(const HWTeam&)));
   447 	connect(hwnet, SIGNAL(AddNetTeam(const HWTeam&)), this, SLOT(AddNetTeam(const HWTeam&)));
   447 	connect(ui.pageNetGame->BtnBack, SIGNAL(clicked()), hwnet, SLOT(partRoom()));
   448 	connect(ui.pageNetGame->BtnBack, SIGNAL(clicked()), hwnet, SLOT(partRoom()));
   448 
   449 
   449 	connect(hwnet, SIGNAL(roomsList(const QStringList&)),
   450 	connect(hwnet, SIGNAL(roomsList(const QStringList&)),
   450 		ui.pageRoomsList, SLOT(setRoomsList(const QStringList&)));
   451 		ui.pageRoomsList, SLOT(setRoomsList(const QStringList&)));
   805 
   806 
   806 void HWForm::NetGameSlave()
   807 void HWForm::NetGameSlave()
   807 {
   808 {
   808 	ui.pageNetGame->BtnMaster->setVisible(false);
   809 	ui.pageNetGame->BtnMaster->setVisible(false);
   809 }
   810 }
       
   811 
       
   812 void HWForm::NetLeftRoom()
       
   813 {
       
   814 	if (ui.Pages->currentIndex() == ID_PAGE_NETGAME)
       
   815 		GoBack();
       
   816 	else
       
   817 		qWarning("Left room while not in room");
       
   818 }