// 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 : OperationGUI_ArchimedeDlg.h
// Author : Nicolas REJNERI
// Module : GEOM
-// $Header$
#ifndef DIALOGBOX_ARCHIMEDE_H
#define DIALOGBOX_ARCHIMEDE_H
#include "GEOMBase_Skeleton.h"
-#include "DlgRef_1Sel3Spin.h"
-#include "OperationGUI.h"
-
-//#include "SALOME_InteractiveObject.hxx"
+class DlgRef_1Sel3Spin;
//=================================================================================
// class : OperationGUI_ArchimedeDlg
Q_OBJECT
public:
- OperationGUI_ArchimedeDlg(QWidget* parent = 0, const char* name = 0, OperationGUI* theOperationGUI = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ OperationGUI_ArchimedeDlg(GeometryGUI* theGeometryGUI, QWidget* parent);
~OperationGUI_ArchimedeDlg();
-private:
- void Init();
- void enterEvent(QEvent* e);
-
- double step;
+protected:
+ // redefined from GEOMBase_Helper
+ virtual GEOM::GEOM_IOperations_ptr createOperation();
+ virtual bool isValid( QString& msg );
+ virtual bool execute( ObjectList& objects );
- OperationGUI* myOperationGUI;
-
- Handle(SALOME_InteractiveObject) myIO;
- Standard_Real myWeight;
- Standard_Real myWaterDensity;
- Standard_Real myMeshingDeflection;
- bool myOkIO;
+private:
+ void Init();
+ void enterEvent(QEvent* e);
- DlgRef_1Sel3Spin* GroupPoints;
+private:
+ GEOM::GEOM_Object_var myShape;
+ DlgRef_1Sel3Spin* GroupPoints;
+ double myStep;
private slots:
- void ClickOnOk();
- void ClickOnApply();
- void ActivateThisDialog();
- void LineEditReturnPressed();
- void SelectionIntoArgument();
- void SetEditCurrentArgument();
- void ValueChangedInSpinBox(double newValue);
-
+ void ClickOnOk();
+ bool ClickOnApply();
+ void ActivateThisDialog();
+ void LineEditReturnPressed();
+ void SelectionIntoArgument();
};
#endif // DIALOGBOX_ARCHIMEDE_H