Documentation
[situare] / src / ui / tabbedpanel.h
index 6a483bf..87a056d 100644 (file)
@@ -32,6 +32,7 @@ class QSignalTransition;
 class QState;
 class QStateMachine;
 
+class ListItemContextButtonBar;
 class PanelBar;
 class PanelContentStack;
 class PanelContextButtonBar;
@@ -95,6 +96,15 @@ public:
      */
     void removeTab(int index);
 
+    /**
+    * @brief Sets tabs enabled.
+    *
+    * If disabled tab is currently selected, panel will be closed also
+    * @param tabIndexes tab indexes to set
+    * @param enabled true if should be enabled, false otherwise
+    */
+    void setTabsEnabled(const QList<int> &tabIndexes, bool enabled);
+
 public slots:
     /**
      * @brief Slot that closes the panel
@@ -119,10 +129,10 @@ public slots:
 
 private slots:
     /**
-    * @brief Calculates mask for this widget.
-    *
-    * Mask is constructed from PanelTabBar, PanelContextButtonBar and panel content sizes.
-    */
+     * @brief Calculates mask for tabbed panel
+     *
+     * Mask is constructed from PanelTabBar, PanelContextButtonBar and panel content sizes
+     */
     void calculateMask();
 
     /**
@@ -154,6 +164,13 @@ signals:
     void currentChanged(int index);
 
     /**
+     * @brief Emitted when there is a change in list item selection
+     *
+     * @param itemIsSelected True if any item is selected.
+     */
+    void listItemSelectionChanged(bool itemIsSelected);
+
+    /**
      * @brief Signal that is sent when panel is closed
      *
      * @sa openPanel
@@ -187,6 +204,7 @@ private:
     QState *m_stateClosed;      ///< State of the closed panel
     QState *m_stateOpened;      ///< State of the opened panel
 
+    ListItemContextButtonBar *m_itemContextButtonBar;   ///< Widget for list item context button bar
     PanelBar *m_panelBar;                               ///< Widget for panel bar
     PanelContentStack *m_panelContentStack;             ///< Stack for panel widgets
     PanelContextButtonBar * m_panelContextButtonBar;    ///< Widget for panel context button bar