+bool SMESHGUI_GenericHypothesisCreator::checkParams( QString& msg ) const
+{
+ bool ok = true;
+ ListOfWidgets::const_iterator anIt = widgets().begin(), aLast = widgets().end();
+ for( ; anIt!=aLast; anIt++ )
+ {
+ if( (*anIt)->inherits( "SalomeApp_IntSpinBox" ) )
+ {
+ SalomeApp_IntSpinBox* sb = ( SalomeApp_IntSpinBox* )( *anIt );
+ ok = sb->isValid( msg, true ) && ok;
+ }
+ else if( (*anIt)->inherits( "SalomeApp_DoubleSpinBox" ) )
+ {
+ SalomeApp_DoubleSpinBox* sb = ( SalomeApp_DoubleSpinBox* )( *anIt );
+ ok = sb->isValid( msg, true ) && ok;
+ }
+ }
+ return ok;
+}
+
+void SMESHGUI_GenericHypothesisCreator::onReject()
+{
+}
+
+QString SMESHGUI_GenericHypothesisCreator::helpPage() const
+{
+ QString aHypType = hypType();
+ QString aHelpFileName;
+ if ( aHypType == "LocalLength" )
+ aHelpFileName = "a1d_meshing_hypo_page.html#average_length_anchor";
+ if ( aHypType == "MaxLength" )
+ aHelpFileName = "a1d_meshing_hypo_page.html#max_length_anchor";
+ else if ( aHypType == "Arithmetic1D")
+ aHelpFileName = "a1d_meshing_hypo_page.html#arithmetic_1d_anchor";
+ else if ( aHypType == "MaxElementArea")
+ aHelpFileName = "a2d_meshing_hypo_page.html#max_element_area_anchor";
+ else if ( aHypType == "MaxElementVolume")
+ aHelpFileName = "max_element_volume_hypo_page.html";
+ else if ( aHypType == "StartEndLength")
+ aHelpFileName = "a1d_meshing_hypo_page.html#start_and_end_length_anchor";
+ else if ( aHypType == "Deflection1D")
+ aHelpFileName = "a1d_meshing_hypo_page.html#deflection_1d_anchor";
+ else if ( aHypType == "AutomaticLength")
+ aHelpFileName = "a1d_meshing_hypo_page.html#automatic_length_anchor";
+ else if ( aHypType == "NumberOfSegments")
+ aHelpFileName = "a1d_meshing_hypo_page.html#number_of_segments_anchor";
+ else if ( aHypType == "ProjectionSource1D")
+ aHelpFileName = "projection_algos_page.html";
+ else if ( aHypType == "ProjectionSource2D")
+ aHelpFileName = "projection_algos_page.html";
+ else if ( aHypType == "ProjectionSource3D")
+ aHelpFileName = "projection_algos_page.html";
+ else if ( aHypType == "NumberOfLayers")
+ aHelpFileName = "radial_prism_algo_page.html";
+ else if ( aHypType == "LayerDistribution")
+ aHelpFileName = "radial_prism_algo_page.html";
+ else if ( aHypType == "SegmentLengthAroundVertex")
+ aHelpFileName = "segments_around_vertex_algo.html";
+ else
+ aHelpFileName = "";
+ return aHelpFileName;
+}
+