track labels
[mussa.git] / qui / PathWidget.hpp
1 #ifndef _PATH_WIDGET_H_
2 #define _PATH_WIDGET_H_
3
4 #include <QSplitter>
5
6 #include "qui/ScrollableScene.hpp"
7 #include "qui/PathSidebar.hpp"
8
9 class PathWidget : public QSplitter
10 {
11   Q_OBJECT 
12
13 public:
14   PathWidget(QWidget *parent=0);
15
16   PathScene& scene() { return scrollable_scene.scene(); }
17   
18 public slots:
19   //! when a scene changes its tracks lets update some of our meta info
20   void updateTracks();
21   void updatePosition();
22
23 private:
24   ScrollableScene scrollable_scene;
25   PathSidebar left_sidebar;
26   PathSidebar right_sidebar;
27 };
28 #endif