// SMESH SMESHGUI : GUI for SMESH component
//
// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// SMESH SMESHGUI : GUI for SMESH component
//
// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
// class : SMESHGUI_intParameter
// purpose :
//=================================================================================
// class : SMESHGUI_intParameter
// purpose :
//=================================================================================
-SMESHGUI_intParameter::SMESHGUI_intParameter(const int theInitValue,
- const QString& theLabel,
- const int theBottom,
- const int theTop)
+SMESHGUI_intParameter::SMESHGUI_intParameter (const int theInitValue,
+ const QString& theLabel,
+ const int theBottom,
+ const int theTop)
- QSpinBox * aSpin = dynamic_cast< QSpinBox *>( theQWidget );
- if ( aSpin ) {
- aSpin->setMinValue( _bottom );
- aSpin->setMaxValue( _top );
- aSpin->setValue( _initValue );
+ QSpinBox * aSpin = dynamic_cast< QSpinBox *>(theQWidget);
+ if (aSpin) {
+ aSpin->setMinValue(_bottom);
+ aSpin->setMaxValue(_top);
+ aSpin->setValue(_initValue);
//=================================================================================
// class : SMESHGUI_doubleParameter
// purpose :
//=================================================================================
//=================================================================================
// class : SMESHGUI_doubleParameter
// purpose :
//=================================================================================
-SMESHGUI_doubleParameter::SMESHGUI_doubleParameter(const double theInitValue,
- const QString& theLabel,
- const double theBottom,
- const double theTop,
- const double theStep,
- const int theDecimals)
- :SMESHGUI_aParameter( theLabel ),
- _top( theTop ), _bottom( theBottom ), _step( theStep ),
- _initValue( theInitValue ), _decimals( theDecimals )
+SMESHGUI_doubleParameter::SMESHGUI_doubleParameter (const double theInitValue,
+ const QString& theLabel,
+ const double theBottom,
+ const double theTop,
+ const double theStep,
+ const int theDecimals)
+ :SMESHGUI_aParameter(theLabel),
+ _top(theTop), _bottom(theBottom), _step(theStep),
+ _initValue(theInitValue), _decimals(theDecimals)
-void SMESHGUI_doubleParameter::InitializeWidget( QWidget* theQWidget) const
-{
- QAD_SpinBoxDbl * aSpin = dynamic_cast< QAD_SpinBoxDbl *>( theQWidget );
- if ( aSpin ) {
- aSpin->setPrecision( _decimals );
- aSpin->setDblPrecision( _bottom );
- aSpin->setRange( _bottom, _top );
- aSpin->setValue( _initValue );
- aSpin->setLineStep( _step );
+void SMESHGUI_doubleParameter::InitializeWidget (QWidget* theQWidget) const
+{
+ QtxDblSpinBox* aSpin = dynamic_cast<QtxDblSpinBox*>(theQWidget);
+ if (aSpin) {
+ aSpin->setPrecision(_decimals);
+#ifdef NEW_GUI
+ aSpin->setDblPrecision(_bottom);
+#endif
+ aSpin->setRange(_bottom, _top);
+ aSpin->setValue(_initValue);
+ aSpin->setLineStep(_step);
// class : SMESHGUI_strParameter
// purpose :
//=================================================================================
// class : SMESHGUI_strParameter
// purpose :
//=================================================================================
-SMESHGUI_strParameter::SMESHGUI_strParameter(const QString& theInitValue,
- const QString& theLabel)
+SMESHGUI_strParameter::SMESHGUI_strParameter (const QString& theInitValue,
+ const QString& theLabel)