122 |
123 |
123 connect(ui.pageInfo->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack())); |
124 connect(ui.pageInfo->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack())); |
124 |
125 |
125 connect(ui.pageGameStats->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack())); |
126 connect(ui.pageGameStats->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack())); |
126 |
127 |
127 connect(ui.pageSinglePlayer->BtnSimpleGamePage, SIGNAL(clicked()), this, SLOT(SimpleGame())); |
128 connect(ui.pageSinglePlayer->BtnSimpleGamePage, SIGNAL(clicked()), this, SLOT(SimpleGame())); |
128 connect(ui.pageSinglePlayer->BtnTrainPage, SIGNAL(clicked()), this, SLOT(GoToTraining())); |
129 connect(ui.pageSinglePlayer->BtnTrainPage, SIGNAL(clicked()), this, SLOT(GoToTraining())); |
129 connect(ui.pageSinglePlayer->BtnMultiplayer, SIGNAL(clicked()), this, SLOT(GoToMultiplayer())); |
130 connect(ui.pageSinglePlayer->BtnMultiplayer, SIGNAL(clicked()), this, SLOT(GoToMultiplayer())); |
130 connect(ui.pageSinglePlayer->BtnLoad, SIGNAL(clicked()), this, SLOT(GoToSaves())); |
131 connect(ui.pageSinglePlayer->BtnLoad, SIGNAL(clicked()), this, SLOT(GoToSaves())); |
131 connect(ui.pageSinglePlayer->BtnDemos, SIGNAL(clicked()), this, SLOT(GoToDemos())); |
132 connect(ui.pageSinglePlayer->BtnDemos, SIGNAL(clicked()), this, SLOT(GoToDemos())); |
132 connect(ui.pageSinglePlayer->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack())); |
133 connect(ui.pageSinglePlayer->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack())); |
133 |
134 |
134 connect(ui.pageTraining->BtnStartTrain, SIGNAL(clicked()), this, SLOT(StartTraining())); |
135 connect(ui.pageTraining->BtnStartTrain, SIGNAL(clicked()), this, SLOT(StartTraining())); |
135 connect(ui.pageTraining->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack())); |
136 connect(ui.pageTraining->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack())); |
136 |
137 |
137 connect(ui.pageSelectWeapon->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack())); |
138 connect(ui.pageSelectWeapon->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack())); |
138 connect(ui.pageSelectWeapon->BtnDefault, SIGNAL(clicked()), ui.pageSelectWeapon->pWeapons, SLOT(setDefault())); |
139 connect(ui.pageSelectWeapon->BtnDefault, SIGNAL(clicked()), ui.pageSelectWeapon->pWeapons, SLOT(setDefault())); |
139 connect(ui.pageSelectWeapon->BtnSave, SIGNAL(clicked()), ui.pageSelectWeapon->pWeapons, SLOT(save())); |
140 connect(ui.pageSelectWeapon->BtnSave, SIGNAL(clicked()), ui.pageSelectWeapon->pWeapons, SLOT(save())); |
140 |
141 |
141 connect(ui.pageSelectWeapon->BtnDelete, SIGNAL(clicked()), |
142 connect(ui.pageSelectWeapon->BtnDelete, SIGNAL(clicked()), |
142 ui.pageSelectWeapon->pWeapons, SLOT(deleteWeaponsName())); // executed first |
143 ui.pageSelectWeapon->pWeapons, SLOT(deleteWeaponsName())); // executed first |
143 connect(ui.pageSelectWeapon->pWeapons, SIGNAL(weaponsDeleted()), |
144 connect(ui.pageSelectWeapon->pWeapons, SIGNAL(weaponsDeleted()), |
144 this, SLOT(UpdateWeapons())); // executed second |
145 this, SLOT(UpdateWeapons())); // executed second |
145 connect(ui.pageSelectWeapon->pWeapons, SIGNAL(weaponsDeleted()), |
146 connect(ui.pageSelectWeapon->pWeapons, SIGNAL(weaponsDeleted()), |
146 this, SLOT(GoBack())); // executed third |
147 this, SLOT(GoBack())); // executed third |
147 |
148 |
|
149 connect(ui.pageScheme->BtnSave, SIGNAL(clicked()), this, SLOT(GoBack())); |
|
150 connect(ui.pageScheme->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack())); |
|
151 |
148 |
152 |
149 AmmoSchemeModel * ammoSchemeModel = new AmmoSchemeModel(this); |
153 AmmoSchemeModel * ammoSchemeModel = new AmmoSchemeModel(this); |
150 ui.pageScheme->mapper->setModel(ammoSchemeModel); |
154 ui.pageScheme->setModel(ammoSchemeModel); |
|
155 ui.pageMultiplayer->gameCFG->tv->setModel(ammoSchemeModel); |
151 |
156 |
152 PagesStack.push(ID_PAGE_MAIN); |
157 PagesStack.push(ID_PAGE_MAIN); |
153 GoBack(); |
158 GoBack(); |
154 } |
159 } |
155 |
160 |