myComponentSMESH->SetBoundaryBoxSegmentation( nbSeg );
nbSeg = aResourceMgr->integerValue( "SMESH", "nb_segments_per_edge", 15 );
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;
setPreferenceProperty( chunkSize, "max", 1000 );
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 ------------------------------------------------------------------------
int meshTab = addPreference( tr( "PREF_TAB_MESH" ) );
int nodeGroup = addPreference( tr( "PREF_GROUP_NODES" ), meshTab );
int nbSeg = aResourceMgr->integerValue( "SMESH", "nb_segments_per_edge", 15 );
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){
aWarning += "The default values are applied instead.";
<source>PREF_SHRINK_COEFF</source>
<translation>Shrink coef.</translation>
</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>
<source>PREF_TAB_GENERAL</source>
<translation>General</translation>