1 // GEOM GEOMGUI : GUI for Geometry component
3 // Copyright (C) 2003 CEA
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License.
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // File : BlocksGUI_ExplodeDlg.h
24 // Author : Julia DOROVSKIKH
27 #ifndef DIALOGBOX_BLOCK_EXPLODE_H
28 #define DIALOGBOX_BLOCK_EXPLODE_H
30 #include "GEOM_BlocksGUI.hxx"
32 #include "GEOMBase_Skeleton.h"
38 //=================================================================================
39 // class : BlocksGUI_ExplodeDlg
41 //=================================================================================
42 class GEOM_BLOCKSGUI_EXPORT BlocksGUI_ExplodeDlg : public GEOMBase_Skeleton
47 BlocksGUI_ExplodeDlg (GeometryGUI*, QWidget* parent, bool modal = FALSE);
48 ~BlocksGUI_ExplodeDlg();
51 // redefined from GEOMBase_Helper
52 virtual GEOM::GEOM_IOperations_ptr createOperation();
53 virtual bool isValid (QString& msg);
54 virtual bool execute (ObjectList& objects);
55 virtual GEOM::GEOM_Object_ptr getFather(GEOM::GEOM_Object_ptr theObj);
57 virtual const char* getNewObjectName() const;
61 void enterEvent (QEvent* e);
63 void activateSelection();
65 void updateButtonState();
66 bool isAllSubShapes() const;
67 int shapeType() const;
69 void clearTemporary();
74 CORBA::Long myNbBlocks;
75 GEOM::GEOM_Object_var myObject;
81 QPushButton* mySelBtn;
84 DlgRef_SpinBox* mySpinBoxMin;
85 DlgRef_SpinBox* mySpinBoxMax;
87 QTextEdit* myBlocksNb;
89 QCheckBox* myCheckBtn;
94 void ActivateThisDialog();
95 void ConstructorsClicked (int constructorId);
97 void SelectionIntoArgument();
98 void SetEditCurrentArgument();
100 void SubShapeToggled();
102 void ValueChangedInSpinBox (double newValue);
105 #endif // DIALOGBOX_BLOCK_EXPLODE_H