X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_MeshInfo.cxx;h=fc5ac8b734201afe9f1f53bd999c602df9598138;hp=bcbd1b86876eab3b62d283980cc41494ef1aa0ed;hb=b8917880e4fa9abc35a42386a76dd222c6ff7ad6;hpb=9a3f7d877e01dc5a14871a77c53dfef15d1e12a4 diff --git a/src/SMESHGUI/SMESHGUI_MeshInfo.cxx b/src/SMESHGUI/SMESHGUI_MeshInfo.cxx index bcbd1b868..fc5ac8b73 100644 --- a/src/SMESHGUI/SMESHGUI_MeshInfo.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshInfo.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -81,7 +81,7 @@ public: /*! \brief Constructor. \param parent Parent widget. - \param name Field name. Defauls to null string. + \param name Field name. Defaults to null string. */ Field::Field( QWidget* parent, const QString& name ): QLabel( parent ) { @@ -382,7 +382,7 @@ namespace \brief Format connectivity data to string representation. \param connectivity Connectivity map. \param type Element type or face index if negative - \return Stringifed representation of the connectivity. + \return Stringified representation of the connectivity. */ QString formatConnectivity( SMESH::Connectivity connectivity, int type ) { @@ -974,6 +974,8 @@ void SMESHGUI_BaseInfo::clear() widget( i, j )->setProperty( "value", 0 ); } } + // hide 'Load' button + widget( iEnd, iSingle )->setVisible( false ); } /*! @@ -1034,7 +1036,7 @@ void SMESHGUI_BaseInfo::setFieldsVisible( int startRow, int lastRow, bool on ) } /*! - \brief Write information from panel to ouput stream. + \brief Write information from panel to output stream. \param out Text stream output. */ void SMESHGUI_BaseInfo::saveInfo( QTextStream& out ) @@ -1997,7 +1999,7 @@ void SMESHGUI_ElemInfo::updateControls() } /*! - \brief Write information from panel to ouput stream. + \brief Write information from panel to output stream. \param out Text stream output. */ void SMESHGUI_ElemInfo::saveInfo( QTextStream &out ) @@ -2336,6 +2338,7 @@ void InfoComputor::compute() if ( myProxy ) { SUIT_OverrideCursor wc; + myProxy.load(); switch ( myOperation ) { case GrpSize: @@ -2861,7 +2864,7 @@ void SMESHGUI_AddInfo::showNextSubMeshes() } /*! - \brief Write information from panel to ouput stream. + \brief Write information from panel to output stream. \param out Text stream output. */ void SMESHGUI_AddInfo::saveInfo( QTextStream &out ) @@ -2923,7 +2926,7 @@ public: }; /*! - \brief Contructor. + \brief Constructor. \param parent Parent widget. \internal */ @@ -3908,9 +3911,15 @@ void SMESHGUI_CtrlInfo::clearInternal() void SMESHGUI_CtrlInfo::setTolerance( double theTolerance ) { - //SMESH::long_array_var anElems = getElementsByType( SMESH::NODE ); - myButtons[1]->setEnabled( true ); - myWidgets[2]->setText(""); + myButtons[2]->setEnabled( true ); + myWidgets[3]->setText(""); + for ( int i = 0; i < myPredicates.count(); ++i ) + if ( myPredicates[i]->GetFunctorType() == SMESH::FT_EqualNodes ) + { + SMESH::EqualNodes_var functor = SMESH::EqualNodes::_narrow( myPredicates[i] ); + if ( !functor->_is_nil() ) + functor->SetTolerance( theTolerance ); + } } #ifndef DISABLE_PLOT2DVIEWER