X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FRepairGUI%2FRepairGUI_ShapeProcessDlg.cxx;h=71d3ce0f2cfc476c1eb4772ca4a10b106dff07b8;hb=09added4b04aab5affc5c928ac47ebdd06d5ff5a;hp=6d9f4dcc0489ed722acbef7562e5a79370860f03;hpb=97c05bd172eb333540395044a41bb3e1160ffc48;p=modules%2Fgeom.git diff --git a/src/RepairGUI/RepairGUI_ShapeProcessDlg.cxx b/src/RepairGUI/RepairGUI_ShapeProcessDlg.cxx index 6d9f4dcc0..71d3ce0f2 100755 --- a/src/RepairGUI/RepairGUI_ShapeProcessDlg.cxx +++ b/src/RepairGUI/RepairGUI_ShapeProcessDlg.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2015 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 @@ -40,6 +40,7 @@ #include #include #include +#include "utilities.h" #include #include "utilities.h" @@ -360,7 +361,7 @@ void RepairGUI_ShapeProcessDlg::init() //myOpList->setCurrentRow( myOpList->findItem( 0 ); reset(); - myStack->setCurrentIndex( 0 ); + myOpList->setCurrentRow(0); initName( tr( "PROCESS_SHAPE_NEW_OBJ_NAME" )); selectionChanged(); @@ -958,6 +959,7 @@ void RepairGUI_ShapeProcessDlg::operatorChecked( QListWidgetItem * item ) { if ( item && item->checkState() == Qt::Checked ) { + item->setSelected(true); myStack->setCurrentIndex( myOpList->row( item )); } updateSelectAll(); @@ -989,3 +991,18 @@ void RepairGUI_ShapeProcessDlg::onSelectAll( int state ) } myOpList->blockSignals( false ); } + +//================================================================================= +// function : getSourceObjects +// purpose : virtual method to get source objects +//================================================================================= +QList RepairGUI_ShapeProcessDlg::getSourceObjects() +{ + QList res; + GEOM::ListOfGO aListPtr(myObjects); + for (int i = 0; i < aListPtr.length(); i++) { + GEOM::GeomObjPtr aGeomObjPtr(aListPtr[i]); + res << aGeomObjPtr; + } + return res; +}