mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-15 21:21:21 +05:00
0021375: EDF 1671 SMESH: Dump study of current state
add "historical_python_dump" preference
This commit is contained in:
parent
785e19b0ca
commit
693476070c
@ -1713,6 +1713,11 @@ LightApp_Module( "SMESH" )
|
|||||||
myComponentSMESH->SetBoundaryBoxSegmentation( nbSeg );
|
myComponentSMESH->SetBoundaryBoxSegmentation( nbSeg );
|
||||||
nbSeg = aResourceMgr->integerValue( "SMESH", "nb_segments_per_edge", 15 );
|
nbSeg = aResourceMgr->integerValue( "SMESH", "nb_segments_per_edge", 15 );
|
||||||
myComponentSMESH->SetDefaultNbSegments( nbSeg );
|
myComponentSMESH->SetDefaultNbSegments( nbSeg );
|
||||||
|
if ( aResourceMgr->hasValue( "SMESH", "historical_python_dump" ))
|
||||||
|
{
|
||||||
|
QString val = aResourceMgr->stringValue( "SMESH", "historical_python_dump" );
|
||||||
|
myComponentSMESH->SetOption( "historical_python_dump", val.toLatin1().constData() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
myActiveDialogBox = 0;
|
myActiveDialogBox = 0;
|
||||||
@ -4607,6 +4612,9 @@ void SMESHGUI::createPreferences()
|
|||||||
setPreferenceProperty( chunkSize, "max", 1000 );
|
setPreferenceProperty( chunkSize, "max", 1000 );
|
||||||
setPreferenceProperty( chunkSize, "step", 50 );
|
setPreferenceProperty( chunkSize, "step", 50 );
|
||||||
|
|
||||||
|
int pyDumpGroup = addPreference( tr( "PREF_PYTHON_DUMP" ), genTab );
|
||||||
|
addPreference( tr( "PREF_HISTOTICAL_PYTHON_DUMP" ), pyDumpGroup, LightApp_Preferences::Bool, "SMESH", "historical_python_dump" );
|
||||||
|
|
||||||
// Mesh tab ------------------------------------------------------------------------
|
// Mesh tab ------------------------------------------------------------------------
|
||||||
int meshTab = addPreference( tr( "PREF_TAB_MESH" ) );
|
int meshTab = addPreference( tr( "PREF_TAB_MESH" ) );
|
||||||
int nodeGroup = addPreference( tr( "PREF_GROUP_NODES" ), meshTab );
|
int nodeGroup = addPreference( tr( "PREF_GROUP_NODES" ), meshTab );
|
||||||
@ -4860,6 +4868,10 @@ void SMESHGUI::preferencesChanged( const QString& sect, const QString& name )
|
|||||||
int nbSeg = aResourceMgr->integerValue( "SMESH", "nb_segments_per_edge", 15 );
|
int nbSeg = aResourceMgr->integerValue( "SMESH", "nb_segments_per_edge", 15 );
|
||||||
myComponentSMESH->SetDefaultNbSegments( nbSeg );
|
myComponentSMESH->SetDefaultNbSegments( nbSeg );
|
||||||
}
|
}
|
||||||
|
else if ( name == "historical_python_dump" ) {
|
||||||
|
QString val = aResourceMgr->stringValue( "SMESH", "historical_python_dump" );
|
||||||
|
myComponentSMESH->SetOption( "historical_python_dump", val.toLatin1().constData() );
|
||||||
|
}
|
||||||
|
|
||||||
if(aWarning.size() != 0){
|
if(aWarning.size() != 0){
|
||||||
aWarning += "The default values are applied instead.";
|
aWarning += "The default values are applied instead.";
|
||||||
|
@ -3896,6 +3896,14 @@ Please, create VTK viewer and try again</translation>
|
|||||||
<source>PREF_SHRINK_COEFF</source>
|
<source>PREF_SHRINK_COEFF</source>
|
||||||
<translation>Shrink coef.</translation>
|
<translation>Shrink coef.</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>PREF_PYTHON_DUMP</source>
|
||||||
|
<translation>Python Dump</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>PREF_HISTOTICAL_PYTHON_DUMP</source>
|
||||||
|
<translation>Historical python dump</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>PREF_TAB_GENERAL</source>
|
<source>PREF_TAB_GENERAL</source>
|
||||||
<translation>General</translation>
|
<translation>General</translation>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user