QTfrontend/hwform.cpp
changeset 4392 95e27e12d0e9
parent 4232 3a7862405c36
child 4410 f9e38ce1e813
equal deleted inserted replaced
4391:de9e1a5102b4 4392:95e27e12d0e9
   274   }
   274   }
   275 }
   275 }
   276 
   276 
   277 void HWForm::keyReleaseEvent(QKeyEvent *event)
   277 void HWForm::keyReleaseEvent(QKeyEvent *event)
   278 {
   278 {
   279   if (event->key() == Qt::Key_Escape /*|| event->key() == Qt::Key_Backspace*/ )
   279   if (event->key() == Qt::Key_Escape /*|| event->key() == Qt::Key_Backspace*/ ) 
   280     this->GoBack();
   280     this->GoBack();
   281 }
   281 }
   282 
   282 
   283 void HWForm::CustomizePalettes()
   283 void HWForm::CustomizePalettes()
   284 {
   284 {
   519     if ((!hwnet) || (!hwnet->isInRoom()))
   519     if ((!hwnet) || (!hwnet->isInRoom()))
   520         if (id == ID_PAGE_NETGAME || id == ID_PAGE_NETGAME)
   520         if (id == ID_PAGE_NETGAME || id == ID_PAGE_NETGAME)
   521             GoBack();
   521             GoBack();
   522 
   522 
   523     if (curid == ID_PAGE_ROOMSLIST) NetDisconnect();
   523     if (curid == ID_PAGE_ROOMSLIST) NetDisconnect();
       
   524     if (curid == ID_PAGE_NETGAME) hwnet->partRoom();
   524 
   525 
   525     if (curid == ID_PAGE_SCHEME)
   526     if (curid == ID_PAGE_SCHEME)
   526         ammoSchemeModel->Save();
   527         ammoSchemeModel->Save();
   527 }
   528 }
   528 
   529 
   676     connect(hwnet, SIGNAL(AskForRunGame()), this, SLOT(CreateNetGame()));
   677     connect(hwnet, SIGNAL(AskForRunGame()), this, SLOT(CreateNetGame()));
   677     connect(hwnet, SIGNAL(Connected()), this, SLOT(NetConnected()));
   678     connect(hwnet, SIGNAL(Connected()), this, SLOT(NetConnected()));
   678     connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()));
   679     connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()));
   679     connect(hwnet, SIGNAL(LeftRoom()), this, SLOT(NetLeftRoom()));
   680     connect(hwnet, SIGNAL(LeftRoom()), this, SLOT(NetLeftRoom()));
   680     connect(hwnet, SIGNAL(AddNetTeam(const HWTeam&)), this, SLOT(AddNetTeam(const HWTeam&)));
   681     connect(hwnet, SIGNAL(AddNetTeam(const HWTeam&)), this, SLOT(AddNetTeam(const HWTeam&)));
   681     connect(ui.pageNetGame->BtnBack, SIGNAL(clicked()), hwnet, SLOT(partRoom()));
   682     //connect(ui.pageNetGame->BtnBack, SIGNAL(clicked()), hwnet, SLOT(partRoom()));
   682 
   683 
   683 // rooms list page stuff
   684 // rooms list page stuff
   684     connect(hwnet, SIGNAL(roomsList(const QStringList&)),
   685     connect(hwnet, SIGNAL(roomsList(const QStringList&)),
   685         ui.pageRoomsList, SLOT(setRoomsList(const QStringList&)));
   686         ui.pageRoomsList, SLOT(setRoomsList(const QStringList&)));
   686     connect(hwnet, SIGNAL(adminAccess(bool)),
   687     connect(hwnet, SIGNAL(adminAccess(bool)),