Salome HOME
LOT 15
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_StricklerTableDlg.h
index 70eb3505e9030d6368d43cfa0657f28b7747ce22..11704db432d2c253edc8ce99ee5509c53326df41 100644 (file)
@@ -21,8 +21,9 @@
 
 #include "HYDROGUI_InputPanel.h"
 #include <QAbstractItemDelegate>
+#include <Standard_Type.hxx>
 
-class Handle_HYDROData_StricklerTable;
+class HYDROData_StricklerTable;
 
 class QGroupBox;
 class QLineEdit;
@@ -52,8 +53,8 @@ public:
     bool                       isTableNameReadOnly() const;
     void                       setTableNameReadOnly( bool );
 
-    void                       getGuiData( Handle_HYDROData_StricklerTable& theTable ) const;
-    void                       setGuiData( const Handle_HYDROData_StricklerTable& theTable );
+    void                       getGuiData( Handle(HYDROData_StricklerTable)& theTable ) const;
+    void                       setGuiData( const Handle(HYDROData_StricklerTable)& theTable );
 
 protected:
     void                       updateControls();
@@ -72,14 +73,17 @@ Q_SIGNALS:
     void                       fileSelected( const QString& theFileName );
 
 private:
-    int                        myType;
-    QLineEdit*                 myFileName;   //!< Source Strickler table file name input field
-    QLineEdit*                 myName;       //!< The Strickler table name input field
-    QLineEdit*                 myAttrName;   //!< The Strickler table attribute's name input field
-    QTableWidget*              myTable;      //!< The table of Strickler coefficients
-    QToolButton*               myAddBtn;     //!< The add Strickler coefficient button
-    QToolButton*               myRemoveBtn;  //!< The remove Strickler coefficient button
-    QToolButton*               myClearBtn;   //!< The clear all Strickler coefficients button
+  friend class test_HYDROData_StricklerTable;
+
+private:
+  int                        myType;
+  QLineEdit*                 myFileName;   //!< Source Strickler table file name input field
+  QLineEdit*                 myName;       //!< The Strickler table name input field
+  QLineEdit*                 myAttrName;   //!< The Strickler table attribute's name input field
+  QTableWidget*              myTable;      //!< The table of Strickler coefficients
+  QToolButton*               myAddBtn;     //!< The add Strickler coefficient button
+  QToolButton*               myRemoveBtn;  //!< The remove Strickler coefficient button
+  QToolButton*               myClearBtn;   //!< The clear all Strickler coefficients button
 };
 
 class HYDROGUI_ColorDelegate : public QAbstractItemDelegate