\r
#include "SMESHGUI_CreatePatternDlg.h"\r
\r
-#include "QAD_Desktop.h"\r
-#include "QAD_FileDlg.h"\r
-\r
-#include "SMESHGUI_PatternWidget.h"\r
-#include "SMESHGUI_SpinBox.h"\r
#include "SMESHGUI.h"\r
-#include "SALOME_Selection.h"\r
-#include "SALOME_ListIteratorOfListOfFilter.hxx"\r
-#include "SALOMEGUI_QtCatchCorbaException.hxx"\r
-#include "SMESH_NumberFilter.hxx"\r
#include "SMESHGUI_Utils.h"\r
#include "SMESHGUI_VTKUtils.h"\r
#include "SMESHGUI_PatternUtils.h"\r
+#include "SMESHGUI_PatternWidget.h"\r
+\r
+#include "SMESH_NumberFilter.hxx"\r
+\r
+#include "SALOME_Selection.h"\r
+#include "SALOME_ListIteratorOfListOfFilter.hxx"\r
+#include "SALOMEGUI_QtCatchCorbaException.hxx"\r
+\r
+#include "QAD_Desktop.h"\r
+#include "QAD_FileDlg.h"\r
\r
#include <TColStd_MapOfInteger.hxx>\r
\r
class QCloseEvent;\r
class QFrame;\r
class QLineEdit;\r
-class SMESHGUI_SpinBox;\r
class QPushButton;\r
class SALOME_Selection;\r
class QRadioButton;\r
/***************************************************************/
// Initialisations
- XSpin->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- YSpin->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- ZSpin->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- AngleSpin->RangeStepAndValidator( -999999.999, +999999.999, 5.0, 3 );
-
+ XSpin->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
+ YSpin->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
+ ZSpin->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
+ AngleSpin->RangeStepAndValidator( COORD_MIN, COORD_MAX, 5.0, 3 );
+ //?? AngleSpin->RangeStepAndValidator( -360., +360., 5.0, 3 );
+
mySelection = Sel;
mySMESHGUI = SMESHGUI::GetSMESHGUI() ;
mySMESHGUI->SetActiveDialogBox( this ) ;
SMESHGUI_ExtrusionDlgLayout->addWidget( GroupArguments, 1, 0 );
/* Initialisations */
- SpinBox_Dx->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox_Dy->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox_Dz->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
+ SpinBox_Dx->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox_Dy->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox_Dz->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
QIntValidator* anIntValidator = new QIntValidator(SpinBox_NbSteps);
SpinBox_NbSteps->setValidator(anIntValidator);
#include "SMESHGUI_VTKUtils.h"
#include "SMESHGUI_IdValidator.h"
#include "SMESHGUI_SpinBox.h"
+
#include "SMESH_Actor.h"
#include "SMDS_Mesh.hxx"
SMESHGUI_MergeNodesDlgLayout->addWidget( GroupEdit, 3, 0 );
/* Initialisations */
- SpinBoxTolerance->RangeStepAndValidator( 0.0, 999999.999, 0.1, 3 );
+ SpinBoxTolerance->RangeStepAndValidator( 0.0, COORD_MAX, 0.1, 3 );
SpinBoxTolerance->SetValue(1e-05);
RadioButton1->setChecked( TRUE );
new QLabel( tr( "SMESH_Z" ), aCoordGrp );
myZ = new SMESHGUI_SpinBox( aCoordGrp );
- myX->RangeStepAndValidator( -999999.999, +999999.999, 25.0, 3 );
- myY->RangeStepAndValidator( -999999.999, +999999.999, 25.0, 3 );
- myZ->RangeStepAndValidator( -999999.999, +999999.999, 25.0, 3 );
+ myX->RangeStepAndValidator( COORD_MIN, COORD_MAX, 25.0, 3 );
+ myY->RangeStepAndValidator( COORD_MIN, COORD_MAX, 25.0, 3 );
+ myZ->RangeStepAndValidator( COORD_MIN, COORD_MAX, 25.0, 3 );
QVBoxLayout* aLay = new QVBoxLayout( aFrame );
aLay->addWidget( aPixGrp );
class QListBox;
class QFrame;
class QLineEdit;
-class SMESHGUI_SpinBox;
class QPushButton;
class SALOME_Selection;
class SMESH_Actor;
step = 25.0 ;
/* min, max, step and decimals for spin boxes */
- SpinBox_X->RangeStepAndValidator( -999.999, +999.999, step, 3 ) ;
- SpinBox_Y->RangeStepAndValidator( -999.999, +999.999, step, 3 ) ;
- SpinBox_Z->RangeStepAndValidator( -999.999, +999.999, step, 3 ) ;
+ SpinBox_X->RangeStepAndValidator( COORD_MIN, COORD_MAX, step, 3 ) ;
+ SpinBox_Y->RangeStepAndValidator( COORD_MIN, COORD_MAX, step, 3 ) ;
+ SpinBox_Z->RangeStepAndValidator( COORD_MIN, COORD_MAX, step, 3 ) ;
SpinBox_X->SetValue( 0.0 ) ;
SpinBox_Y->SetValue( 0.0 ) ;
SpinBox_Z->SetValue( 0.0 ) ;
SMESHGUI_RevolutionDlgLayout->addWidget( GroupArguments, 1, 0 );
/* Initialisations */
- SpinBox_X->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox_Y->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox_Z->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox_DX->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox_DY->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox_DZ->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
+ SpinBox_X->RangeStepAndValidator ( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox_Y->RangeStepAndValidator ( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox_Z->RangeStepAndValidator ( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox_DX->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox_DY->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox_DZ->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
- SpinBox_Angle->RangeStepAndValidator( -999999.999, +999999.999, 5.0, 3 );
+ SpinBox_Angle->RangeStepAndValidator( COORD_MIN, COORD_MAX, 5.0, 3 );
+ //??SpinBox_Angle->RangeStepAndValidator( -360., +360., 5.0, 3 );
QIntValidator* anIntValidator = new QIntValidator(SpinBox_NbSteps);
SpinBox_NbSteps->setValidator(anIntValidator);
SpinBox_NbSteps->setRange( 1, 999999 );
- SpinBox_Tolerance->RangeStepAndValidator( 0.0, +999999.999, 0.1, 6 );
+ SpinBox_Tolerance->RangeStepAndValidator( 0.0, COORD_MAX, 0.1, 6 );
GroupArguments->show();
RadioButton1->setChecked( TRUE );
#include "SMESHGUI_VTKUtils.h"
#include "SMESHGUI_MeshUtils.h"
#include "SMESHGUI_IdValidator.h"
+
#include "SMESH_Actor.h"
#include "SMESH_TypeFilter.hxx"
#include "SMDS_Mesh.hxx"
SMESHGUI_RotationDlgLayout->addWidget( GroupArguments, 1, 0 );
/* Initialisations */
- SpinBox_X->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox_Y->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox_Z->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox_DX->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox_DY->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox_DZ->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
-
- SpinBox_Angle->RangeStepAndValidator( -999999.999, +999999.999, 5.0, 3 );
+ SpinBox_X->RangeStepAndValidator ( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox_Y->RangeStepAndValidator ( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox_Z->RangeStepAndValidator ( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox_DX->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox_DY->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox_DZ->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
+
+ SpinBox_Angle->RangeStepAndValidator( COORD_MIN, COORD_MAX, 5.0, 3 );
+ //??SpinBox_Angle->RangeStepAndValidator( -360., +360., 5.0, 3 );
GroupArguments->show();
myConstructorId = 0 ;
#include "SMESHGUI_VTKUtils.h"
#include "SMESHGUI_MeshUtils.h"
-#include "SMESHGUI_SpinBox.h"
-
-#include "utilities.h"
-#include "SALOME_Selection.h"
#include "SMESH_Actor.h"
#include "SMDS_Mesh.hxx"
+#include "SALOME_Selection.h"
+#include "utilities.h"
+
#include <qframe.h>
#include <qlayout.h>
#include <qlineedit.h>
class QCloseEvent;
class QFrame;
class QLineEdit;
-class SMESHGUI_SpinBox;
class QPushButton;
class SALOME_Selection;
class SMESH_Actor;
QIntValidator* anIntValidator = new QIntValidator(SpinBox_IterationLimit);
SpinBox_IterationLimit->setValidator(anIntValidator);
SpinBox_IterationLimit->setRange( 1, 999999 );
- SpinBox_AspectRatio->RangeStepAndValidator( 0.0, +999999.999, 0.1, 3 );
+ SpinBox_AspectRatio->RangeStepAndValidator( 0.0, COORD_MAX, 0.1, 3 );
GroupArguments->show();
myConstructorId = 0 ;
SMESHGUI_SpinBox::SMESHGUI_SpinBox( QWidget* parent, const char* name )
: QAD_SpinBoxDbl( parent, name)
{
+ setPrecision(16);
}
#include "QAD_SpinBoxDbl.h"
+#define COORD_MIN -1e+15
+#define COORD_MAX +1e+15
+
//=================================================================================
// class : SMESHGUI_SpinBox
// purpose : Derivated from QAD_SpinBoxDbl class
#include "SMESHGUI_MeshUtils.h"
#include "SMESHGUI_IdValidator.h"
#include "SMESHGUI_SpinBox.h"
+
#include "SMESH_Actor.h"
#include "SMESH_TypeFilter.hxx"
#include "SMDS_Mesh.hxx"
SMESHGUI_SymmetryDlgLayout->addWidget( GroupArguments, 1, 0 );
/* Initialisations */
- SpinBox_X->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox_Y->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox_Z->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox_DX->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox_DY->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox_DZ->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
+ SpinBox_X->RangeStepAndValidator ( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox_Y->RangeStepAndValidator ( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox_Z->RangeStepAndValidator ( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox_DX->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox_DY->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox_DZ->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
GroupArguments->show();
RadioButton1->setChecked( TRUE );
#include "SMESHGUI_MeshUtils.h"
#include "SMESHGUI_IdValidator.h"
#include "SMESHGUI_SpinBox.h"
+
#include "SMESH_Actor.h"
#include "SMESH_TypeFilter.hxx"
#include "SMDS_Mesh.hxx"
SMESHGUI_TranslationDlgLayout->addWidget( GroupArguments, 1, 0 );
/* Initialisations */
- SpinBox1_1->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox1_2->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox1_3->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox2_1->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox2_2->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
- SpinBox2_3->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
+ SpinBox1_1->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox1_2->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox1_3->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox2_1->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox2_2->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
+ SpinBox2_3->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
GroupArguments->show();
RadioButton1->setChecked( TRUE );