doxygen comments
[aspt.git] / playertab.cc
index 9c05369..d297a18 100755 (executable)
@@ -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;