[Kst] branches/work/kst/portto4/kst/src/libkstapp

Barth Netterfield netterfield at astro.utoronto.ca
Fri Jan 7 14:43:44 CET 2011


SVN commit 1212572 by netterfield:

Fix the #1 feature request from the BLASTpol flight: advance, etc
buttons should set dialog defaults!


 M  +15 -0     mainwindow.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.cpp #1212571:1212572
@@ -1311,6 +1311,9 @@
     v->unlock();
   }
   UpdateManager::self()->doUpdates(true);
+  _dialogDefaults->setValue("vector/range", nf);
+  _dialogDefaults->setValue("vector/countFromEnd", true);
+  _dialogDefaults->setValue("vector/readToEnd", false);
 }
 
 void MainWindow::readToEnd() {
@@ -1334,6 +1337,9 @@
     v->registerChange();
     v->unlock();
   }
+  _dialogDefaults->setValue("vector/start", f0);
+  _dialogDefaults->setValue("vector/countFromEnd", false);
+  _dialogDefaults->setValue("vector/readToEnd", true);
   UpdateManager::self()->doUpdates(true);
 }
 
@@ -1384,6 +1390,11 @@
       v->unlock();
     }
   }
+  _dialogDefaults->setValue("vector/range", nf);
+  _dialogDefaults->setValue("vector/start", f0);
+  _dialogDefaults->setValue("vector/countFromEnd", false);
+  _dialogDefaults->setValue("vector/readToEnd", false);
+
   UpdateManager::self()->doUpdates(true);
 }
 
@@ -1430,6 +1441,10 @@
       v->unlock();
     }
   }
+  _dialogDefaults->setValue("vector/range", nf);
+  _dialogDefaults->setValue("vector/start", f0);
+  _dialogDefaults->setValue("vector/countFromEnd", false);
+  _dialogDefaults->setValue("vector/readToEnd", false);
   UpdateManager::self()->doUpdates(true);
 }
 


More information about the Kst mailing list