QTfrontend/hwform.cpp
changeset 1592 5ee77ee470a6
parent 1587 b8a3d449bed7
child 1593 3fdc92540cc8
equal deleted inserted replaced
1591:1db9b654f880 1592:5ee77ee470a6
   313 	quint8 id = PagesStack.isEmpty() ? ID_PAGE_MAIN : PagesStack.pop();
   313 	quint8 id = PagesStack.isEmpty() ? ID_PAGE_MAIN : PagesStack.pop();
   314 	quint8 curid = ui.Pages->currentIndex();
   314 	quint8 curid = ui.Pages->currentIndex();
   315 	ui.Pages->setCurrentIndex(id);
   315 	ui.Pages->setCurrentIndex(id);
   316 	OnPageShown(id, curid);
   316 	OnPageShown(id, curid);
   317 	
   317 	
   318 	if (id == ID_PAGE_ROOMSLIST || id == ID_PAGE_NETSERVER) {
   318 	if (id == ID_PAGE_NETSERVER) {
   319 		GoBack();
   319 		GoBack();
   320 	}
   320 	}
   321 	if (id == ID_PAGE_NET) {
   321 	if (id == ID_PAGE_NET) {
   322 		if(hwnet || pnetserver) NetDisconnect();
   322 		if(hwnet || pnetserver) NetDisconnect();
   323 	}
   323 	}
   443 
   443 
   444 	connect(hwnet, SIGNAL(AskForRunGame()), this, SLOT(CreateNetGame()));
   444 	connect(hwnet, SIGNAL(AskForRunGame()), this, SLOT(CreateNetGame()));
   445 	connect(hwnet, SIGNAL(Connected()), this, SLOT(NetConnected()));
   445 	connect(hwnet, SIGNAL(Connected()), this, SLOT(NetConnected()));
   446 	connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()));
   446 	connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()));
   447 	connect(hwnet, SIGNAL(AddNetTeam(const HWTeam&)), this, SLOT(AddNetTeam(const HWTeam&)));
   447 	connect(hwnet, SIGNAL(AddNetTeam(const HWTeam&)), this, SLOT(AddNetTeam(const HWTeam&)));
       
   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&)));
   451 	
   452 	
   452 	connect(hwnet, SIGNAL(serverMessage(const QString&)),
   453 	connect(hwnet, SIGNAL(serverMessage(const QString&)),