Some minor cosmetic changes and removed an unnecessary constant from panelcommon.h
[situare] / src / ui / paneltabbar.h
index 8c71b56..35ed793 100644 (file)
@@ -29,7 +29,7 @@ class QButtonGroup;
 /**
  * @brief Class for tab bar
  *
- * @author Pekka Nissinen - pekka.nissinen@ixonos.com
+ * @author Pekka Nissinen - pekka.nissinen (at) ixonos.com
  */
 class PanelTabBar : public QWidget
 {
@@ -78,6 +78,12 @@ public:
      */
     void removeTab(int index);
 
+private:
+    /**
+     * @brief Initializes and formats tab buttons layout
+     */
+    void setUpTabLayout();
+
 public slots:
     /**
      * @brief This slot is used to clear tab selections
@@ -85,7 +91,17 @@ public slots:
     void deselectTabs();
 
     /**
-     * @brief Internal slot used to track statemachine state
+     * @brief This slot selects a tab at given index
+     *
+     * @param index Index of the tab
+     */
+    void selectTab(int index);
+
+private slots:
+    /**
+     * @brief Sets the tab at current index active
+     *
+     * @param index Index of the tab
      */
     void setCurrentIndex(int index);
 
@@ -94,12 +110,21 @@ public slots:
  ******************************************************************************/
 signals:
     /**
-     * @brief This signal is emitted whenever the current tab index changes
+     * @brief This signal is emitted whenever the current tab changes
+     *
+     * @param index Index of the new tab
      */
     void currentChanged(int index);
 
     /**
+     * @brief This signal is emitted when tabs are added or removed
+     */
+    void sizeChangeRequested();
+
+    /**
      * @brief This signal is emitted whenever user wants to close a tab
+     *
+     * @param index Index of the currently active tab
      */
     void tabCloseRequested(int index);