QTfrontend/hwform.cpp
changeset 328 95625db21bf8
parent 327 a281ff0803f1
child 329 4c3aad46baa5
equal deleted inserted replaced
327:a281ff0803f1 328:95625db21bf8
    75 	connect(ui.pageNet->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
    75 	connect(ui.pageNet->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
    76 	connect(ui.pageNet->BtnNetConnect,	SIGNAL(clicked()),	this, SLOT(NetConnect()));
    76 	connect(ui.pageNet->BtnNetConnect,	SIGNAL(clicked()),	this, SLOT(NetConnect()));
    77 	connect(ui.pageNet->BtnNetSvrStart, SIGNAL(clicked()), this, SLOT(NetStartServer()));
    77 	connect(ui.pageNet->BtnNetSvrStart, SIGNAL(clicked()), this, SLOT(NetStartServer()));
    78 
    78 
    79 	connect(ui.pageNetGame->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
    79 	connect(ui.pageNetGame->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
    80 	connect(ui.pageNetGame->pNetTeamsWidget,	SIGNAL(teamWillPlay(HWTeam)),	this, SLOT(NetAddTeam(HWTeam)));
       
    81 	connect(ui.pageNetGame->BtnGo,	SIGNAL(clicked()),	this, SLOT(NetStartGame()));
    80 	connect(ui.pageNetGame->BtnGo,	SIGNAL(clicked()),	this, SLOT(NetStartGame()));
    82 
    81 
    83 	connect(ui.pageNetChat->BtnDisconnect, SIGNAL(clicked()), this, SLOT(NetDisconnect()));
    82 	connect(ui.pageNetChat->BtnDisconnect, SIGNAL(clicked()), this, SLOT(NetDisconnect()));
    84 	connect(ui.pageNetChat->BtnJoin,	SIGNAL(clicked()),	this, SLOT(NetJoin()));
    83 	connect(ui.pageNetChat->BtnJoin,	SIGNAL(clicked()),	this, SLOT(NetJoin()));
    85 	connect(ui.pageNetChat->BtnCreate,	SIGNAL(clicked()),	this, SLOT(NetCreate()));
    84 	connect(ui.pageNetChat->BtnCreate,	SIGNAL(clicked()),	this, SLOT(NetCreate()));
   290 void HWForm::NetCreate()
   289 void HWForm::NetCreate()
   291 {
   290 {
   292 	hwnet->JoinGame("#hw");
   291 	hwnet->JoinGame("#hw");
   293 }
   292 }
   294 
   293 
   295 void HWForm::NetAddTeam(HWTeam team)
       
   296 {
       
   297   hwnet->AddTeam(team);
       
   298 }
       
   299 
       
   300 void HWForm::NetStartGame()
   294 void HWForm::NetStartGame()
   301 {
   295 {
   302 	hwnet->StartGame();
   296 	hwnet->StartGame();
   303 }
   297 }
   304 
   298