54e0b1a9c3d0a36ca42f02e8b9380766a897a89c
[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 ClubStruct {
16         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;
17         bool incup;
18 };
19
20 extern void parse(const QString &);
21 extern ClubStruct club;
22
23 class ClubTab: public QWidget {
24         Q_OBJECT
25         QVBoxLayout *mainLayout;
26         QLabel *label;
27 public:
28         ClubTab(QWidget *parent = 0);
29         ~ClubTab();
30         
31         void rebuildUI();
32 private:
33         void init();
34 public slots:
35         void dataChanged();
36 };
37
38 #endif