equal
deleted
inserted
replaced
33 |
33 |
34 #include <qmessagebox.h> |
34 #include <qmessagebox.h> |
35 #include <qdir.h> |
35 #include <qdir.h> |
36 #include <qtextstream.h> |
36 #include <qtextstream.h> |
37 #include <qregexp.h> |
37 #include <qregexp.h> |
|
38 #include "game.h" |
38 #include "hwconsts.h" |
39 #include "hwconsts.h" |
39 #include "game.h" |
|
40 #include "sdlkeys.h" |
40 #include "sdlkeys.h" |
41 |
41 |
42 class QHostAddress; |
42 class QHostAddress; |
43 class QDir; |
43 class QDir; |
44 class QMessageBox; |
44 class QMessageBox; |
198 Pages->raiseWidget(PageDemos); |
198 Pages->raiseWidget(PageDemos); |
199 } |
199 } |
200 |
200 |
201 void HWForm::NewTeam() |
201 void HWForm::NewTeam() |
202 { |
202 { |
203 HWTeam tmpTeam; |
203 HWTeam tmpTeam(this); |
204 tmpTeam.ToPage( this ); |
204 tmpTeam.ToPage(); |
205 } |
205 } |
206 |
206 |
207 |
207 |
208 void HWForm::EditTeam() |
208 void HWForm::EditTeam() |
209 { |
209 { |
210 HWTeam tmpTeam; |
210 HWTeam tmpTeam(this); |
211 tmpTeam.LoadFromFile(cfgdir.absPath() + "/team.cfg"); |
211 tmpTeam.LoadFromFile(cfgdir.absPath() + "/team.cfg"); |
212 tmpTeam.ToPage( this ); |
212 tmpTeam.ToPage(); |
213 } |
213 } |
214 |
214 |
215 |
215 |
216 void HWForm::SaveTeamFromPage() |
216 void HWForm::SaveTeamFromPage() |
217 { |
217 { |
218 HWTeam tmpTeam; |
218 HWTeam tmpTeam(this); |
219 tmpTeam.FromPage( this ); |
219 tmpTeam.FromPage(); |
220 tmpTeam.SaveToFile(cfgdir.absPath() + "/team.cfg"); |
220 tmpTeam.SaveToFile(cfgdir.absPath() + "/team.cfg"); |
221 } |
221 } |
222 |
222 |
223 |
223 |
224 void HWForm::CBForts_activated( const QString & fortname) |
224 void HWForm::CBForts_activated( const QString & fortname) |