QTfrontend/hwform.cpp
changeset 597 ec5f057ab268
parent 587 74db4115064a
child 600 f6e5f4e122db
equal deleted inserted replaced
596:38bdde6a54c1 597:ec5f057ab268
    42 #include "gamecfgwidget.h"
    42 #include "gamecfgwidget.h"
    43 #include "netudpserver.h"
    43 #include "netudpserver.h"
    44 #include "netudpwidget.h"
    44 #include "netudpwidget.h"
    45 #include "chatwidget.h"
    45 #include "chatwidget.h"
    46 #include "playrecordpage.h"
    46 #include "playrecordpage.h"
       
    47 #include "selectWeapon.h"
    47 
    48 
    48 HWForm::HWForm(QWidget *parent)
    49 HWForm::HWForm(QWidget *parent)
    49   : QMainWindow(parent), pnetserver(0), pUdpServer(0), editedTeam(0)
    50   : QMainWindow(parent), pnetserver(0), pUdpServer(0), editedTeam(0)
    50 {
    51 {
    51 	ui.setupUi(this);
    52 	ui.setupUi(this);
    83 	connect(ui.pageOptions->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
    84 	connect(ui.pageOptions->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
    84 	connect(ui.pageOptions->BtnNewTeam,	SIGNAL(clicked()),	this, SLOT(NewTeam()));
    85 	connect(ui.pageOptions->BtnNewTeam,	SIGNAL(clicked()),	this, SLOT(NewTeam()));
    85 	connect(ui.pageOptions->BtnEditTeam,	SIGNAL(clicked()),	this, SLOT(EditTeam()));
    86 	connect(ui.pageOptions->BtnEditTeam,	SIGNAL(clicked()),	this, SLOT(EditTeam()));
    86 	connect(ui.pageOptions->BtnSaveOptions,	SIGNAL(clicked()),	config, SLOT(SaveOptions()));
    87 	connect(ui.pageOptions->BtnSaveOptions,	SIGNAL(clicked()),	config, SLOT(SaveOptions()));
    87 	connect(ui.pageOptions->BtnSaveOptions,	SIGNAL(clicked()),	this, SLOT(GoBack()));
    88 	connect(ui.pageOptions->BtnSaveOptions,	SIGNAL(clicked()),	this, SLOT(GoBack()));
       
    89 	// TODO
    88 
    90 
    89 	connect(ui.pageNet->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
    91 	connect(ui.pageNet->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
    90 	connect(ui.pageNet->BtnNetConnect,	SIGNAL(clicked()),	this, SLOT(NetConnect()));
    92 	connect(ui.pageNet->BtnNetConnect,	SIGNAL(clicked()),	this, SLOT(NetConnect()));
    91 	connect(ui.pageNet->BtnNetSvrStart, SIGNAL(clicked()), this, SLOT(NetStartServer()));
    93 	connect(ui.pageNet->BtnNetSvrStart, SIGNAL(clicked()), this, SLOT(NetStartServer()));
    92 	connect(ui.pageMain->BtnNet,	SIGNAL(clicked()), ui.pageNet->pUdpClient, SLOT(updateList()));
    94 	connect(ui.pageMain->BtnNet,	SIGNAL(clicked()), ui.pageNet->pUdpClient, SLOT(updateList()));