/**
* @brief Class for tab bar
*
- * @author Pekka Nissinen - pekka.nissinen@ixonos.com
+ * @author Pekka Nissinen - pekka.nissinen (at) ixonos.com
*/
class PanelTabBar : public QWidget
{
*/
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
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);
******************************************************************************/
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);