author | nemo |
Wed, 08 Sep 2010 18:18:01 -0400 | |
changeset 3843 | 50e75cb38c18 |
parent 3788 | 9aa8a832e296 |
child 4976 | 088d40d8aba2 |
permissions | -rw-r--r-- |
1621 | 1 |
/* |
2 |
* Hedgewars, a free turn based strategy game |
|
3236
4ab3917d7d44
Update (c) lines to 2010 as unc0rr requested - they all had varying values so I just took the first year mentioned, then tacked on -2010
nemo
parents:
2948
diff
changeset
|
3 |
* Copyright (c) 2010 Andrey Korotaev <unC0Rr@gmail.com> |
1621 | 4 |
* |
5 |
* This program is free software; you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation; version 2 of the License |
|
8 |
* |
|
9 |
* This program is distributed in the hope that it will be useful, |
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
13 |
* |
|
14 |
* You should have received a copy of the GNU General Public License |
|
15 |
* along with this program; if not, write to the Free Software |
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
17 |
*/ |
|
18 |
||
19 |
#ifndef STATSPAGE_H |
|
20 |
#define STATSPAGE_H |
|
21 |
||
1625 | 22 |
#include <QVector> |
23 |
#include <QMap> |
|
1636 | 24 |
#include <QGraphicsView> |
1621 | 25 |
#include "pages.h" |
26 |
||
1636 | 27 |
class FitGraphicsView : public QGraphicsView |
28 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2377
diff
changeset
|
29 |
Q_OBJECT |
1636 | 30 |
|
31 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2377
diff
changeset
|
32 |
FitGraphicsView(QWidget* parent = 0); |
1636 | 33 |
|
34 |
protected: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2377
diff
changeset
|
35 |
void resizeEvent(QResizeEvent * event); |
1636 | 36 |
}; |
1625 | 37 |
|
1621 | 38 |
class PageGameStats : public AbstractPage |
39 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2377
diff
changeset
|
40 |
Q_OBJECT |
1621 | 41 |
|
42 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2377
diff
changeset
|
43 |
PageGameStats(QWidget* parent = 0); |
1621 | 44 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2377
diff
changeset
|
45 |
QPushButton *BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2377
diff
changeset
|
46 |
QLabel *labelGameStats; |
3788
9aa8a832e296
adds prettier after-game statistics page with more stats
TheXception
parents:
3236
diff
changeset
|
47 |
QLabel *labelGameWin; |
9aa8a832e296
adds prettier after-game statistics page with more stats
TheXception
parents:
3236
diff
changeset
|
48 |
QLabel *labelGameRank; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2377
diff
changeset
|
49 |
FitGraphicsView * graphic; |
1622 | 50 |
|
51 |
public slots: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2377
diff
changeset
|
52 |
void GameStats(char type, const QString & info); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2377
diff
changeset
|
53 |
void clear(); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2377
diff
changeset
|
54 |
void renderStats(); |
2377 | 55 |
|
1622 | 56 |
private: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2377
diff
changeset
|
57 |
void AddStatText(const QString & msg); |
1625 | 58 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2377
diff
changeset
|
59 |
QMap<quint32, QVector<quint32> > healthPoints; |
3788
9aa8a832e296
adds prettier after-game statistics page with more stats
TheXception
parents:
3236
diff
changeset
|
60 |
unsigned int playerPosition; |
9aa8a832e296
adds prettier after-game statistics page with more stats
TheXception
parents:
3236
diff
changeset
|
61 |
quint32 lastColor; |
1621 | 62 |
}; |
63 |
||
64 |
#endif // STATSPAGE_H |