Finalised the classes for panels
[situare] / src / ui / userpanel.h
index a47bd2e..a8e42f6 100644 (file)
 
 #ifndef USERPANEL_H
 #define USERPANEL_H
+
 #include <QtGui>
 
+class PanelSliderBar;
+
 /**
 * @brief Class for sliding user information panel
 *
@@ -43,19 +46,6 @@ public:
     UserInfoPanel(QWidget *parent = 0);
 
 /*******************************************************************************
- * BASE CLASS INHERITED AND REIMPLEMENTED MEMBER FUNCTIONS
- ******************************************************************************/
-protected:
-    /**
-    * @brief Draws stylesheet used in this class.
-    *
-    * @param * QPaintEvent unused
-    */
-    void paintEvent(QPaintEvent *);
-
-    void mouseReleaseEvent(QMouseEvent *);
-
-/*******************************************************************************
  * MEMBER FUNCTIONS AND SLOTS
  ******************************************************************************/
 public slots:
@@ -67,18 +57,12 @@ public slots:
     */
     void reDrawUserPanel(int width, int height);
 
-
-signals:
-    void clicked();
-
 /*******************************************************************************
  * DATA MEMBERS
  ******************************************************************************/
 private:
     QVBoxLayout *m_userPanelVBox; ///< Vertical layout inside the panel
-    QPushButton *m_userPanelExpandButton; ///< PushButton used to expand the panel
-    QLabel *m_userPanelLabel; ///< Dummy label inside the panel
-    QWidget *m_userPanelSlidingBar; ///< Widget for sidebar tab item
+    PanelSliderBar *m_userPanelSlidingBar; ///< Widget for sidebar tab item
 
     QStateMachine *m_userPanelStateMachine; ///< State machine for sliding the panel
     QState *m_userPanelStateClosed; ///< State of the closed panel