QTfrontend/hwform.cpp
changeset 187 96c3154efee5
parent 184 f97a7a3dc8f6
child 207 287077789132
equal deleted inserted replaced
186:7157b34a24d6 187:96c3154efee5
    59 	connect(ui.pageMain->BtnSinglePlayer,	SIGNAL(clicked()),	this, SLOT(GoToSinglePlayer()));
    59 	connect(ui.pageMain->BtnSinglePlayer,	SIGNAL(clicked()),	this, SLOT(GoToSinglePlayer()));
    60 	connect(ui.pageMain->BtnSetup,	SIGNAL(clicked()),	this, SLOT(GoToSetup()));
    60 	connect(ui.pageMain->BtnSetup,	SIGNAL(clicked()),	this, SLOT(GoToSetup()));
    61 	connect(ui.pageMain->BtnMultiplayer,	SIGNAL(clicked()),	this, SLOT(GoToMultiplayer()));
    61 	connect(ui.pageMain->BtnMultiplayer,	SIGNAL(clicked()),	this, SLOT(GoToMultiplayer()));
    62 	connect(ui.pageMain->BtnDemos,	SIGNAL(clicked()),	this, SLOT(GoToDemos()));
    62 	connect(ui.pageMain->BtnDemos,	SIGNAL(clicked()),	this, SLOT(GoToDemos()));
    63 	connect(ui.pageMain->BtnNet,	SIGNAL(clicked()),	this, SLOT(GoToNet()));
    63 	connect(ui.pageMain->BtnNet,	SIGNAL(clicked()),	this, SLOT(GoToNet()));
       
    64 	connect(ui.pageMain->BtnInfo,	SIGNAL(clicked()),	this, SLOT(GoToInfo()));
    64 	connect(ui.pageMain->BtnExit, SIGNAL(clicked()), this, SLOT(close()));
    65 	connect(ui.pageMain->BtnExit, SIGNAL(clicked()), this, SLOT(close()));
    65 
    66 
    66 	connect(ui.pageLocalGame->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoToMain()));
    67 	connect(ui.pageLocalGame->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoToMain()));
    67 	connect(ui.pageLocalGame->BtnSimpleGame,	SIGNAL(clicked()),	this, SLOT(SimpleGame()));
    68 	connect(ui.pageLocalGame->BtnSimpleGame,	SIGNAL(clicked()),	this, SLOT(SimpleGame()));
    68 
    69 
    89 
    90 
    90 	connect(ui.pageNetChat->BtnDisconnect, SIGNAL(clicked()), this, SLOT(NetDisconnect()));
    91 	connect(ui.pageNetChat->BtnDisconnect, SIGNAL(clicked()), this, SLOT(NetDisconnect()));
    91 	connect(ui.pageNetChat->BtnJoin,	SIGNAL(clicked()),	this, SLOT(NetJoin()));
    92 	connect(ui.pageNetChat->BtnJoin,	SIGNAL(clicked()),	this, SLOT(NetJoin()));
    92 	connect(ui.pageNetChat->BtnCreate,	SIGNAL(clicked()),	this, SLOT(NetCreate()));
    93 	connect(ui.pageNetChat->BtnCreate,	SIGNAL(clicked()),	this, SLOT(NetCreate()));
    93 
    94 
       
    95 	connect(ui.pageInfo->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoToMain()));
       
    96 
    94 	ui.Pages->setCurrentIndex(ID_PAGE_MAIN);
    97 	ui.Pages->setCurrentIndex(ID_PAGE_MAIN);
    95 }
    98 }
    96 
    99 
    97 void HWForm::GoToMain()
   100 void HWForm::GoToMain()
    98 {
   101 {
   105 }
   108 }
   106 
   109 
   107 void HWForm::GoToSetup()
   110 void HWForm::GoToSetup()
   108 {
   111 {
   109 	ui.Pages->setCurrentIndex(ID_PAGE_SETUP);
   112 	ui.Pages->setCurrentIndex(ID_PAGE_SETUP);
       
   113 }
       
   114 
       
   115 void HWForm::GoToInfo()
       
   116 {
       
   117 	ui.Pages->setCurrentIndex(ID_PAGE_INFO);
   110 }
   118 }
   111 
   119 
   112 void HWForm::GoToMultiplayer()
   120 void HWForm::GoToMultiplayer()
   113 {
   121 {
   114 	ui.pageMultiplayer->teamsSelect->resetPlayingTeams(config->GetTeamsList());
   122 	ui.pageMultiplayer->teamsSelect->resetPlayingTeams(config->GetTeamsList());