equal
deleted
inserted
replaced
17 */ |
17 */ |
18 |
18 |
19 #ifndef STATSPAGE_H |
19 #ifndef STATSPAGE_H |
20 #define STATSPAGE_H |
20 #define STATSPAGE_H |
21 |
21 |
|
22 #include <QVector> |
|
23 #include <QMap> |
22 #include "pages.h" |
24 #include "pages.h" |
|
25 |
|
26 class QGraphicsView; |
23 |
27 |
24 class PageGameStats : public AbstractPage |
28 class PageGameStats : public AbstractPage |
25 { |
29 { |
26 Q_OBJECT |
30 Q_OBJECT |
27 |
31 |
28 public: |
32 public: |
29 PageGameStats(QWidget* parent = 0); |
33 PageGameStats(QWidget* parent = 0); |
30 |
34 |
31 QPushButton *BtnBack; |
35 QPushButton *BtnBack; |
32 QLabel *labelGameStats; |
36 QLabel *labelGameStats; |
|
37 QGraphicsView * graphic; |
33 |
38 |
34 public slots: |
39 public slots: |
35 void GameStats(char type, const QString & info); |
40 void GameStats(char type, const QString & info); |
36 void clear(); |
41 void clear(); |
|
42 void renderStats(); |
37 |
43 |
38 private: |
44 private: |
39 void AddStatText(const QString & msg); |
45 void AddStatText(const QString & msg); |
|
46 |
|
47 QMap<quint32, QVector<quint32> > healthPoints; |
40 }; |
48 }; |
41 |
49 |
42 #endif // STATSPAGE_H |
50 #endif // STATSPAGE_H |