Salome HOME
Additional fix for the issue "16219: EDF PAL 469: "RemoveFromStudy" Function": dump...
[modules/geom.git] / src / BlocksGUI / BlocksGUI_ExplodeDlg.h
index 8e309ecfdbfd6a8c1535b54ad9988b6c9ba13d78..9c7319138307f9cea72b2e18db25fefa8be57119 100644 (file)
@@ -1,6 +1,7 @@
-//  GEOM GEOMGUI : GUI for Geometry component
+//  Copyright (C) 2007-2010  CEA/DEN, EDF R&D, OPEN CASCADE
 //
-//  Copyright (C) 2003  CEA
+//  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
 //
 //  This library is free software; you can redistribute it and/or
 //  modify it under the terms of the GNU Lesser General Public
 //  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.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
-//
-//
-//  File   : BlocksGUI_ExplodeDlg.h
-//  Author : Julia DOROVSKIKH
-//  Module : GEOM
 
-#ifndef DIALOGBOX_BLOCK_EXPLODE_H
-#define DIALOGBOX_BLOCK_EXPLODE_H
-
-#include "GEOM_BlocksGUI.hxx"
+// GEOM GEOMGUI : GUI for Geometry component
+// File   : BlocksGUI_ExplodeDlg.h
+// Author : Julia DOROVSKIKH, Open CASCADE S.A.S. (julia.dorovskikh@opencascade.com)
+//
+#ifndef BLOCKSGUI_EXPLODEDLG_H
+#define BLOCKSGUI_EXPLODEDLG_H
 
-#include "GEOMBase_Skeleton.h"
+#include <GEOMBase_Skeleton.h>
 
-class DlgRef_SpinBox;
-class QTextEdit;
-class QCheckBox;
+class DlgRef_1Sel2Spin1View1Check;
 
 //=================================================================================
 // class    : BlocksGUI_ExplodeDlg
 // purpose  :
 //=================================================================================
-class GEOM_BLOCKSGUI_EXPORT BlocksGUI_ExplodeDlg : public GEOMBase_Skeleton
+class BlocksGUI_ExplodeDlg : public GEOMBase_Skeleton
 {
   Q_OBJECT
 
 public:
-  BlocksGUI_ExplodeDlg (GeometryGUI*, QWidget* parent, bool modal = FALSE);
+  BlocksGUI_ExplodeDlg( GeometryGUI*, QWidget* );
   ~BlocksGUI_ExplodeDlg();
 
 protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
-  virtual bool                       isValid (QString& msg);
-  virtual bool                       execute (ObjectList& objects);
-  virtual GEOM::GEOM_Object_ptr      getFather(GEOM::GEOM_Object_ptr theObj);
+  virtual bool                       isValid( QString& );
+  virtual bool                       execute( ObjectList& );
+  virtual GEOM::GEOM_Object_ptr      getFather( GEOM::GEOM_Object_ptr );
 
-  virtual const char*                getNewObjectName() const; 
+  virtual QString                    getNewObjectName() const; 
 
 private:
-  void Init();
-  void enterEvent (QEvent* e);
+  void                               Init();
+  void                               enterEvent( QEvent* );
 
-  void activateSelection();
+  void                               activateSelection();
 
-  void updateButtonState();
-  bool isAllSubShapes() const;
-  int  shapeType() const;
+  void                               updateButtonState();
+  bool                               isAllSubShapes() const;
+  int                                shapeType() const;
 
-  void clearTemporary();
+  void                               clearTemporary();
 
 private:
-  int                        myConstructorId;
-
-  CORBA::Long                myNbBlocks;
-  GEOM::GEOM_Object_var      myObject;
-
-  ObjectList                 myTmpObjs;
-
-  QFrame*                    myGrp1;
-
-  QPushButton*               mySelBtn;
-  QLineEdit*                 mySelName;
+  int                                myConstructorId;
 
-  DlgRef_SpinBox*            mySpinBoxMin;
-  DlgRef_SpinBox*            mySpinBoxMax;
+  CORBA::Long                        myNbBlocks;
+  GEOM::GEOM_Object_var              myObject;
 
-  QTextEdit*                 myBlocksNb;
+  ObjectList                         myTmpObjs;
 
-  QCheckBox*                 myCheckBtn;
+  DlgRef_1Sel2Spin1View1Check*       myGrp1;
 
 private slots:
-  void ClickOnOk();
-  bool ClickOnApply();
-  void ActivateThisDialog();
-  void ConstructorsClicked (int constructorId);
+  void                               ClickOnOk();
+  bool                               ClickOnApply();
+  void                               ActivateThisDialog();
+  void                               ConstructorsClicked( int );
 
-  void SelectionIntoArgument();
-  void SetEditCurrentArgument();
+  void                               SelectionIntoArgument();
+  void                               SetEditCurrentArgument();
 
-  void SubShapeToggled();
+  void                               SubShapeToggled();
 
-  void ValueChangedInSpinBox (double newValue);
+  void                               ValueChangedInSpinBox();
 };
 
-#endif // DIALOGBOX_BLOCK_EXPLODE_H
+#endif // BLOCKSGUI_EXPLODEDLG_H