enable NoteBook variables for "MaxSize"

This commit is contained in:
eap 2009-03-11 14:52:48 +00:00
parent 015abb3cd3
commit 666e100eeb

View File

@ -423,6 +423,7 @@ QString StdMeshersGUI_StdHypothesisCreator::storeParams() const
StdMeshers::StdMeshers_MaxLength::_narrow( hypothesis() ); StdMeshers::StdMeshers_MaxLength::_narrow( hypothesis() );
h->SetLength( params[0].myValue.toDouble() ); h->SetLength( params[0].myValue.toDouble() );
h->SetParameters(SMESHGUI::JoinObjectParameters(aVariablesList));
h->SetUsePreestimatedLength( widget< QCheckBox >( 1 )->isChecked() ); h->SetUsePreestimatedLength( widget< QCheckBox >( 1 )->isChecked() );
if ( !h->HavePreestimatedLength() && !h->_is_equivalent( initParamsHypothesis() )) { if ( !h->HavePreestimatedLength() && !h->_is_equivalent( initParamsHypothesis() )) {
StdMeshers::StdMeshers_MaxLength_var hInit = StdMeshers::StdMeshers_MaxLength_var hInit =
@ -610,6 +611,7 @@ bool StdMeshersGUI_StdHypothesisCreator::stdParams( ListOfStdParams& p ) const
} }
item.myName = tr("SMESH_LOCAL_LENGTH_PARAM"); item.myName = tr("SMESH_LOCAL_LENGTH_PARAM");
if(!initVariableName(aParameters,item,0))
item.myValue = h->GetLength(); item.myValue = h->GetLength();
p.append( item ); p.append( item );
customWidgets()->append(0); customWidgets()->append(0);