Salome HOME
Fix for PAL12857.
[modules/geom.git] / src / MeasureGUI / MeasureGUI_InertiaDlg.h
index 4e6bc2f023e2dbb890c79c5ee744e32833cadade..085a3b6f4d010b34a384c8a594dbd13d7285d032 100644 (file)
@@ -17,7 +17,7 @@
 //  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
 //
 //
 //
 #define DIALOGBOX_INERTIA_H
 
 #include "MeasureGUI_Skeleton.h"
-#include "MeasureGUI_1Sel12LineEdit_QTD.h"
 
-#include "MeasureGUI.h"
+class MeasureGUI_1Sel12LineEdit_QTD;
+class gp_XYZ;
+class gp_Mat;
+
+#if defined WNT && defined MEASUREGUI_EXPORTS
+#define MEASUREGUI_EXPORT __declspec( dllexport )
+#else
+#define MEASUREGUI_EXPORT
+#endif
 
 //=================================================================================
 // class    : MeasureGUI_InertiaDlg
-// purpose  :
+// purpose  : Dialog for displaying moment of inertia
 //=================================================================================
-class MeasureGUI_InertiaDlg : public MeasureGUI_Skeleton
+
+class MEASUREGUI_EXPORT MeasureGUI_InertiaDlg : public MeasureGUI_Skeleton
 { 
     Q_OBJECT
 
 public:
-    MeasureGUI_InertiaDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
-    ~MeasureGUI_InertiaDlg();
+                                        MeasureGUI_InertiaDlg( GeometryGUI* GUI,
+                                                              QWidget*     parent );
+                                        ~MeasureGUI_InertiaDlg();
+protected:
 
-private:
-    void Init();
-    void enterEvent(QEvent* e);
-    void CalculateAndDisplayInertia(const TopoDS_Shape& S);
+    // redefined from GEOMBase_Helper and MeasureGUI_Skeleton
+    virtual void                        processObject();
 
-    MeasureGUI_1Sel12LineEdit_QTD* GroupC1;
+private:
 
-private slots:
-    void SetEditCurrentArgument();
-    void SelectionIntoArgument();
-    void LineEditReturnPressed();
-    void ActivateThisDialog();
+    void                                Init();
+    bool                                getParameters( gp_Mat& theMatrix,
+                                                       gp_XYZ& theMoment );
 
+private:
+      
+    MeasureGUI_1Sel12LineEdit_QTD*      myGrp;
 };
 
 #endif // DIALOGBOX_INERTIA_H