Salome HOME
Minimize external dependencies: libxml2 is only needed locally for XAO package
[modules/geom.git] / src / BlocksGUI / BlocksGUI_ExplodeDlg.h
index b62a5cdf64867583d5b244cc835e580d0c6c81a3..9b97b73ada41338a6b86553ccd85d976ad34fb8a 100644 (file)
@@ -1,37 +1,35 @@
-//  GEOM GEOMGUI : GUI for Geometry component
+// Copyright (C) 2007-2013  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 as published by the Free Software Foundation; either
-//  version 2.1 of the License.
+// 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.
 //
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
-//  You should have received a copy 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
+// You should have received a copy 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
 //
-//
-//
-//  File   : BlocksGUI_ExplodeDlg.h
-//  Author : Julia DOROVSKIKH
-//  Module : GEOM
 
-#ifndef DIALOGBOX_BLOCK_EXPLODE_H
-#define DIALOGBOX_BLOCK_EXPLODE_H
+// 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
@@ -42,62 +40,52 @@ 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 (int CurrObj = -1) 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