{
}
-bool StdMeshersGUI_NbSegmentsCreator::checkParams( QString& msg ) const
+bool StdMeshersGUI_NbSegmentsCreator::checkParams( QString& msg, QStringList& absentParams ) const
{
- if( !SMESHGUI_GenericHypothesisCreator::checkParams( msg ) )
+ if( !SMESHGUI_GenericHypothesisCreator::checkParams( msg, absentParams ) )
return false;
NbSegmentsHypothesisData data_old, data_new;
readParamsFromHypo( data_old );
readParamsFromWidgets( data_new );
bool res = storeParamsToHypo( data_new );
storeParamsToHypo( data_old );
- res = myNbSeg->isValid( msg, true ) && res;
- res = myScale->isValid( msg, true ) && res;
+ res = myNbSeg->isValid( msg, absentParams, true ) && res;
+ res = myScale->isValid( msg, absentParams, true ) && res;
return res;
}
h_data.myNbSeg = (int) h->GetNumberOfSegments();
- SMESH::ListOfParameters_var aParameters = h->GetLastParameters();
+ SALOME::StringArray* aParameters = h->GetParameters();
- h_data.myNbSegVarName = (aParameters->length() > 0) ? QString(aParameters[0].in()) : QString("");
+ h_data.myNbSegVarName = (aParameters->length() > 0) ? QString(aParameters->operator[](0)) : QString("");
int distr = (int) h->GetDistrType();
h_data.myDistrType = distr;
h_data.myScale = distr==1 ? h->GetScaleFactor() : 1.0;
if(distr==1){
- h_data.myScaleVarName = (aParameters->length() > 1) ? QString(aParameters[1].in()) : QString("");
+ h_data.myScaleVarName = (aParameters->length() > 1) ? QString(aParameters->operator[](1)) : QString("");
}
else
h_data.myScaleVarName = QString("");
//the function will be checked with old conversion mode, so that it may occurs
//unexpected errors for user
- h->SetParameters(SMESHGUI::JoinObjectParameters(aVariablesList));
+ /* ouv: temporarily disabled
+ h->SetParameters(aVariablesList.join(":").toLatin1().constData());
+ */
}
catch(const SALOME::SALOME_Exception& ex)
{