Salome HOME
NPAL17269: Performance pb. when creating a group with GUI.
[modules/geom.git] / src / RepairGUI / RepairGUI_GlueDlg.h
index 2c493dfa53e5ab3f9cc01005078444d6664fb66c..eef24c2ca3b2005b8a497bd1e11cf2c4fa5f8edc 100644 (file)
 //  License along with this library; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 //
 //
 //  File   : RepairGUI_GlueDlg.h
 //  Author : Lucien PIGNOLONI
 //  Module : GEOM
-//  $Header$
 
 #ifndef DIALOGBOX_Glue_H
 #define DIALOGBOX_Glue_H
@@ -33,6 +32,7 @@
 
 class QtxDblSpinBox;
 class DlgRef_1Sel_Ext;
+class QCheckBox;
 
 //=================================================================================
 // class    : RepairGUI_GlueDlg
@@ -43,7 +43,8 @@ class RepairGUI_GlueDlg : public GEOMBase_Skeleton
     Q_OBJECT
 
 public:
-    RepairGUI_GlueDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
+    RepairGUI_GlueDlg( GeometryGUI* theGeometryGUI, QWidget* parent = 0,
+                       const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
     ~RepairGUI_GlueDlg();
 
 protected:
@@ -52,32 +53,55 @@ protected:
     virtual bool isValid( QString& );
     virtual bool execute( ObjectList& objects );
 
-private :
+private:
     void Init();
     void enterEvent(QEvent* e);
     void closeEvent(QCloseEvent* e);
     void initSelection();
+    
+    void clearTemporary();
 
-    bool onAcceptLocal( const bool publish = true, const bool useTransaction = true );
+    bool onAcceptLocal();
     void clearShapeBufferLocal( GEOM::GEOM_Object_ptr );
     // Reimplementation of onAccept for local case of this class.
-
+    
+    void activateSelection();
+    void updateButtonState();
+    void selectTmpInViewer();
+    
+private:    
+  
     GEOM::GEOM_Object_var myObject;
-
+    ObjectList            myTmpObjs;
+    
     DlgRef_1Sel_Ext* GroupPoints;
+    DlgRef_1Sel_Ext* GroupPoints2;
     QtxDblSpinBox*   myTolEdt;
+    QtxDblSpinBox*   myTolEdt2;
+    QPushButton*     myDetectBtn;
+    QCheckBox*       mySubShapesChk;
 
+    int myCurrConstrId;
+    
+protected slots:
+    virtual void ClickOnCancel();
+    
 private slots:
     void ClickOnOk();
     bool ClickOnApply();
-    void ClickOnCancel();
 
     void ActivateThisDialog();
-    void DeactivateActiveDialog();
 
     void LineEditReturnPressed();
     void SelectionIntoArgument();
     void SetEditCurrentArgument();
+
+    void ConstructorsClicked(int);
+    //void ValueChangedInSpinBox();
+
+    void onDetect();
+    void onTolerChanged( double );
+    void onSubShapesChk();
 };
 
 #endif // DIALOGBOX_Glue_H