Salome HOME
Update GUI documentation for bugs 16559
[modules/geom.git] / src / MeasureGUI / MeasureGUI_Skeleton.h
index 015951864065e23d4e1aad8688bdebaf0dd17177..79d5ade2166926092139a9453e6542ec86133efa 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
 //
 //
 //
 #ifndef MEASUREGUI_SKELETON_H
 #define MEASUREGUI_SKELETON_H
 
-#include "MeasureGUI_Skeleton_QTD.h"
+#include "GEOM_MeasureGUI.hxx"
 
-#include "GEOMBase.h"
+#include "MeasureGUI_Skeleton_QTD.h"
+#include "GEOMBase_Helper.h"
 
-#include <qwidget.h>
-#include <qgroupbox.h>
-#include <qlineedit.h>
-#include <qlayout.h>
-#include <qradiobutton.h>
-#include <qbuttongroup.h>
+class GeometryGUI;
+class QWidget;
+class QLineEdit;
+class QPushButton;
+class GEOM_Displayer;
 
-class MeasureGUI_Skeleton : public MeasureGUI_Skeleton_QTD
+class GEOM_MEASUREGUI_EXPORT 
+    MeasureGUI_Skeleton : public MeasureGUI_Skeleton_QTD,
+                          public GEOMBase_Helper
 { 
     Q_OBJECT
 
 public:
-    MeasureGUI_Skeleton(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
-    ~MeasureGUI_Skeleton();
+                              MeasureGUI_Skeleton( GeometryGUI*      GUI,
+                                                  QWidget*          parent,
+                                                   const char*       name );
+                              ~MeasureGUI_Skeleton();
 
-private :
-    void Init(SALOME_Selection* Sel);
+protected slots:
+
+    virtual void              ClickOnCancel();
+    virtual void              ClickOnHelp(); 
+    virtual void              DeactivateActiveDialog();
+    virtual void              ActivateThisDialog();
+    virtual void              SelectionIntoArgument();
+    virtual void              LineEditReturnPressed();
+    virtual void              SetEditCurrentArgument();                              
 
 protected:
-    void closeEvent(QCloseEvent* e);
 
-    TopoDS_Shape mySimulationTopoDs;    /* Shape used for simulation display */
-    QLineEdit* myEditCurrentArgument;   /* Current LineEdit */
-    SALOME_Selection* mySelection;      /* User shape selection */
-    GEOM::GEOM_Gen_var myGeom;          /* Current GeomI object */
-    GEOMBase* myGeomBase;
-    GEOMContext* myGeomGUI;  /* Current GeomGUI object */
+    void                      Init();
 
-protected slots:
-    void ClickOnCancel();
-    void LineEditReturnPressed();
-    void DeactivateActiveDialog();
-    void ActivateThisDialog();
+    void                      enterEvent( QEvent* e );
+    void                      closeEvent( QCloseEvent* e );
+    void                      keyPressEvent( QKeyEvent* e );
+    void                      redisplayPreview();
+    GEOM_Displayer*           getDisplayer();
 
+    virtual bool              isValid( QString& msg );
+    virtual SALOME_Prs*       buildPrs();
+    virtual void              processObject();
+    virtual void              activateSelection();
+
+    virtual GEOM::GEOM_IOperations_ptr createOperation();
+
+protected:    
+    
+    QPushButton*              mySelBtn;
+    QLineEdit*                mySelEdit;
+    GEOM::GEOM_Object_var     myObj;
+    
+    GeometryGUI*              myGeomGUI;
+    GEOM_Displayer*           myDisplayer;
+
+    QString                   myHelpFileName;
 };
 
 #endif // MEASUREGUI_SKELETON_H
+
+
+
+
+
+
+
+
+
+
+