QTfrontend/hwform.cpp
changeset 653 4f44fc06ca45
parent 647 798c7dbf8bb8
child 654 1019b8fa8638
equal deleted inserted replaced
652:4cca0c7de609 653:4f44fc06ca45
    44 #include "netserverslist.h"
    44 #include "netserverslist.h"
    45 #include "netudpserver.h"
    45 #include "netudpserver.h"
    46 #include "netwwwserver.h"
    46 #include "netwwwserver.h"
    47 #include "chatwidget.h"
    47 #include "chatwidget.h"
    48 #include "playrecordpage.h"
    48 #include "playrecordpage.h"
       
    49 #include "input_ip.h"
    49 
    50 
    50 HWForm::HWForm(QWidget *parent)
    51 HWForm::HWForm(QWidget *parent)
    51   : QMainWindow(parent), pnetserver(0), pRegisterServer(0), editedTeam(0), hwnet(0)
    52   : QMainWindow(parent), pnetserver(0), pRegisterServer(0), editedTeam(0), hwnet(0)
    52 {
    53 {
    53 	ui.setupUi(this);
    54 	ui.setupUi(this);
    87 	connect(ui.pageOptions->BtnSaveOptions,	SIGNAL(clicked()),	config, SLOT(SaveOptions()));
    88 	connect(ui.pageOptions->BtnSaveOptions,	SIGNAL(clicked()),	config, SLOT(SaveOptions()));
    88 	connect(ui.pageOptions->BtnSaveOptions,	SIGNAL(clicked()),	this, SLOT(GoBack()));
    89 	connect(ui.pageOptions->BtnSaveOptions,	SIGNAL(clicked()),	this, SLOT(GoBack()));
    89 	connect(ui.pageOptions->WeaponsButt,	SIGNAL(clicked()),	this, SLOT(GoToSelectWeapon()));
    90 	connect(ui.pageOptions->WeaponsButt,	SIGNAL(clicked()),	this, SLOT(GoToSelectWeapon()));
    90 
    91 
    91 	connect(ui.pageNet->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
    92 	connect(ui.pageNet->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
    92 	connect(ui.pageNet->BtnNetConnect,	SIGNAL(clicked()),	this, SLOT(NetConnect()));
    93 	connect(ui.pageNet->BtnNetConnect,	SIGNAL(clicked()),	this, SLOT(NetConnectServer()));
       
    94 	connect(ui.pageNet->BtnSpecifyServer,	SIGNAL(clicked()),	this, SLOT(NetConnect()));
    93 	connect(ui.pageNet->BtnNetSvrStart,	SIGNAL(clicked()),	this, SLOT(GoToNetServer()));
    95 	connect(ui.pageNet->BtnNetSvrStart,	SIGNAL(clicked()),	this, SLOT(GoToNetServer()));
    94 	connect(ui.pageNet,	SIGNAL(connectClicked()),	this, SLOT(NetConnectServer()));
    96 	connect(ui.pageNet,	SIGNAL(connectClicked()),	this, SLOT(NetConnectServer()));
    95 	
    97 	
    96 	connect(ui.pageNetServer->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
    98 	connect(ui.pageNetServer->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
    97 	connect(ui.pageNetServer->BtnStart,	SIGNAL(clicked()),	this, SLOT(NetStartServer()));
    99 	connect(ui.pageNetServer->BtnStart,	SIGNAL(clicked()),	this, SLOT(NetStartServer()));
   406 	config->SaveOptions();
   408 	config->SaveOptions();
   407 }
   409 }
   408 
   410 
   409 void HWForm::NetConnect()
   411 void HWForm::NetConnect()
   410 {
   412 {
       
   413 	HWHostPortDialog * hpd = new HWHostPortDialog(this);
       
   414 
       
   415 	hpd->exec();
   411 // FIXME:  _NetConnect(ui.pageNet->editIP->text(), 46631, ui.pageNet->editNetNick->text());
   416 // FIXME:  _NetConnect(ui.pageNet->editIP->text(), 46631, ui.pageNet->editNetNick->text());
   412 }
   417 }
   413 
   418 
   414 void HWForm::NetStartServer()
   419 void HWForm::NetStartServer()
   415 {
   420 {