equal
deleted
inserted
replaced
20 #define HWFORM_H |
20 #define HWFORM_H |
21 |
21 |
22 #include <QMainWindow> |
22 #include <QMainWindow> |
23 #include <QStack> |
23 #include <QStack> |
24 #include <QTime> |
24 #include <QTime> |
|
25 #include <QPointer> |
25 |
26 |
26 #include "netserver.h" |
27 #include "netserver.h" |
27 #include "game.h" |
28 #include "game.h" |
28 #include "ui_hwform.h" |
29 #include "ui_hwform.h" |
29 #include "SDLs.h" |
30 #include "SDLInteraction.h" |
30 #include "bgwidget.h" |
31 #include "bgwidget.h" |
31 |
32 |
32 #ifdef __APPLE__ |
33 #ifdef __APPLE__ |
33 #include "InstallController.h" |
34 #include "InstallController.h" |
34 #endif |
35 #endif |
52 Q_OBJECT |
53 Q_OBJECT |
53 |
54 |
54 public: |
55 public: |
55 HWForm(QWidget *parent = 0, QString styleSheet = ""); |
56 HWForm(QWidget *parent = 0, QString styleSheet = ""); |
56 Ui_HWForm ui; |
57 Ui_HWForm ui; |
57 SDLInteraction sdli; |
|
58 GameUIConfig * config; |
58 GameUIConfig * config; |
59 QSettings * gameSettings; // Same file GameUIConfig points to but without the baggage. Needs sync() calls if you want to get GameUIConfig changes though |
59 QSettings * gameSettings; // Same file GameUIConfig points to but without the baggage. Needs sync() calls if you want to get GameUIConfig changes though |
60 void updateXfire(); |
60 void updateXfire(); |
61 void PlayDemoQuick(const QString & demofilename); |
61 void PlayDemoQuick(const QString & demofilename); |
|
62 void exit(); |
62 |
63 |
63 private slots: |
64 private slots: |
64 void GoToSaves(); |
65 void GoToSaves(); |
65 void GoToDemos(); |
66 void GoToDemos(); |
66 void GoToNet(); |
67 void GoToNet(); |
74 void GoBack(); |
75 void GoBack(); |
75 void OpenSnapshotFolder(); |
76 void OpenSnapshotFolder(); |
76 QString getDemoArguments(); |
77 QString getDemoArguments(); |
77 void AssociateFiles(); |
78 void AssociateFiles(); |
78 void btnExitPressed(); |
79 void btnExitPressed(); |
79 void btnExitClicked(); |
|
80 void IntermediateSetup(); |
80 void IntermediateSetup(); |
81 void NewTeam(); |
81 void NewTeam(); |
82 void EditTeam(); |
82 void EditTeam(const QString & teamName); |
83 void DeleteTeam(); |
83 void AfterTeamEdit(); |
84 void RandomNames(); |
84 void DeleteTeam(const QString & teamName); |
85 void RandomName(const int &i); |
|
86 void TeamSave(); |
|
87 void TeamDiscard(); |
|
88 void DeleteScheme(); |
85 void DeleteScheme(); |
89 void DeleteWeaponSet(); |
86 void DeleteWeaponSet(); |
90 void SimpleGame(); |
87 void SimpleGame(); |
91 void PlayDemo(); |
88 void PlayDemo(); |
92 void StartTraining(); |
89 void startTraining(const QString&); |
93 void StartCampaign(); |
90 void StartCampaign(); |
94 void NetConnect(); |
91 void NetConnect(); |
95 void NetConnectServer(const QString & host, quint16 port); |
92 void NetConnectServer(const QString & host, quint16 port); |
96 void NetConnectOfficialServer(); |
93 void NetConnectOfficialServer(); |
97 void NetStartServer(); |
94 void NetStartServer(); |
158 ID_PAGE_NETTYPE = 18, |
155 ID_PAGE_NETTYPE = 18, |
159 ID_PAGE_CAMPAIGN = 19, |
156 ID_PAGE_CAMPAIGN = 19, |
160 ID_PAGE_DRAWMAP = 20, |
157 ID_PAGE_DRAWMAP = 20, |
161 ID_PAGE_DATADOWNLOAD = 21 |
158 ID_PAGE_DATADOWNLOAD = 21 |
162 }; |
159 }; |
163 HWGame * game; |
160 QPointer<HWGame> game; |
164 HWNetServer* pnetserver; |
161 QPointer<HWNetServer> pnetserver; |
165 HWNetRegisterServer* pRegisterServer; |
162 QPointer<HWNetRegisterServer> pRegisterServer; |
166 HWTeam * editedTeam; |
163 QPointer<HWTeam> editedTeam; |
167 HWNewNet * hwnet; |
164 QPointer<HWNewNet> hwnet; |
168 HWNamegen * namegen; |
165 HWNamegen * namegen; |
169 AmmoSchemeModel * ammoSchemeModel; |
166 AmmoSchemeModel * ammoSchemeModel; |
170 QStack<int> PagesStack; |
167 QStack<int> PagesStack; |
171 QTime eggTimer; |
168 QTime eggTimer; |
172 BGWidget * wBackground; |
169 BGWidget * wBackground; |