Salome HOME
0021543: EDF 1978 SMESH: Viscous layer for 2D meshes
[modules/smesh.git] / src / StdMeshersGUI / StdMeshersGUI_SubShapeSelectorWdg.cxx
index 80259747bf3876b0b240a01bc1beb36308892124..637163f66e0b37f0e00db5c66144bc68d06f10bf 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -249,7 +249,7 @@ void StdMeshersGUI_SubShapeSelectorWdg::SelectionIntoArgument()
     for ( ; anIt.More(); anIt.Next()) { // Loop on selected objects
       Handle(SALOME_InteractiveObject) IO = anIt.Value();
       
-      GEOM::GEOM_Object_var aGeomObj = GetGeomObjectByEntry( IO->getEntry() );  
+      GEOM::GEOM_Object_var aGeomObj = GetGeomObjectByEntry( IO->getEntry() );
       if ( !CORBA::is_nil( aGeomObj ) ) { // Selected Object From Study
         GEOM::GEOM_Object_ptr aGeomFatherObj = aGeomObj->GetMainShape();
         QString aFatherEntry = "";
@@ -303,7 +303,9 @@ void StdMeshersGUI_SubShapeSelectorWdg::SelectionIntoArgument()
     }
   }
   // update add button
-  myAddButton->setEnabled( ( myListWidget->count() < myMaxSize || myMaxSize == -1 ) && mySelectedIDs.size() > 0 && ( mySelectedIDs.size() <= myMaxSize || myMaxSize == -1 ) );
+  myAddButton->setEnabled( ( myListWidget->count() < myMaxSize || myMaxSize == -1 ) &&
+                           mySelectedIDs.size() > 0 &&
+                           ( mySelectedIDs.size() <= myMaxSize || myMaxSize == -1 ) );
 
   //Connect Selected Ids in viewer and dialog's Ids list
   bool signalsBlocked = myListWidget->blockSignals( true );
@@ -556,7 +558,7 @@ const char* StdMeshersGUI_SubShapeSelectorWdg::GetMainShapeEntry()
 
 //=================================================================================
 // function : GetCorrectedListOfIds
-// purpose  : Called to convert the list of IDs from subshape IDs to main shape IDs
+// purpose  : Called to convert the list of IDs from sub-shape IDs to main shape IDs
 //=================================================================================
 QList<int> StdMeshersGUI_SubShapeSelectorWdg::GetCorrectedListOfIDs( bool fromSubshapeToMainshape )
 {
@@ -571,7 +573,7 @@ QList<int> StdMeshersGUI_SubShapeSelectorWdg::GetCorrectedListOfIDs( bool fromSu
   TopExp::MapShapes(myGeomShape, aGeomMap);
   TopExp::MapShapes(myMainShape, aMainMap);
 
-  if ( fromSubshapeToMainshape ) { // convert indexes from subshape to mainshape
+  if ( fromSubshapeToMainshape ) { // convert indexes from sub-shape to mainshape
     int size = myListOfIDs.size();
     for (int i = 0; i < size; i++) {
       TopoDS_Shape aSubShape = aGeomMap.FindKey( myListOfIDs.at(i) );
@@ -579,7 +581,7 @@ QList<int> StdMeshersGUI_SubShapeSelectorWdg::GetCorrectedListOfIDs( bool fromSu
       aList.append( index );
     }
     myIsNotCorrected = false;
-  } else { // convert indexes from main shape to subshape
+  } else { // convert indexes from main shape to sub-shape
     int size = mySelectedIDs.size();
     for (int i = 0; i < size; i++) {
       TopoDS_Shape aSubShape = aMainMap.FindKey( mySelectedIDs.at(i) );