Refactored panel context button bar animation and now it is implemented in a lot...
[situare] / src / ui / tabbedpanel.h
index aaeb990..b7473cc 100644 (file)
@@ -119,11 +119,6 @@ public slots:
 
 private slots:
     /**
-     * @brief Repositions context button bar
-     */
-    void repositionContextButtonBar();
-
-    /**
      * @brief Sets the panel at current index active
      *
      * @param index Index of the panel
@@ -174,22 +169,16 @@ signals:
  * DATA MEMBERS
  ******************************************************************************/
 private:
-    bool m_open;                                    ///< Current state of the panel
-
-    QPropertyAnimation *m_panelAnimation;           ///< Animation for panel state changes
-
-    QSignalTransition *m_panelTransitionClose;      ///< Transition signal for closing the panel
-    QSignalTransition *m_panelTransitionOpen;       ///< Transition signal for opening the panel
-
-    QState *m_panelStateClosed;                     ///< State of the closed panel
-    QState *m_panelStateOpened;                     ///< State of the opened panel
+    bool m_open;                            ///< Current state of the panel
+    bool m_closeRequestPending;
 
-    QStateMachine *m_panelStateMachine;             ///< State machine for sliding the panel
+    QState *m_stateClosed;                  ///< State of the closed panel
+    QState *m_stateOpened;                  ///< State of the opened panel
 
-    PanelBar *m_panelBar;                           ///< Widget for panel bar
-    PanelContentStack *m_panelContentStack;         ///< Stack for panel widgets
-    PanelContextButtonBar * m_panelContextButtonBar;///< Widget for panel context button bar
-    PanelTabBar *m_panelTabBar;                     ///< Widget for panel tab bar
+    PanelBar *m_panelBar;                               ///< Widget for panel bar
+    PanelContentStack *m_panelContentStack;             ///< Stack for panel widgets
+    PanelContextButtonBar * m_panelContextButtonBar;    ///< Widget for panel context button bar
+    PanelTabBar *m_panelTabBar;                         ///< Widget for panel tab bar
 };
 
 #endif // TABBEDPANEL_H