doxygen comments
[aspt.git] / playerdetail.h
1 /*******************************************************************
2 Jan Cermak | johniez | aspt.johniez.com
3 Creative Commons 2.5 Attribution-NonCommercial-NoDerivs 2.5 license
4 http://creativecommons.org/licenses/by-nc-nd/2.5/legalcode
5 *******************************************************************/
6
7 #ifndef PLAYERDETAIL__H__
8 #define PLAYERDETAIL__H__
9
10 #include <QWidget>
11 #include <QTabWidget>
12 #include <QVBoxLayout>
13 #include <QPushButton>
14 #include <QLabel>
15
16 /// Struct with information parsed for each player.
17 struct Player {
18         QString id;
19         QString fname;
20         QString lname;
21         QString position;
22         QString rating;
23         QString morale;
24         QString aggresion;
25         QString fitness;
26         QString experience;
27         QString condition;
28         QString speed;
29         QString ballCntrl;
30         QString skill[4];
31         QString specSkill[2];
32         QString number, birth, age, height, weight, foot, injured, injury, leagueSusp, cupSusp, contract, wage, house, car, signBonus, winBonus, totalGames, leagueGoals, cupGoals, leagueCardsY, cupCardsY, leagueCardsR, cupCardsR, friendlyGoals, friendlyCardsY, friendlyCardsR, totalInjuries, curGames, curLeagueGoals, curCupGoals, curLeagueCardsY, curCupCardsY, curLeagueCardsR, curCupCardsR, curFriendlyGoals, curFriendlyCardsY, curFriendlyCardsR, curInjuries, bestRate, form, nick, country;
33 };
34
35 extern Player pls[];
36 extern int playerCnt;
37
38 /// Player detail widget.
39 class PlayerDetail: public QWidget {
40         Q_OBJECT
41         QVBoxLayout *mainLayout;
42         QLabel *player;
43         int i;
44 public:
45         PlayerDetail(int idx, QWidget *parent = 0);
46         ~PlayerDetail();
47 };
48
49 #endif