Load saved muway and set to muways soft threshold.
[mussa.git] / qui / ThresholdWidget.hpp
index 319175a985f91527af48563c0e53be8aa55ef594..42d4e3b4f9f41ecb3e4a76048b0bab9663e1420a 100644 (file)
@@ -12,6 +12,11 @@ class ThresholdWidget : public QWidget
 
 public: 
   ThresholdWidget(QWidget *parent = 0, int min=20, int max=30);
+  
+  //! is the widget in read only mode
+  bool isReadOnly() const;
+  //! set the widget to specified read only state
+  void setReadOnly(bool);
 
   //! return min_threshold/max_threshold
   double min_ratio() const;
@@ -21,6 +26,8 @@ public:
   int threshold() const;
   //! update percent threshold
   void updatePercentThreshold();
+  
+  void reset(int min, int max, int threshold);
 
 public slots:
   void setBasepairThreshold(int threshold);
@@ -33,6 +40,7 @@ signals:
   void thresholdChanged(int new_threshold);
 
 protected:
+  void setupWidgets();
   QHBoxLayout *layout;
   QSpinBox *basepair_spinner;
   QLabel *window_size_label;