0021338: EDF 1926 SMESH: New controls and filters

Add "Double nodes tolerance" preference
This commit is contained in:
eap 2012-01-27 10:41:48 +00:00
parent c6edb52c8e
commit f0f28bd92d
2 changed files with 9 additions and 0 deletions

View File

@ -4486,6 +4486,11 @@ void SMESHGUI::createPreferences()
int prec = addPreference( tr( "PREF_PRECISION_VALUE" ), qaGroup, LightApp_Preferences::IntSpin, "SMESH", "controls_precision" );
setPreferenceProperty( prec, "min", 0 );
setPreferenceProperty( prec, "max", 16 );
int doubleNodesTol = addPreference( tr( "PREF_EQUAL_NODES_TOL" ), qaGroup, LightApp_Preferences::DblSpin, "SMESH", "equal_nodes_tolerance" );
setPreferenceProperty( doubleNodesTol, "precision", 10 );
setPreferenceProperty( doubleNodesTol, "min", 0.0000000001 );
setPreferenceProperty( doubleNodesTol, "max", 1000000.0 );
setPreferenceProperty( doubleNodesTol, "step", 0.0000001 );
int dispgroup = addPreference( tr( "PREF_DISPLAY_MODE" ), genTab );
setPreferenceProperty( dispgroup, "columns", 2 );

View File

@ -3884,6 +3884,10 @@ Please, create VTK viewer and try again</translation>
<source>PREF_PRECISION_VALUE</source>
<translation>Number of digits after point</translation>
</message>
<message>
<source>PREF_EQUAL_NODES_TOL</source>
<translation>Double nodes tolerance</translation>
</message>
<message>
<source>PREF_RENUMBER</source>
<translation>Automatic renumbering</translation>