doxygen comments
[aspt.git] / playertab.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 PLAYERTAB__H__
8 #define PLAYERTAB__H__
9
10 #include <QWidget>
11 #include <QTabWidget>
12 #include <QVBoxLayout>
13 #include <QPushButton>
14 #include <QLabel>
15
16 #include "playerdetail.h"
17
18 extern void parse(const QString &);
19 extern int playerCnt;
20 extern Player pls[];
21
22 /// Container for players with same possition (GK, LB..)
23 class PlayerCont: public QWidget {
24         Q_OBJECT
25         QTabWidget *tabWidget;
26         QVBoxLayout *mainLayout;
27 public:
28         PlayerCont(int pos, QWidget *parent = 0);
29         ~PlayerCont();
30 };
31
32 /// Widget with player possition Tabs.
33 class PlayerTab: public QWidget {
34         Q_OBJECT
35         QTabWidget *tabWidget;
36         QVBoxLayout *mainLayout;
37 public:
38         PlayerTab(QWidget *parent = 0);
39         ~PlayerTab();
40         
41         void rebuildUI();
42 private:
43         void initTabs();
44 public slots:
45         void dataChanged();
46 };
47
48 #endif