Update mussa to build on ubuntu 10.04 with qt 4.6.2 +boost 1.40.0.1
[mussa.git] / qui / ZoomWidget.hpp
1 #ifndef _ZOOMWIDGET_H_ 
2 #define _ZOOMWIDGET_H_
3
4 #include <QDoubleSpinBox>
5 #include <QWidget>
6
7 class ZoomWidget : public QWidget
8 {
9   Q_OBJECT 
10
11 public: 
12   ZoomWidget(QWidget *parent = 0);
13   //! set the range
14   void setRange(double min, double max);
15   double minimum() const;
16   double maximum() const;
17   //! set value used when incrementing the spinner
18   void setSingleStep(double val);
19   //! get the value used to incrementing the spinner
20   double singleStep() const;
21
22 public slots:
23   void setValue(double);
24
25 signals:
26   //! the current number of base pairs needed for a window of conservation
27   void valueChanged(double);
28
29 protected:
30   QDoubleSpinBox *zoom;
31
32   double cur_value;
33   const double max_zoom_size;
34  };
35 #endif