-// GEOM GEOMGUI : GUI for Geometry component
+// GEOM GEOMGUI : GUI for Geometry component
//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+// Copyright (C) 2003 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
-// File : TransformationGUI_ScaleDlg.h
-// Author : Lucien PIGNOLONI
-// Module : GEOM
-// $Header$
-
-#ifndef DIALOGBOX_SCALE_H
-#define DIALOGBOX_SCALE_H
-
-#include "GEOMBase_Skeleton.h"
-#include "DlgRef_2Sel1Spin.h"
+// File : TransformationGUI_ScaleDlg.h
+// Author : Lucien PIGNOLONI, Open CASCADE S.A.S.
+//
-#include "TransformationGUI.h"
+#ifndef TRANSFORMATIONGUI_SCALEDLG_H
+#define TRANSFORMATIONGUI_SCALEDLG_H
-#include "GEOM_ShapeTypeFilter.hxx"
+#include <GEOMBase_Skeleton.h>
+class DlgRef_2Sel1Spin2Check;
+
//=================================================================================
// class : TransformationGUI_ScaleDlg
// purpose :
//=================================================================================
class TransformationGUI_ScaleDlg : public GEOMBase_Skeleton
{
- Q_OBJECT
+ Q_OBJECT
public:
- TransformationGUI_ScaleDlg(QWidget* parent = 0, const char* name = 0, TransformationGUI* theTransformationGUI = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
- ~TransformationGUI_ScaleDlg();
-
-private :
- void Init();
- void enterEvent(QEvent* e);
- void MakeScaleSimulationAndDisplay();
-
- TransformationGUI* myTransformationGUI;
-
- Handle(GEOM_ShapeTypeFilter) myVertexFilter;
+ TransformationGUI_ScaleDlg( GeometryGUI*, QWidget* = 0,
+ bool = false, Qt::WindowFlags = 0 );
+ ~TransformationGUI_ScaleDlg();
- gp_Pnt myPoint1; /* Points containing the vector */
- bool myOkPoint1; /* true when myPoint1 is defined */
- TopoDS_Shape myBaseTopo;
- bool myOkBaseTopo; /* true when myBaseTopo is defined */
- GEOM::GEOM_Shape_var myGeomShape; /* is myBaseTopo */
- Standard_Real myFactor;
+protected:
+ // redefined from GEOMBase_Helper
+ virtual GEOM::GEOM_IOperations_ptr createOperation();
+ virtual bool isValid( QString& );
+ virtual bool execute( ObjectList& );
+
+ virtual void closeEvent( QCloseEvent* );
- DlgRef_2Sel1Spin* GroupPoints;
+private:
+ void Init();
+ void enterEvent( QEvent* );
+ double GetFactor() const;
-private slots :
- void ClickOnOk();
- void ClickOnApply();
- void ActivateThisDialog();
- void LineEditReturnPressed();
- void SelectionIntoArgument();
- void SetEditCurrentArgument();
- void ValueChangedInSpinBox(double newValue);
+private:
+ GEOM::ListOfGO myObjects;
+ GEOM::GEOM_Object_var myPoint; /* Central Point */
+
+ DlgRef_2Sel1Spin2Check* GroupPoints;
+private slots:
+ void ClickOnOk();
+ bool ClickOnApply();
+ void ActivateThisDialog();
+ void LineEditReturnPressed();
+ void SelectionIntoArgument();
+ void SetEditCurrentArgument();
+ void ValueChangedInSpinBox();
+ void CreateCopyModeChanged( bool );
};
-#endif // DIALOGBOX_SCALE_H
+#endif // TRANSFORMATIONGUI_SCALEDLG_H