Thicker bars, better letters
[mussa.git] / qui / PathWidget.h
1 #ifndef _PATH_WIDGET_H_
2 #define _PATH_WIDGET_H_
3
4 #include <QScrollBar>
5 #include <QWidget>
6 class PathScene;
7
8 class PathWidget : public QWidget
9 {
10   Q_OBJECT 
11
12 public:
13   PathWidget(PathScene *, QWidget *parent=0);
14
15 public slots:
16   //! update the scrollbar with current viewport information
17   void updateScrollBar();
18   //! update scene with the properly scalled scrollbar offset
19   void setViewportX(int x);
20
21 private:
22   PathScene *scene;
23   QScrollBar viewportBar;
24   int thumb;
25
26   float range;
27   float scale;
28
29
30 };
31
32 #endif