107 void NetPassword(const QString & nick); |
107 void NetPassword(const QString & nick); |
108 void NetNickRegistered(const QString & nick); |
108 void NetNickRegistered(const QString & nick); |
109 void NetNickNotRegistered(const QString & nick); |
109 void NetNickNotRegistered(const QString & nick); |
110 void NetNickTaken(const QString & nick); |
110 void NetNickTaken(const QString & nick); |
111 void NetAuthFailed(); |
111 void NetAuthFailed(); |
112 bool RetryDialog(const QString & title, const QString & label); |
112 bool RetryDialog(const QString & title, const QString & label); |
113 void NetTeamAccepted(const QString& team); |
113 void NetTeamAccepted(const QString& team); |
114 void AddNetTeam(const HWTeam& team); |
114 void AddNetTeam(const HWTeam& team); |
115 void RemoveNetTeam(const HWTeam& team); |
115 void RemoveNetTeam(const HWTeam& team); |
116 void StartMPGame(); |
116 void StartMPGame(); |
117 void GameStateChanged(GameState gameState); |
117 void GameStateChanged(GameState gameState); |
124 void onFrontendEffects(bool value); |
124 void onFrontendEffects(bool value); |
125 void Music(bool checked); |
125 void Music(bool checked); |
126 void UpdateCampaignPage(int index); |
126 void UpdateCampaignPage(int index); |
127 void UpdateCampaignPageProgress(int index); |
127 void UpdateCampaignPageProgress(int index); |
128 void InitCampaignPage(); |
128 void InitCampaignPage(); |
129 //Starts the transmission process for the feedback |
129 void showFeedbackDialog(); |
130 void SendFeedback(); |
|
131 //Called after submitting new feedback |
|
132 void finishedSlot(QNetworkReply* reply); |
|
133 |
130 |
134 void NetGameChangeStatus(bool isMaster); |
131 void NetGameChangeStatus(bool isMaster); |
135 void NetGameMaster(); |
132 void NetGameMaster(); |
136 void NetGameSlave(); |
133 void NetGameSlave(); |
137 |
134 |
138 void AsyncNetServerStart(); |
135 void AsyncNetServerStart(); |
139 void NetLeftRoom(const QString & reason); |
136 void NetLeftRoom(const QString & reason); |
140 void selectFirstNetScheme(); |
137 void selectFirstNetScheme(); |
141 |
138 |
142 void saveDemoWithCustomName(); |
139 void saveDemoWithCustomName(); |
|
140 void openRegistrationPage(); |
|
141 |
|
142 void startGame(); |
143 |
143 |
144 private: |
144 private: |
145 void _NetConnect(const QString & hostName, quint16 port, QString nick); |
145 void _NetConnect(const QString & hostName, quint16 port, QString nick); |
146 void UpdateTeamsLists(); |
146 void UpdateTeamsLists(); |
147 void CreateGame(GameCFGWidget * gamecfg, TeamSelWidget* pTeamSelWidget, QString ammo); |
147 void CreateGame(GameCFGWidget * gamecfg, TeamSelWidget* pTeamSelWidget, QString ammo); |
148 void closeEvent(QCloseEvent *event); |
148 void closeEvent(QCloseEvent *event); |
149 void CustomizePalettes(); |
149 void CustomizePalettes(); |
150 void resizeEvent(QResizeEvent * event); |
150 void resizeEvent(QResizeEvent * event); |
|
151 QString stringifyPageId(quint32 id); |
151 //void keyReleaseEvent(QKeyEvent *event); |
152 //void keyReleaseEvent(QKeyEvent *event); |
152 |
153 |
153 enum PageIDs |
154 enum PageIDs |
154 { |
155 { |
155 ID_PAGE_SETUP_TEAM , |
156 ID_PAGE_SETUP_TEAM , |
187 QStack<int> PagesStack; |
187 QStack<int> PagesStack; |
188 QTime eggTimer; |
188 QTime eggTimer; |
189 BGWidget * wBackground; |
189 BGWidget * wBackground; |
190 QSignalMapper * pageSwitchMapper; |
190 QSignalMapper * pageSwitchMapper; |
191 QByteArray m_lastDemo; |
191 QByteArray m_lastDemo; |
192 QNetworkAccessManager * nam; |
|
193 |
192 |
194 QPropertyAnimation *animationNewSlide; |
193 QPropertyAnimation *animationNewSlide; |
195 QPropertyAnimation *animationOldSlide; |
194 QPropertyAnimation *animationOldSlide; |
196 QPropertyAnimation *animationNewOpacity; |
195 QPropertyAnimation *animationNewOpacity; |
197 QPropertyAnimation *animationOldOpacity; |
196 QPropertyAnimation *animationOldOpacity; |