QTfrontend/hwform.cpp
changeset 586 ecb6347dfeca
parent 585 7531ae5b146e
child 587 74db4115064a
equal deleted inserted replaced
585:7531ae5b146e 586:ecb6347dfeca
    72 
    72 
    73 	connect(ui.pageMultiplayer->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
    73 	connect(ui.pageMultiplayer->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
    74 	connect(ui.pageMultiplayer->BtnStartMPGame,	SIGNAL(clicked()),	this, SLOT(StartMPGame()));
    74 	connect(ui.pageMultiplayer->BtnStartMPGame,	SIGNAL(clicked()),	this, SLOT(StartMPGame()));
    75 	connect(ui.pageMultiplayer->teamsSelect, SIGNAL(setEnabledGameStart(bool)),
    75 	connect(ui.pageMultiplayer->teamsSelect, SIGNAL(setEnabledGameStart(bool)),
    76 		ui.pageMultiplayer->BtnStartMPGame, SLOT(setEnabled(bool)));
    76 		ui.pageMultiplayer->BtnStartMPGame, SLOT(setEnabled(bool)));
       
    77 	connect(ui.pageMultiplayer->teamsSelect, SIGNAL(SetupClicked()), this, SLOT(IntermediateSetup()));
    77 
    78 
    78 	connect(ui.pagePlayDemo->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
    79 	connect(ui.pagePlayDemo->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
    79 	connect(ui.pagePlayDemo->BtnPlayDemo,	SIGNAL(clicked()),	this, SLOT(PlayDemo()));
    80 	connect(ui.pagePlayDemo->BtnPlayDemo,	SIGNAL(clicked()),	this, SLOT(PlayDemo()));
    80 	connect(ui.pagePlayDemo->DemosList,	SIGNAL(doubleClicked (const QModelIndex &)),	this, SLOT(PlayDemo()));
    81 	connect(ui.pagePlayDemo->DemosList,	SIGNAL(doubleClicked (const QModelIndex &)),	this, SLOT(PlayDemo()));
    81 
    82 
   100 
   101 
   101 	connect(ui.pageInfo->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
   102 	connect(ui.pageInfo->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
   102 
   103 
   103 	connect(ui.pageGameStats->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
   104 	connect(ui.pageGameStats->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
   104 
   105 
   105 	connect(ui.pageMultiplayer->teamsSelect, SIGNAL(SetupClicked()), this, SLOT(IntermediateSetup()));
   106 	connect(ui.pageSinglePlayer->BtnSimpleGamePage,	SIGNAL(clicked()),	this, SLOT(GoToSimpleGame()));
       
   107 	connect(ui.pageSinglePlayer->BtnTrainPage,	SIGNAL(clicked()),	this, SLOT(GoBack()));
       
   108 	connect(ui.pageSinglePlayer->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoBack()));
   106 
   109 
   107 	GoToPage(ID_PAGE_MAIN);
   110 	GoToPage(ID_PAGE_MAIN);
   108 }
   111 }
   109 
   112 
   110 void HWForm::UpdateTeamsLists(const QStringList* editable_teams)
   113 void HWForm::UpdateTeamsLists(const QStringList* editable_teams)
   132 }
   135 }
   133 
   136 
   134 void HWForm::GoToSinglePlayer()
   137 void HWForm::GoToSinglePlayer()
   135 {
   138 {
   136 	GoToPage(ID_PAGE_SINGLEPLAYER);
   139 	GoToPage(ID_PAGE_SINGLEPLAYER);
       
   140 }
       
   141 
       
   142 void HWForm::GoToSimpleGame()
       
   143 {
       
   144 	GoToPage(ID_PAGE_SIMPLEGAME);
   137 }
   145 }
   138 
   146 
   139 void HWForm::GoToSetup()
   147 void HWForm::GoToSetup()
   140 {
   148 {
   141 	GoToPage(ID_PAGE_SETUP);
   149 	GoToPage(ID_PAGE_SETUP);