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 /// Performance widget.
28 class PerformanceTab: public QWidget {
30 QVBoxLayout *mainLayout;
31 QComboBox *player[11];
32 QLabel *postLabel[11];
33 QLabel *plPerfLabel[11];
34 QComboBox *orders[11];
36 QComboBox *aggression;
38 QHBoxLayout *plCont[11];
41 QHBoxLayout *container;
42 QPushButton *reorderPl;
44 double defs; //defender points count
45 int defsC; //count of defenders
46 double mids; //midfield points count
48 double fors; //forward points count
50 int aggress; //aggression
53 void postLabels(); //redraw position labels
55 int findFirstOnPost(const QString &); // find first player of
57 PerformanceTab(QWidget *parent = 0);
60 void formatChange(int);
62 void aggressChange(int);
63 void playerChange(int);
65 void reorderPlayers();