Salome HOME
Updated for PAL14857.
[modules/geom.git] / src / TransformationGUI / TransformationGUI_RotationDlg.h
index c0cda42cc0ef9bfe7102f75b9bcfa7b63fec453a..4a18bbc1d44b16c52a7d69c64c9a957ca2e4ae7f 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   : TransformationGUI_RotationDlg.h
 //  Author : Lucien PIGNOLONI
 //  Module : GEOM
-//  $Header$
 
 #ifndef DIALOGBOX_ROTATION_H
 #define DIALOGBOX_ROTATION_H
 
 #include "GEOMBase_Skeleton.h"
-#include "DlgRef_2Sel1Spin1Check.h"
-
-#include "TransformationGUI.h"
-
-#include "GEOM_ShapeTypeFilter.hxx"
-#include <gp_Dir.hxx>
-
+#include "DlgRef_4Sel1Spin2Check.h"
+  
 //=================================================================================
 // class    : TransformationGUI_RotationDlg
 // purpose  :
@@ -46,38 +40,39 @@ class TransformationGUI_RotationDlg : public GEOMBase_Skeleton
     Q_OBJECT
 
 public:
-    TransformationGUI_RotationDlg(QWidget* parent = 0, const char* name = 0, TransformationGUI* theTransformationGUI = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+    TransformationGUI_RotationDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0,
+                                 const char* name = 0, bool modal = FALSE, WFlags fl = 0);
     ~TransformationGUI_RotationDlg();
 
-private :
-    void Init();
-    void enterEvent(QEvent* e);
-    void MakeRotationSimulationAndDisplay();
-
-    TransformationGUI* myTransformationGUI;
-
-    Handle(GEOM_ShapeTypeFilter) myEdgeFilter;   /* Filters selection */
+protected:
+    // redefined from GEOMBase_Helper
+    virtual GEOM::GEOM_IOperations_ptr createOperation();
+    virtual bool isValid( QString& );
+    virtual bool execute( ObjectList& objects );
 
-    TopoDS_Shape myBase;
-    GEOM::GEOM_Shape_var myGeomShape;   /* is myBase */
-    gp_Pnt myLoc;
-    gp_Dir myDir;    
-    Standard_Real myAngle;
-    bool myOkBase; 
-    bool myOkAxis;
+    virtual void closeEvent( QCloseEvent* e );
 
-    DlgRef_2Sel1Spin1Check* GroupPoints;
+private:
+    void Init();
+    void enterEvent(QEvent* e);
+    double GetAngle() const;
+    
+    GEOM::ListOfGO myObjects;
+    GEOM::GEOM_Object_var myAxis, myCentPoint, myPoint1, myPoint2;
+    
+    DlgRef_4Sel1Spin2Check* GroupPoints;
 
 private slots:
     void ClickOnOk();
-    void ClickOnApply();
+    bool ClickOnApply();
     void ActivateThisDialog();
     void LineEditReturnPressed();
     void SelectionIntoArgument();
     void SetEditCurrentArgument();
-    void ReverseAngle(int state);
-    void ValueChangedInSpinBox(double newValue);
-
+    void ValueChangedInSpinBox();
+    void CreateCopyModeChanged(bool isCreateCopy);
+    void ConstructorsClicked(int constructorId);
+    void onReverse();
 };
 
 #endif // DIALOGBOX_ROTATION_H