From d518ad531941f573d16de6d29e519d26fbbd9d53 Mon Sep 17 00:00:00 2001 From: rnc Date: Thu, 19 Jul 2012 15:13:50 +0000 Subject: [PATCH] EDF 2281 : Notebook parameters --- src/AdvancedGUI/AdvancedGUI_DividedCylinderDlg.cxx | 7 +++---- src/AdvancedGUI/AdvancedGUI_DividedDiskDlg.cxx | 4 +--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/AdvancedGUI/AdvancedGUI_DividedCylinderDlg.cxx b/src/AdvancedGUI/AdvancedGUI_DividedCylinderDlg.cxx index b48e350e9..7abd0bef9 100644 --- a/src/AdvancedGUI/AdvancedGUI_DividedCylinderDlg.cxx +++ b/src/AdvancedGUI/AdvancedGUI_DividedCylinderDlg.cxx @@ -218,10 +218,9 @@ bool AdvancedGUI_DividedCylinderDlg::execute (ObjectList& objects) if (res && !IsPreview()) { QStringList aParameters; - //@@ put stringified input parameters to the string list here to store in the data model for notebook @@// -// aParameters << @@ stringified parameter value @@; // R parameter -// aParameters << @@ stringified parameter value @@; // H parameter -// if ( aParameters.count() > 0 ) anObj->SetParameters(aParameters.join(":").toLatin1().constData()); // TODO set parameters here + aParameters << GroupParams->SpinBox_DX->text(); // R parameter + aParameters << GroupParams->SpinBox_DY->text(); // H parameter + if ( aParameters.count() > 0 ) anObj->SetParameters(aParameters.join(":").toLatin1().constData()); } if (res) diff --git a/src/AdvancedGUI/AdvancedGUI_DividedDiskDlg.cxx b/src/AdvancedGUI/AdvancedGUI_DividedDiskDlg.cxx index 6e34b8e4a..8b4fed3b7 100644 --- a/src/AdvancedGUI/AdvancedGUI_DividedDiskDlg.cxx +++ b/src/AdvancedGUI/AdvancedGUI_DividedDiskDlg.cxx @@ -258,9 +258,7 @@ bool AdvancedGUI_DividedDiskDlg::execute (ObjectList& objects) if (res && !IsPreview()) { QStringList aParameters; - //@@ put stringified input parameters to the string list here to store in the data model for notebook @@// - //aParameters << @@ stringified parameter value @@; // R parameter - //aParameters << @@ stringified parameter value @@; // Ratio parameter + aParameters << GroupParams->SpinBox_DX->text(); if ( aParameters.count() > 0 ) anObj->SetParameters(aParameters.join(":").toLatin1().constData()); } -- 2.39.2