From: rnc Date: Thu, 19 Jul 2012 15:13:50 +0000 (+0000) Subject: EDF 2281 : Notebook parameters X-Git-Tag: V6_6_0a1~77 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d518ad531941f573d16de6d29e519d26fbbd9d53;p=modules%2Fgeom.git EDF 2281 : Notebook parameters --- 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()); }