[Kst] kdeextragear-2/kst/kst
Rick Chern
rchern at interchange.ubc.ca
Tue Jul 13 02:01:38 CEST 2004
CVS commit by rchern:
Make datawizard create plots in the same way as the data object dialogs, through KstViewWindow
M +6 -6 datawizard.ui.h 1.57
--- kdeextragear-2/kst/kst/datawizard.ui.h #1.56:1.57
@@ -527,5 +527,5 @@ void DataWizard::finished()
// Generate the plots
if (_onePlot->isChecked()) {
- Kst2DPlotPtr p = w->view()->createPlot<Kst2DPlot>(KST::suggestPlotName());
+ Kst2DPlotPtr p = dynamic_cast<Kst2DPlot*>(w->view()->findChild(w->createPlot<Kst2DPlot>(KST::suggestPlotName())).data());
plots.append(p.data());
if (_radioButtonPlotDataPSD->isChecked()) {
@@ -535,5 +535,5 @@ void DataWizard::finished()
w = static_cast<KstViewWindow*>(app->findWindow(n));
}
- Kst2DPlotPtr p = w->view()->createPlot<Kst2DPlot>(KST::suggestPlotName());
+ Kst2DPlotPtr p = dynamic_cast<Kst2DPlot*>(w->view()->findChild(w->createPlot<Kst2DPlot>(KST::suggestPlotName())).data());
plots.append(p.data());
}
@@ -542,5 +542,5 @@ void DataWizard::finished()
if (_radioButtonPlotDataPSD->isChecked()) {
for (uint i = 0; i < l.count(); ++i) {
- p = w->view()->createPlot<Kst2DPlot>(KST::suggestPlotName());
+ p = dynamic_cast<Kst2DPlot*>(w->view()->findChild(w->createPlot<Kst2DPlot>(KST::suggestPlotName())).data());
plots.append(p.data());
}
@@ -552,5 +552,5 @@ void DataWizard::finished()
}
for (uint i = 0; i < l.count(); ++i) {
- p = w->view()->createPlot<Kst2DPlot>(KST::suggestPlotName());
+ p = dynamic_cast<Kst2DPlot*>(w->view()->findChild(w->createPlot<Kst2DPlot>(KST::suggestPlotName())).data());
plots.append(p.data());
}
@@ -569,5 +569,5 @@ void DataWizard::finished()
if (_radioButtonPlotDataPSD->isChecked()) {
for (int i = 0; i < _plotNumber->value(); ++i) {
- p = w->view()->createPlot<Kst2DPlot>(KST::suggestPlotName());
+ p = dynamic_cast<Kst2DPlot*>(w->view()->findChild(w->createPlot<Kst2DPlot>(KST::suggestPlotName())).data());
plots.append(p.data());
}
@@ -578,5 +578,5 @@ void DataWizard::finished()
}
for (int i = 0; i < _plotNumber->value(); ++i) {
- p = w->view()->createPlot<Kst2DPlot>(KST::suggestPlotName());
+ p = dynamic_cast<Kst2DPlot*>(w->view()->findChild(w->createPlot<Kst2DPlot>(KST::suggestPlotName())).data());
plots.append(p.data());
}
More information about the Kst
mailing list