QTfrontend/hwform.cpp
changeset 1310 4616e15d566f
parent 1268 34c3795ecb63
child 1311 49beb1221c0b
equal deleted inserted replaced
1309:1a38a967bd48 1310:4616e15d566f
    39 #include "hwconsts.h"
    39 #include "hwconsts.h"
    40 #include "newnetclient.h"
    40 #include "newnetclient.h"
    41 #include "gamecfgwidget.h"
    41 #include "gamecfgwidget.h"
    42 #include "netserverslist.h"
    42 #include "netserverslist.h"
    43 #include "netudpserver.h"
    43 #include "netudpserver.h"
    44 #include "netwwwserver.h"
       
    45 #include "chatwidget.h"
    44 #include "chatwidget.h"
    46 #include "playrecordpage.h"
    45 #include "playrecordpage.h"
    47 #include "input_ip.h"
    46 #include "input_ip.h"
    48 
    47 
    49 HWForm::HWForm(QWidget *parent)
    48 HWForm::HWForm(QWidget *parent)
   478 		return;
   477 		return;
   479 	}
   478 	}
   480 
   479 
   481 	_NetConnect("localhost", pnetserver->getRunningPort(), ui.pageOptions->editNetNick->text());
   480 	_NetConnect("localhost", pnetserver->getRunningPort(), ui.pageOptions->editNetNick->text());
   482 
   481 
   483 	if (ui.pageNet->rbLocalGame->isChecked())
   482 	pRegisterServer = new HWNetUdpServer(0, ui.pageNetServer->leServerDescr->text(), ui.pageNetServer->sbPort->value());
   484 		pRegisterServer = new HWNetUdpServer(0, ui.pageNetServer->leServerDescr->text(), ui.pageNetServer->sbPort->value());
       
   485 	else
       
   486 		pRegisterServer = new HWNetWwwServer(0, ui.pageNetServer->leServerDescr->text(), ui.pageNetServer->sbPort->value());
       
   487 }
   483 }
   488 
   484 
   489 void HWForm::NetDisconnect()
   485 void HWForm::NetDisconnect()
   490 {
   486 {
   491   if(hwnet) {
   487   if(hwnet) {