#include "GEOMToolsGUI_DeflectionDlg.h"
#include <GeometryGUI.h>
#include <LightApp_Application.h>
-#include <SalomeApp_DoubleSpinBox.h>
+#include <QtxDoubleSpinBox.h>
#include <SUIT_MessageBox.h>
#include <SUIT_ResourceMgr.h>
TextLabel1->setText(tr("GEOM_DEFLECTION"));
GroupC1Layout->addWidget(TextLabel1, 0, 0);
- //SpinBox = new SalomeApp_DoubleSpinBox (/*min*/1.0e-07, /*max*/1.0, /*step*/1.0e-04, GroupC1);
- SpinBox = new SalomeApp_DoubleSpinBox (GroupC1);
- SpinBox->setPrecision( 10 );
- SpinBox->setDecimals( 10 );
- SpinBox->setRange( 1.0e-07, 1.0 );
+ SpinBox = new QtxDoubleSpinBox (GroupC1);
+ SpinBox->setPrecision( 6 );
+ SpinBox->setDecimals( 6 );
+ SpinBox->setRange( DEFLECTION_MIN, 1.0 );
SpinBox->setSingleStep( 1.0e-04 );
//SpinBox->setMinimum(1.0e-07);
//SpinBox->setMaximum(1.0);
// no need to delete child widgets, Qt does it all for us
}
-double GEOMToolsGUI_DeflectionDlg::getDC() const
+double GEOMToolsGUI_DeflectionDlg::getTheDC() const
{
return SpinBox->text().toDouble();
}
-void GEOMToolsGUI_DeflectionDlg::setDC (const double v)
+void GEOMToolsGUI_DeflectionDlg::setTheDC (const double v)
{
SpinBox->setValue(v);
}