[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Wed Mar 3 20:49:06 CET 2004
CVS commit by staikos:
progress dialog added
M +1 -0 datawizard.ui 1.8
M +13 -0 datawizard.ui.h 1.8
--- kdeextragear-2/kst/kst/datawizard.ui #1.7:1.8
@@ -680,4 +680,5 @@
<include location="local" impldecl="in declaration">kstdatasource.h</include>
<include location="local" impldecl="in declaration">kstdatacollection.h</include>
+ <include location="global" impldecl="in implementation">kprogress.h</include>
<include location="global" impldecl="in implementation">qregexp.h</include>
<include location="local" impldecl="in implementation">datawizard.ui.h</include>
--- kdeextragear-2/kst/kst/datawizard.ui.h #1.7:1.8
@@ -185,4 +185,13 @@ void DataWizard::newFilter()
void DataWizard::finished()
{
+ int prg = 0;
+ KProgressDialog *dlg = new KProgressDialog(this, "Progress Dialog");
+
+ dlg->setAllowCancel(false);
+ dlg->progressBar()->setTotalSteps(2 * _vectors->childCount());
+ dlg->progressBar()->setProgress(0);
+ dlg->setLabel(i18n("Creating curves and plots..."));
+ dlg->show();
+
KstVectorList l;
@@ -206,4 +215,5 @@ void DataWizard::finished()
}
}
+ dlg->progressBar()->setProgress(++prg);
++it;
}
@@ -283,4 +293,5 @@ void DataWizard::finished()
++pit;
}
+ dlg->progressBar()->setProgress(++prg);
}
@@ -288,3 +299,5 @@ void DataWizard::finished()
KST::plotList.arrangePlots(QMAX(KST::plotList.getPlotCols(), unsigned(sqrt(plots.count()))));
}
+
+ delete dlg;
}
More information about the Kst
mailing list