[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Fri Aug 27 22:03:09 CEST 2004


CVS commit by arwalker: 

Allow for the PSDs in determining the number of steps for the progress bar.


  M +14 -9     datawizard.ui.h   1.80


--- kdeextragear-2/kst/kst/datawizard.ui.h  #1.79:1.80
@@ -388,4 +388,7 @@ void DataWizard::finished()
             QCheckListItem *i = static_cast<QCheckListItem*>(it.current());
             if (i->isOn()) {
+      if (_radioButtonPlotPSD->isChecked() || _radioButtonPlotDataPSD->isChecked()) {
+        n_steps++;
+      }
                 n_steps++;
             }
@@ -455,5 +458,5 @@ void DataWizard::finished()
     // create the necessary plots...
     //
-    app->slotUpdateProgress(0, 0, i18n("Creating plots..."));
+    app->slotUpdateProgress(n_steps, prg, i18n("Creating plots..."));
     KstViewObjectList plots;
     bool relayout = true;
@@ -518,5 +521,5 @@ void DataWizard::finished()
     // create the data curves...
     //
-    app->slotUpdateProgress(0, 0, i18n("Creating curves..."));
+    app->slotUpdateProgress(n_steps, prg, i18n("Creating curves..."));
     KstViewObjectList::Iterator pit = plots.begin();
     for (KstVectorList::Iterator it = l.begin(); it != l.end(); ++it) {
@@ -565,4 +568,5 @@ void DataWizard::finished()
     // create the PSDs...
     //
+    app->slotUpdateProgress(n_steps, prg, i18n("Creating PSDs..."));
     for (KstVectorList::Iterator it = l.begin(); it != l.end(); ++it) {
         if (_radioButtonPlotPSD->isChecked() || _radioButtonPlotDataPSD->isChecked()) {
@@ -602,4 +606,5 @@ void DataWizard::finished()
             }
         }
+    app->slotUpdateProgress(n_steps, ++prg, i18n("Creating PSDs..."));
     }
 





More information about the Kst mailing list