QTfrontend/hwform.cpp
changeset 587 74db4115064a
parent 586 ecb6347dfeca
child 597 ec5f057ab268
equal deleted inserted replaced
586:ecb6347dfeca 587:74db4115064a
   102 	connect(ui.pageInfo->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
   102 	connect(ui.pageInfo->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
   103 
   103 
   104 	connect(ui.pageGameStats->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
   104 	connect(ui.pageGameStats->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
   105 
   105 
   106 	connect(ui.pageSinglePlayer->BtnSimpleGamePage,	SIGNAL(clicked()),	this, SLOT(GoToSimpleGame()));
   106 	connect(ui.pageSinglePlayer->BtnSimpleGamePage,	SIGNAL(clicked()),	this, SLOT(GoToSimpleGame()));
   107 	connect(ui.pageSinglePlayer->BtnTrainPage,	SIGNAL(clicked()),	this, SLOT(GoBack()));
   107 	connect(ui.pageSinglePlayer->BtnTrainPage,	SIGNAL(clicked()),	this, SLOT(GoToTraining()));
   108 	connect(ui.pageSinglePlayer->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
   108 	connect(ui.pageSinglePlayer->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
       
   109 
       
   110 	connect(ui.pageTraining->BtnStartTrain,	SIGNAL(clicked()),	this, SLOT(StartTraining()));
       
   111 	connect(ui.pageTraining->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
   109 
   112 
   110 	GoToPage(ID_PAGE_MAIN);
   113 	GoToPage(ID_PAGE_MAIN);
   111 }
   114 }
   112 
   115 
   113 void HWForm::UpdateTeamsLists(const QStringList* editable_teams)
   116 void HWForm::UpdateTeamsLists(const QStringList* editable_teams)
   140 }
   143 }
   141 
   144 
   142 void HWForm::GoToSimpleGame()
   145 void HWForm::GoToSimpleGame()
   143 {
   146 {
   144 	GoToPage(ID_PAGE_SIMPLEGAME);
   147 	GoToPage(ID_PAGE_SIMPLEGAME);
       
   148 }
       
   149 
       
   150 void HWForm::GoToTraining()
       
   151 {
       
   152 	GoToPage(ID_PAGE_TRAINING);
   145 }
   153 }
   146 
   154 
   147 void HWForm::GoToSetup()
   155 void HWForm::GoToSetup()
   148 {
   156 {
   149 	GoToPage(ID_PAGE_SETUP);
   157 	GoToPage(ID_PAGE_SETUP);
   528 		return ;
   536 		return ;
   529 	}
   537 	}
   530 	demofile.write(demo.constData(), demo.size());
   538 	demofile.write(demo.constData(), demo.size());
   531 	demofile.close();
   539 	demofile.close();
   532 }
   540 }
       
   541 
       
   542 void HWForm::StartTraining()
       
   543 {
       
   544 	CreateGame(0, 0);
       
   545 
       
   546 	game->StartTraining();
       
   547 }