// IMP 0020626
double aDC = aResMgr->doubleValue("Geometry", "deflection_coeff", 0.001);
+ aDC = std::max( aDC, DEFLECTION_MIN ); // to avoid to small values of the coefficient
AISShape->SetOwnDeviationCoefficient(aDC);
}
}
setPreferenceProperty( step, "precision", 3 );
// Set property for deflection value for spinboxes
- setPreferenceProperty( defl, "min", 1.0e-07 );
+ setPreferenceProperty( defl, "min", DEFLECTION_MIN );
setPreferenceProperty( defl, "max", 1.0 );
setPreferenceProperty( defl, "step", 1.0e-04 );
- setPreferenceProperty( defl, "precision", 10 );
+ setPreferenceProperty( defl, "precision", 6 );
// Set property vertex marker type
QList<QVariant> aMarkerTypeIndicesList;
#include "SALOMEconfig.h"
#include CORBA_CLIENT_HEADER(SALOMEDS)
+// minimum allowed value for deflection coefficient
+#define DEFLECTION_MIN 1e-06
+
typedef QMap<QString, GEOMGUI*> GUIMap;
class QDialog;
#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);
#include <QDialog>
-class SalomeApp_DoubleSpinBox;
+class QtxDoubleSpinBox;
//=================================================================================
// class : GEOMToolsGUI_DeflectionDlg
void keyPressEvent( QKeyEvent* );
private:
- SalomeApp_DoubleSpinBox* SpinBox;
+ QtxDoubleSpinBox* SpinBox;
QString myHelpFileName;
};