Salome HOME
PAL10953. Use GUI to create hypothesis from a hypotheses set
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_aParameterDlg.h
index 7c9cd19aa9f7af982d2365da5b65751f377650ee..f749aeedd3e5b39f970026f4ca13cfa6cfedfce9 100644 (file)
@@ -39,6 +39,7 @@ class QLabel;
 class QPushButton;
 class SMESHGUI;
 class QWidget;
+class SMESHGUI_FunctionPreview;
 
 //=================================================================================
 // class    : SMESHGUI_aParameterDlg
@@ -49,21 +50,28 @@ class SMESHGUI_aParameterDlg : public QDialog
     Q_OBJECT
 
 public:
-    SMESHGUI_aParameterDlg (std::list<SMESHGUI_aParameterPtr> params,
-                           QWidget*                          parent = 0,
+    SMESHGUI_aParameterDlg( SMESHGUI*,
+                           std::list<SMESHGUI_aParameterPtr> params,
                            QString                           title  = QString::null,
                            bool                              modal  = TRUE);
 
     ~SMESHGUI_aParameterDlg();
 
     /* Parameter function */
-    static bool Parameters (std::list<SMESHGUI_aParameterPtr> params, const char *aTitle);
+    static bool Parameters( SMESHGUI*, std::list<SMESHGUI_aParameterPtr> params, const char *aTitle);
 
 protected:
     void init();
 
+protected slots:
+    virtual void onValueChanged();
+    
 private slots:
     void ClickOnOk();
+    void UpdateShown( const SMESHGUI_aParameterPtr, QWidget* );
+
+private:
+    void FunctionPreview( const SMESHGUI_aParameterPtr, QWidget* );
 
 private:
     SMESHGUI*       mySMESHGUI;
@@ -71,8 +79,9 @@ private:
     QPushButton*    myButtonOk;
     QPushButton*    myButtonCancel;
 
-    std::list<QWidget*>               mySpinList;
+    std::list<QWidget*>               mySpinList, myLabelList;
     std::list<SMESHGUI_aParameterPtr> myParamList;
+    SMESHGUI_FunctionPreview* myPreview;
 };
 
 #endif // SMESHGUI_aParameterDlg.h