f09a6f4bb0ed8767189b99ce79aea2f21a2c6918
[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 class PlayerCont: public QWidget {
23         Q_OBJECT
24         QTabWidget *tabWidget;
25         QVBoxLayout *mainLayout;
26 public:
27         PlayerCont(int pos, QWidget *parent = 0);
28         ~PlayerCont();
29 };
30
31 class PlayerTab: public QWidget {
32         Q_OBJECT
33         QTabWidget *tabWidget;
34         QVBoxLayout *mainLayout;
35 public:
36         PlayerTab(QWidget *parent = 0);
37         ~PlayerTab();
38         
39         void rebuildUI();
40 private:
41         void initTabs();
42 public slots:
43         void dataChanged();
44 };
45
46 #endif