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 *******************************************************************/
7 #ifndef PERFORMANCETAB__H__
8 #define PERFORMANCETAB__H__
12 #include <QVBoxLayout>
13 #include <QHBoxLayout>
14 #include <QPushButton>
18 #include "playerdetail.h"
21 extern void parse(const QString &);
25 extern ClubStruct club;
27 class PerformanceTab: public QWidget {
29 QVBoxLayout *mainLayout;
30 QComboBox *player[11];
31 QLabel *postLabel[11];
32 QLabel *plPerfLabel[11];
33 QComboBox *orders[11];
35 QComboBox *aggression;
37 QHBoxLayout *plCont[11];
40 QHBoxLayout *container;
41 QPushButton *reorderPl;
43 double defs; //defender points count
44 int defsC; //count of defenders
45 double mids; //midfield points count
47 double fors; //forward points count
49 int aggress; //aggression
52 void postLabels(); //redraw position labels
54 int findFirstOnPost(const QString &); // find first player of
56 PerformanceTab(QWidget *parent = 0);
59 void formatChange(int);
61 void aggressChange(int);
62 void playerChange(int);
64 void reorderPlayers();