X-Git-Url: https://git.johniez.cz/?p=aspt.git;a=blobdiff_plain;f=playertab.cc;fp=playertab.cc;h=d297a183144aac7401cbf98328c9609a1d1c8a83;hp=9c05369b06f0c2420916d784541c8491e17036da;hb=d5bb30030db3f96b903382a8f862c76d73fdc2b2;hpb=b935a223648e5014d780856903a1b421c7e84398 diff --git a/playertab.cc b/playertab.cc index 9c05369..d297a18 100755 --- a/playertab.cc +++ b/playertab.cc @@ -6,6 +6,11 @@ http://creativecommons.org/licenses/by-nc-nd/2.5/legalcode #include "playertab.h" +/** + * \brief Player Container constructor. + * + * Add player to adequate Tab by player possition (GK, LB etc.). + */ PlayerCont::PlayerCont(int pos, QWidget *parent) : QWidget(parent) { tabWidget = new QTabWidget; tabWidget->setTabPosition(QTabWidget::West); @@ -39,20 +44,34 @@ PlayerCont::PlayerCont(int pos, QWidget *parent) : QWidget(parent) { setLayout(mainLayout); } +/** + * \brief Player Container destructor. + */ PlayerCont::~PlayerCont() { delete tabWidget; delete mainLayout; } +/** + * \brief Players Tab constructor. + * + * Hold player possition Tabs (GK, LB...). + */ PlayerTab::PlayerTab(QWidget *parent) : QWidget(parent) { initTabs(); } +/** + * \brief Players Tab destructor. + */ PlayerTab::~PlayerTab() { delete tabWidget; delete mainLayout; } +/** + * \brief Init Player Tab - add Tabs with player possition. + */ void PlayerTab::initTabs() { tabWidget = new QTabWidget; tabWidget->setTabPosition(QTabWidget::North); @@ -73,10 +92,16 @@ void PlayerTab::initTabs() { setLayout(mainLayout); } +/** + * \brief Slot assigned to data change action. + */ void PlayerTab::dataChanged() { rebuildUI(); } +/** + * \brief Redraw UI with new data. + */ void PlayerTab::rebuildUI() { delete tabWidget; delete mainLayout;