1 // GEOM RepairGUI : GUI for Geometry component
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 // File : RepairGUI_GlueDlg.cxx
25 // Author : Lucien PIGNOLONI
29 #include "OCCViewer_ViewModel.h"
31 #include "RepairGUI_GlueDlg.h"
32 #include "DlgRef_1Sel_Ext.h"
33 #include "GEOMImpl_Types.hxx"
35 #include "QtxDblSpinBox.h"
36 #include "SalomeApp_Application.h"
37 #include "LightApp_SelectionMgr.h"
38 #include "SalomeApp_Study.h"
39 #include "SalomeApp_Tools.h"
41 #include "SUIT_Session.h"
42 #include "SUIT_MessageBox.h"
43 #include "SUIT_OverrideCursor.h"
45 #include "SALOME_ListIteratorOfListIO.hxx"
47 #include <TCollection_AsciiString.hxx>
49 #include <qapplication.h>
51 #include <qcheckbox.h>
57 #define DEFAULT_TOLERANCE_VALUE 1e-07
59 //=================================================================================
60 // class : RepairGUI_GlueDlg()
61 // purpose : Constructs a RepairGUI_GlueDlg which is a child of 'parent', with the
62 // name 'name' and widget flags set to 'f'.
63 // The dialog will by default be modeless, unless you set 'modal' to
64 // TRUE to construct a modal dialog.
65 //=================================================================================
66 RepairGUI_GlueDlg::RepairGUI_GlueDlg(GeometryGUI* theGeometryGUI, QWidget* parent,
67 const char* name, bool modal, WFlags fl)
68 : GEOMBase_Skeleton(theGeometryGUI, parent, name, modal, WStyle_Customize |
69 WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu),
72 QPixmap image0 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_GLUE_FACES")));
73 QPixmap image2 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_GLUE_FACES2")));
74 QPixmap image1 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
76 setCaption(tr("GEOM_GLUE_TITLE"));
78 /***************************************************************/
79 GroupConstructors->setTitle(tr("GEOM_GLUE_TITLE"));
80 RadioButton1->setPixmap(image0);
81 RadioButton2->setPixmap(image2);
82 //RadioButton2->close(TRUE);
83 RadioButton3->close(TRUE);
85 GroupPoints = new DlgRef_1Sel_Ext(this, "GroupPoints");
86 GroupPoints->GroupBox1->setTitle(tr("GEOM_GLUE"));
87 GroupPoints->TextLabel1->setText(tr("GEOM_SELECTED_SHAPE"));
88 GroupPoints->PushButton1->setPixmap(image1);
89 GroupPoints->LineEdit1->setReadOnly( true );
91 int aWidth = GroupPoints->TextLabel1->sizeHint().width() +
92 GroupPoints->PushButton1->sizeHint().width() +
93 GroupPoints->getGroupBoxLayout()->spacing();
95 Layout1->addWidget(GroupPoints, 2, 0);
97 QHBox* aHBox = new QHBox( GroupPoints->GroupBox1 );
98 aHBox->setSpacing( 5 );
100 (new QLabel( tr( "GEOM_TOLERANCE" ), aHBox ))->setFixedWidth( aWidth );
101 myTolEdt = new QtxDblSpinBox( 0, 100, 1e-7, aHBox );
102 myTolEdt->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
103 myTolEdt->setPrecision( 10 );
104 myTolEdt->setValue( DEFAULT_TOLERANCE_VALUE );
105 GroupPoints->getGroupBoxLayout()->addWidget( aHBox, 3, 0 );
106 /***************************************************************/
108 GroupPoints2 = new DlgRef_1Sel_Ext(this, "GroupPoints2");
109 GroupPoints2->GroupBox1->setTitle(tr("GEOM_GLUE"));
110 GroupPoints2->TextLabel1->setText(tr("GEOM_SELECTED_SHAPE"));
111 GroupPoints2->PushButton1->setPixmap(image1);
112 GroupPoints2->LineEdit1->setReadOnly( true );
113 Layout1->addWidget(GroupPoints2, 2, 0);
115 QGrid* aGrid = new QGrid( 2, Qt::Horizontal, GroupPoints2->GroupBox1 );
116 aGrid->setSpacing( 5 );
117 (new QLabel( tr( "GEOM_TOLERANCE" ), aGrid ))->setFixedWidth( aWidth );;
118 myTolEdt2 = new QtxDblSpinBox( 0, 100, 1e-7, aGrid );
119 myTolEdt2->setPrecision( 10 );
120 myTolEdt2->setValue( DEFAULT_TOLERANCE_VALUE );
121 myTolEdt2->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
122 (new QLabel( tr( "GLUE_FACES" ), aGrid ))->setFixedWidth( aWidth );;
123 myDetectBtn = new QPushButton( tr( "GEOM_DETECT" ), aGrid );
124 myDetectBtn->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
125 mySubShapesChk = new QCheckBox( tr( "SELECT_FACES" ), aGrid );
126 GroupPoints2->getGroupBoxLayout()->addWidget( aGrid, 3, 0 );
127 /***************************************************************/
129 setHelpFileName("glue_faces_operation_page.html");
131 // Disable second way of gluing if OCC viewer is not active one
132 if (myGeomGUI->getApp()->desktop()->activeWindow()->getViewManager()->getType()
133 != OCCViewer_Viewer::Type())
134 RadioButton2->setEnabled(false);
140 //=================================================================================
141 // function : ~RepairGUI_GlueDlg()
142 // purpose : Destroys the object and frees any allocated resources
143 //=================================================================================
144 RepairGUI_GlueDlg::~RepairGUI_GlueDlg()
149 //=================================================================================
152 //=================================================================================
153 void RepairGUI_GlueDlg::Init()
156 myEditCurrentArgument = GroupPoints->LineEdit1;
158 myObject = GEOM::GEOM_Object::_nil();
160 //myGeomGUI->SetState( 0 );
161 //globalSelection( GEOM_COMPOUND );
163 GroupBoxPublish->show();
165 /* signals and slots connections */
166 connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
167 connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
168 connect(GroupConstructors, SIGNAL(clicked(int)), this, SLOT(ConstructorsClicked(int)));
170 connect(GroupPoints->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
171 connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
173 connect(GroupPoints2->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
174 connect(GroupPoints2->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
175 connect( myTolEdt2, SIGNAL( valueChanged( double ) ), this, SLOT( onTolerChanged( double ) ) );
176 connect( mySubShapesChk, SIGNAL( stateChanged( int ) ), this, SLOT( onSubShapesChk() ) );
178 connect( myGeomGUI->getApp()->selectionMgr(),
179 SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()) );
181 connect(myDetectBtn, SIGNAL(clicked()), this, SLOT(onDetect()));
183 initName( tr( "GLUE_NEW_OBJ_NAME" ) );
185 ConstructorsClicked(0);
192 //=================================================================================
193 // function : ConstructorsClicked()
194 // purpose : Radio button management
195 //=================================================================================
196 void RepairGUI_GlueDlg::ConstructorsClicked( int constructorId )
198 if ( myCurrConstrId == constructorId )
201 disconnect(myGeomGUI->getApp()->selectionMgr(), 0, this, 0);
203 switch ( constructorId )
207 GroupPoints2->hide();
210 GroupPoints->LineEdit1->setText( "" );
211 myEditCurrentArgument = GroupPoints->LineEdit1;
213 if ( myCurrConstrId >= 0 ) // i.e. it is not initialisation
215 // copy tolerance from previous tolerance field
216 myTolEdt->setValue( myTolEdt2->value() );
225 GroupPoints2->show();
226 GroupPoints->LineEdit1->setText("");
227 myEditCurrentArgument = GroupPoints2->LineEdit1;
229 if ( myCurrConstrId >= 0 ) // i.e. it is not initialisation
231 // copy tolerance from previous tolerance field
232 myTolEdt2->setValue( myTolEdt->value() );
233 mySubShapesChk->setChecked( false );
241 myCurrConstrId = constructorId;
243 myEditCurrentArgument->setFocus();
245 connect(myGeomGUI->getApp()->selectionMgr(),
246 SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
248 qApp->processEvents();
250 QSize aSize = minimumSizeHint();
251 resize( width(), aSize.height() );
256 SelectionIntoArgument();
260 //=================================================================================
261 // function : ClickOnOk()
262 // purpose : Same than click on apply but close this dialog.
263 //=================================================================================
264 void RepairGUI_GlueDlg::ClickOnOk()
266 if ( ClickOnApply() )
271 //=================================================================================
272 // function : ClickOnApply()
274 //=================================================================================
275 bool RepairGUI_GlueDlg::ClickOnApply()
277 if ( !onAcceptLocal() )
282 //GroupPoints->LineEdit1->setText("");
283 //myObject = GEOM::GEOM_Object::_nil();
285 //globalSelection( GEOM_COMPOUND );
287 ConstructorsClicked( getConstructorId() );
293 //=================================================================================
294 // function : SelectionIntoArgument()
295 // purpose : Called when selection
296 //=================================================================================
297 void RepairGUI_GlueDlg::SelectionIntoArgument()
299 if ( mySubShapesChk->isChecked() && getConstructorId() == 1 ) {
305 myEditCurrentArgument->setText("");
306 myObject = GEOM::GEOM_Object::_nil();
308 if ( IObjectCount() == 1 ) {
309 Handle(SALOME_InteractiveObject) anIO = firstIObject();
310 Standard_Boolean aRes;
311 myObject = GEOMBase::ConvertIOinGEOMObject( anIO, aRes );
313 myEditCurrentArgument->setText( GEOMBase::GetName( myObject ) );
318 //=================================================================================
319 // function : SetEditCurrentArgument()
321 //=================================================================================
322 void RepairGUI_GlueDlg::SetEditCurrentArgument()
324 const QObject* send = sender();
325 if ( send == GroupPoints->PushButton1 || send == GroupPoints2->PushButton1 ) {
326 myEditCurrentArgument->setFocus();
327 SelectionIntoArgument();
332 //=================================================================================
333 // function : LineEditReturnPressed()
335 //=================================================================================
336 void RepairGUI_GlueDlg::LineEditReturnPressed()
338 const QObject* send = sender();
339 if( send == GroupPoints->LineEdit1 ) {
340 myEditCurrentArgument = GroupPoints->LineEdit1;
341 GEOMBase_Skeleton::LineEditReturnPressed();
343 else if( send == GroupPoints2->LineEdit1 ) {
344 myEditCurrentArgument = GroupPoints2->LineEdit1;
345 GEOMBase_Skeleton::LineEditReturnPressed();
350 //=================================================================================
351 // function : ActivateThisDialog()
353 //=================================================================================
354 void RepairGUI_GlueDlg::ActivateThisDialog()
356 GEOMBase_Skeleton::ActivateThisDialog();
357 connect(myGeomGUI->getApp()->selectionMgr(),
358 SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
360 //GroupPoints->LineEdit1->setText("");
361 //GroupPoints2->LineEdit1->setText("");
362 //myObject = GEOM::GEOM_Object::_nil();
364 //myGeomGUI->SetState( 0 );
365 //globalSelection( GEOM_COMPOUND );
370 //=================================================================================
371 // function : enterEvent()
372 // purpose : Mouse enter onto the dialog to activate it
373 //=================================================================================
374 void RepairGUI_GlueDlg::enterEvent(QEvent* e)
376 if ( !GroupConstructors->isEnabled() )
377 ActivateThisDialog();
380 //=================================================================================
381 // function : createOperation
383 //=================================================================================
384 GEOM::GEOM_IOperations_ptr RepairGUI_GlueDlg::createOperation()
386 return getGeomEngine()->GetIShapesOperations( getStudyId() );
389 //=================================================================================
390 // function : isValid
392 //=================================================================================
393 bool RepairGUI_GlueDlg::isValid( QString& msg )
396 switch ( getConstructorId() )
399 v = myTolEdt->value(); break;
401 v = myTolEdt2->value(); break;
403 return !myObject->_is_nil() && ( IsPreview() || v > 0. );
406 //=================================================================================
407 // function : execute
409 //=================================================================================
410 bool RepairGUI_GlueDlg::execute( ObjectList& objects )
412 bool aResult = false;
415 switch ( getConstructorId() )
419 GEOM::GEOM_Object_var anObj = GEOM::GEOM_IShapesOperations::_narrow
420 ( getOperation() )->MakeGlueFaces( myObject, myTolEdt->value(), true );
421 aResult = !anObj->_is_nil();
423 objects.push_back( anObj._retn() );
430 // if this method is used for displaying preview then we must detect glue faces only
431 ObjectList::iterator anIter;
432 for (anIter = myTmpObjs.begin(); anIter != myTmpObjs.end(); ++anIter)
433 objects.push_back( GEOM::GEOM_Object::_duplicate( *anIter ) );
434 return myTmpObjs.size() ? true : false;
437 // Make glue face by list.
438 // Iterate through myTmpObjs and verifies where each object is currently selected or not.
439 QMap<QString, char> selected;
441 // Get names of selected objects
442 SALOME_ListIteratorOfListIO it ( selectedIO() );
443 for (; it.More(); it.Next())
444 selected.insert( it.Value()->getName(), 0 );
446 // Iterate through result and select objects with names from selection
447 // ObjectList toRemoveFromEnggine;
449 ObjectList::iterator anIter;
450 for (anIter = myTmpObjs.begin(); anIter != myTmpObjs.end(); ++anIter)
452 if ( selected.contains( myGeomGUI->getApp()->orb()->object_to_string(*anIter) ) )
453 toGlue.push_back(*anIter);
457 GEOM::ListOfGO_var aListForGlue = new GEOM::ListOfGO();
458 aListForGlue->length( toGlue.size() );
459 ObjectList::iterator anIter3 = toGlue.begin();
460 for ( int i = 0; anIter3 != toGlue.end(); ++anIter3, ++i )
461 aListForGlue[ i ] = *anIter3;
462 GEOM::GEOM_Object_var anObj = GEOM::GEOM_IShapesOperations::_narrow
463 ( getOperation() )->MakeGlueFacesByList( myObject, myTolEdt2->value(), aListForGlue, true );
465 aResult = !anObj->_is_nil();
468 objects.push_back( anObj._retn() );
470 // Remove from engine useless objects
482 //=================================================================================
483 // function : restoreSubShapes
485 //=================================================================================
486 void RepairGUI_GlueDlg::restoreSubShapes (SALOMEDS::Study_ptr theStudy,
487 SALOMEDS::SObject_ptr theSObject)
489 if (CheckBoxRestoreSS->isChecked()) {
490 GEOM::find_shape_method aFindMethod = GEOM::FSM_GetInPlace;
491 if (getConstructorId() == 0) // MakeGlueFaces
492 aFindMethod = GEOM::FSM_GetInPlaceByHistory;
494 // empty list of arguments means that all arguments should be restored
495 getGeomEngine()->RestoreSubShapesSO(theStudy, theSObject, GEOM::ListOfGO(),
496 aFindMethod, /*theInheritFirstArg=*/true);
500 //================================================================
501 // Function : clearShapeBufferLocal
503 //================================================================
504 void RepairGUI_GlueDlg::clearShapeBufferLocal( GEOM::GEOM_Object_ptr theObj )
506 if ( CORBA::is_nil( theObj ) )
509 CORBA::String_var IOR = myGeomGUI->getApp()->orb()->object_to_string( theObj );
510 TCollection_AsciiString asciiIOR( (char *)( IOR.in() ) );
511 myGeomGUI->GetShapeReader().RemoveShapeFromBuffer( asciiIOR );
513 if ( !getStudy() || !( getStudy()->studyDS() ) )
516 _PTR(Study) aStudy = getStudy()->studyDS();
517 _PTR(SObject) aSObj ( aStudy->FindObjectIOR( string( IOR.in() ) ) );
521 _PTR(ChildIterator) anIt ( aStudy->NewChildIterator( aSObj ) );
522 for ( anIt->InitEx( true ); anIt->More(); anIt->Next() ) {
523 _PTR(GenericAttribute) anAttr;
524 if ( anIt->Value()->FindAttribute(anAttr, "AttributeIOR") ) {
525 _PTR(AttributeIOR) anIOR ( anAttr );
526 TCollection_AsciiString asciiIOR( (char*)anIOR->Value().c_str() );
527 myGeomGUI->GetShapeReader().RemoveShapeFromBuffer( asciiIOR );
532 //================================================================
533 // Function : onAccept
534 // Purpose : This method should be called from dialog's slots onOk() and onApply()
535 // It perfroms user input validation, then it
536 // performs a proper operation and manages transactions, etc.
537 //================================================================
538 bool RepairGUI_GlueDlg::onAcceptLocal()
540 if ( !getStudy() || !( getStudy()->studyDS() ) )
543 _PTR(Study) aStudy = getStudy()->studyDS();
545 bool aLocked = aStudy->GetProperties()->IsLocked();
548 MESSAGE("GEOMBase_Helper::onAccept - ActiveStudy is locked");
549 SUIT_MessageBox::warn1 ( (QWidget*)(myGeomGUI->getApp()->desktop()),
550 QObject::tr("WRN_WARNING"), QObject::tr("WRN_STUDY_LOCKED"), QObject::tr("BUT_OK") );
555 if ( !isValid( msg ) )
561 erasePreview( false );
567 SUIT_OverrideCursor wc;
569 myGeomGUI->getApp()->putInfo( "" );
572 if ( !execute( objects ) )
580 const int nbObjs = objects.size();
581 for ( ObjectList::iterator it = objects.begin(); it != objects.end(); ++it )
583 QString aName = getNewObjectName();
587 aName = getPrefix(*it);
588 aName = GEOMBase::GetDefaultName(aName);
592 // PAL6521: use a prefix, if some dialog box doesn't reimplement getNewObjectName()
594 aName = GEOMBase::GetDefaultName( getPrefix( *it ) );
596 addInStudy( *it, aName.latin1() );
597 display( *it, false );
604 myGeomGUI->getApp()->putInfo( QObject::tr("GEOM_PRP_DONE") );
611 // JFA 28.12.2004 BEGIN // To enable warnings
612 if ( !getOperation()->_is_nil() )
614 if ( !getOperation()->IsDone() )
617 QString msgw = QObject::tr( getOperation()->GetErrorCode() );
618 SUIT_MessageBox::warn1((QWidget*)(myGeomGUI->getApp()->desktop()),
619 QObject::tr( "WRN_WARNING" ),
621 QObject::tr( "BUT_OK" ));
624 // JFA 28.12.2004 END
628 catch( const SALOME::SALOME_Exception& e )
630 SalomeApp_Tools::QtCatchCorbaException( e );
642 //=================================================================================
643 // function : onDetect
645 //=================================================================================
646 void RepairGUI_GlueDlg::onDetect()
650 if ( !isValid( msg ) ) {
655 buttonOk->setEnabled( false );
656 buttonApply->setEnabled( false );
657 globalSelection( GEOM_ALLSHAPES );
659 GEOM::ListOfGO_var aList = GEOM::GEOM_IShapesOperations::_narrow
660 ( getOperation() )->GetGlueFaces( myObject, myTolEdt2->value() );
662 for (int i = 0, n = aList->length(); i < n; i++)
663 myTmpObjs.push_back(GEOM::GEOM_Object::_duplicate(aList[i]));
665 if ( myTmpObjs.size() > 0 )
667 msg = tr( "FACES_FOR_GLUING_ARE_DETECTED" ).arg( myTmpObjs.size() );
668 mySubShapesChk->setChecked( true );
672 msg = tr( "THERE_ARE_NO_FACES_FOR_GLUING" );
675 connect( myGeomGUI->getApp()->selectionMgr(),
676 SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()) );
677 SUIT_MessageBox::info1( this, tr( "GEOM_FREE_BOUNDS_TLT" ), msg, "Close" );
682 //=================================================================================
683 // function : activateSelection
684 // purpose : Redisplay preview and Activate selection
685 //=================================================================================
686 void RepairGUI_GlueDlg::activateSelection()
690 int anId = getConstructorId();
691 if ( anId == 0 ) // Case of whole gluing
693 disconnect( myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
694 this, SLOT(SelectionIntoArgument()) );
696 globalSelection( GEOM_ALLSHAPES );
697 if (myObject->_is_nil())
698 SelectionIntoArgument();
700 connect( myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
701 this, SLOT(SelectionIntoArgument()) );
703 else // Second case of gluing
705 if ( !mySubShapesChk->isChecked() )
706 globalSelection( GEOM_ALLSHAPES );
709 displayPreview( true, false, false, 2/*line width*/, 1/*display mode*/, Quantity_NOC_RED );
710 disconnect(myGeomGUI->getApp()->selectionMgr(),
711 SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()) );
712 globalSelection( GEOM_PREVIEW );
713 connect( myGeomGUI->getApp()->selectionMgr(),
714 SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()) );
720 //=================================================================================
721 // function : updateButtonState
722 // purpose : Update button state
723 //=================================================================================
724 void RepairGUI_GlueDlg::updateButtonState()
726 int anId = getConstructorId();
727 bool hasMainObj = !myObject->_is_nil();
730 buttonOk->setEnabled( hasMainObj );
731 buttonApply->setEnabled( hasMainObj );
735 bool wasSelected = false;
736 SALOME_ListIteratorOfListIO it ( selectedIO() );
739 bool wasDetected = myTmpObjs.size() ? true : false;
740 buttonOk->setEnabled( hasMainObj && wasDetected && wasSelected);
741 buttonApply->setEnabled( hasMainObj && wasDetected && wasSelected);
742 mySubShapesChk->setEnabled( hasMainObj && wasDetected );
743 myDetectBtn->setEnabled( hasMainObj );
744 if ( !hasMainObj || !wasDetected )
745 mySubShapesChk->setChecked( false );
749 //=================================================================================
750 // function : clearTemporary
751 // purpose : Remove temporary objects from engine
752 //=================================================================================
753 void RepairGUI_GlueDlg::clearTemporary()
755 ObjectList::iterator anIter;
756 for (anIter = myTmpObjs.begin(); anIter != myTmpObjs.end(); ++anIter)
757 getGeomEngine()->RemoveObject(*anIter);
762 //=================================================================================
763 // function : onTolerChanged
764 // purpose : Remove temporary objects from engine
765 //=================================================================================
766 void RepairGUI_GlueDlg::onTolerChanged( double /*theVal*/ )
773 //=================================================================================
774 // function : onSubShapesChk
775 // purpose : Update selection mode
776 //=================================================================================
777 void RepairGUI_GlueDlg::onSubShapesChk()
779 if ( !mySubShapesChk->isChecked() )
785 //=================================================================================
786 // function : ClickOnCancel
787 // purpose : Remove temporary objects from engine and call method of base class
788 //=================================================================================
789 void RepairGUI_GlueDlg::ClickOnCancel()
792 GEOMBase_Skeleton::ClickOnCancel();