recover threshold and window size
[mussa.git] / qui / MussaWindow.cpp
index 808d1888875599291061120e862bc772fa2da46a..4e11f474d4418ca65e1c51f309a19a7269e250d0 100644 (file)
@@ -53,9 +53,9 @@ MussaWindow::MussaWindow(Mussa *analysis_, QWidget *parent) :
   mussaViewTB.addWidget(&zoomBox);
   connect(&zoomBox, SIGNAL(valueChanged(int)), 
           &browser, SLOT(setZoom(int)));
-  threshold.setRange(10,30);
-  threshold.setThreshold(20);
+  
+  // threshold range is set in updateAnalysis
+  
   //scene->setClipPlane(20);
   // FIXME: for when we get the paths drawn at the appropriate depth
   //connect(&threshold, SIGNAL(thresholdChanged(int)),
@@ -368,7 +368,8 @@ void MussaWindow::viewMussaAlignment()
                         
 void MussaWindow::updateAnalysis()
 {
-  cout << "analysis updated" << endl;
+  threshold.setRange(analysis->get_threshold(),analysis->get_window());
+  threshold.setThreshold(analysis->get_threshold());
   for (list<MussaAlignedWindow *>::iterator maw_i = aligned_windows.begin();
        maw_i != aligned_windows.end();
        ++maw_i)