Salome HOME
Name validator is added to the Calculation Case dialog.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_CalculationDlg.h
index 44b1b8ca56edd81efb6dcacf763a9ef51b2e5586..37206ede90ca26759bd3511c617c2a76407e077d 100644 (file)
 #ifndef HYDROGUI_CALCULATIONDLG_H
 #define HYDROGUI_CALCULATIONDLG_H
 
-#include "HYDROGUI_InputPanel.h"
+#include "HYDROGUI_Wizard.h"
+#include <HYDROData_CalculationCase.h>
 
+class HYDROGUI_ObjSelector;
 class QGroupBox;
 class QLineEdit;
+class QListWidget;
+class QComboBox;
+class HYDROGUI_DataBrowser;
+class HYDROGUI_NameValidator;
 
-class HYDROGUI_CalculationDlg : public HYDROGUI_InputPanel
+class HYDROGUI_CalculationDlg : public HYDROGUI_Wizard
 {
   Q_OBJECT
 
@@ -41,10 +47,29 @@ public:
   void                       setObjectName( const QString& theName );
   QString                    getObjectName() const;
 
+  void                       setEditedObject( const Handle(HYDROData_CalculationCase) theCase );
+
+  void                       setGeomObjects( const QStringList& theObjects );
+  void                       setSelectedGeomObjects( const QStringList& theObjects );
+  QStringList                getSelectedGeomObjects() const;
+
+  public slots:
+    void                     onEmptyName();
+    void                     onAlreadyExists( QString theName );
 private:
+
+  QWizardPage*               createObjectsPage();
+  QWizardPage*               createZonesPage();
+
   QGroupBox*                 myObjectNameGroup;
   QLineEdit*                 myObjectName;
+  HYDROGUI_NameValidator*    myValidator;
+
+  QListWidget*               myGeomObjects;
 
+  HYDROGUI_DataBrowser*         myBrowser;
+  Handle(HYDROData_CalculationCase) myEditedObject;
+  QComboBox*                    myBathymetryChoice;
 };
 
 #endif