1 #ifndef _THRESHOLD_WIDGET_H_
2 #define _THRESHOLD_WIDGET_H_
9 class ThresholdWidget : public QWidget
14 ThresholdWidget(QWidget *parent = 0, int min=20, int max=30);
16 //! is the widget in read only mode
17 bool isReadOnly() const;
18 //! set the widget to specified read only state
19 void setReadOnly(bool);
21 //! return min_threshold/max_threshold
22 double min_ratio() const;
23 //! return current_threshold/maximum_threshold
25 //! return our current threshold
26 int threshold() const;
27 //! update percent threshold
28 void updatePercentThreshold();
30 void reset(int min, int max, int threshold);
33 void setBasepairThreshold(int threshold);
34 //void setPercentThreshold(int percent_threshold);
35 //! set the min and max base pair range
36 void setRange(int min, int max);
39 //! the current number of base pairs needed for a window of conservation
40 void thresholdChanged(int new_threshold);
45 QSpinBox *basepair_spinner;
46 QLabel *window_size_label;
47 QLabel *percent_label;
50 int cur_percent_threshold;
52 const int threshold_max_display_digits = 2;