Salome HOME
XAO test fixed to work in salome test
[modules/geom.git] / src / RepairGUI / RepairGUI_ShapeProcessDlg.h
index 1a4ea160ec367f502c2728302cf83eee7d80273c..508cff9ec57b494f60a225419f9bf3eb30d1269a 100755 (executable)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016  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
@@ -6,7 +6,7 @@
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 class DlgRef_1Sel;
 class SalomeApp_IntSpinBox;
 class SalomeApp_DoubleSpinBox;
-class QComboBox;
 class QCheckBox;
+class QComboBox;
 class QListWidget;
+class QListWidgetItem;
+class QStackedLayout;
 
 //=================================================================================
 // class    : RepairGUI_ShapeProcessDlg
@@ -55,6 +57,7 @@ protected:
   virtual GEOM::GEOM_IOperations_ptr createOperation();
   virtual bool                       isValid( QString& );
   virtual bool                       execute( ObjectList&  );
+  virtual QList<GEOM::GeomObjPtr>    getSourceObjects();
   
 private:
   void                               init();
@@ -78,6 +81,7 @@ private:
   //QDict<QString,QWidget*>            myCtrlMap;  // map of controls (values) of parameters
   void                               initParamsValues(); // initialize the data structures
   void                               initSelection();
+  void                               updateSelectAll();
 
 private:
   QStringList                        myOpLst; // list of available Shape Healing Operators
@@ -86,7 +90,9 @@ private:
   GEOM::ListOfGO_var                 myObjects;  // selected objects
   
   DlgRef_1Sel*                       mySelectWdgt;
+  QCheckBox*                         mySelectAll;
   QListWidget*                       myOpList;
+  QStackedLayout*                    myStack;
   
   SalomeApp_DoubleSpinBox*           myFixShapeTol3D;
   SalomeApp_DoubleSpinBox*           myFixShapeMaxTol3D;
@@ -120,7 +126,13 @@ private:
   SalomeApp_DoubleSpinBox*           myToBezierMaxTol;
   
   SalomeApp_DoubleSpinBox*           mySameParameterTol3D;
-  
+
+  QCheckBox*                         myDropSmallSolidsWidChk;
+  QCheckBox*                         myDropSmallSolidsVolChk;
+  SalomeApp_DoubleSpinBox*           myDropSmallSolidsWidTol;
+  SalomeApp_DoubleSpinBox*           myDropSmallSolidsVolTol;
+  QCheckBox*                         myDropSmallSolidsMergeChk;
+
 private slots:
   void                               onOk();
   bool                               onApply();
@@ -131,6 +143,8 @@ private slots:
   void                               selectionChanged();
   void                               selectClicked();
   void                               advOptionToggled( bool );
-};             
+  void                               operatorChecked( QListWidgetItem * item );
+  void                               onSelectAll( int );
+};
 
 #endif // REPAIRGUI_SHAPEPROCESSDLG_H