Added method to disable tabs.
[situare] / src / ui / paneltabbar.h
index 17da9f4..ddf170e 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,13 @@ public:
      */
     void removeTab(int index);
 
+    /**
+    * @brief Returns all tabs.
+    *
+    * @return All tabs
+    */
+    QButtonGroup *tabs() const;
+
 private:
     /**
      * @brief Initializes and formats tab buttons layout
@@ -92,6 +99,8 @@ public slots:
 
     /**
      * @brief This slot selects a tab at given index
+     *
+     * @param index Index of the tab
      */
     void selectTab(int index);
 
@@ -108,12 +117,21 @@ private 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);