doxygen comments
[aspt.git] / clubtab.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 CLUBTAB__H__
8 #define CLUBTAB__H__
9
10 #include <QWidget>
11 #include <QVBoxLayout>
12 #include <QPushButton>
13 #include <QLabel>
14
15 /// Struct with club information.
16 struct ClubStruct {
17         QString name, budget, rat, fndd, spirit, curpos, curdiv, totgmade, totgrecv, curgmade, curgrecv, curlgmade, curlgrecv, tothgames, totwins, totdraws, totlosts, curhgames, curwins, curdraws, curlosts, curlwins, curldraws, curllosts, totmaxatt, curmaxatt, totavgatt, curavgatt, form, for_a, tactic_a, attstyle_a, agr_a, cap_a;
18         bool incup;
19 };
20
21 extern void parse(const QString &);
22 extern ClubStruct club;
23
24 /// Club Tab widget.
25 class ClubTab: public QWidget {
26         Q_OBJECT
27         QVBoxLayout *mainLayout;
28         QLabel *label;
29 public:
30         ClubTab(QWidget *parent = 0);
31         ~ClubTab();
32         
33         void rebuildUI();
34 private:
35         void init();
36 public slots:
37         void dataChanged();
38 };
39
40 #endif