#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
void setObjectName( const QString& theName );
QString getObjectName() const;
- void setPolylineName( const QString& theName );
- QString getPolylineName() const;
+ void setEditedObject( const Handle(HYDROData_CalculationCase) theCase );
- void setZones( const QStringList& theZones );
- void setSelectedZones( const QStringList& theZones );
- QStringList getSelectedZones() const;
+ void setGeomObjects( const QStringList& theObjects );
+ void setSelectedGeomObjects( const QStringList& theObjects );
+ QStringList getSelectedGeomObjects() const;
- void setRegions( const QStringList& theRegions );
- QStringList getRegions() const;
-
- void setSplitZonesPrefix( const QString& theName );
- QString getSplitZonesPrefix() const;
+ public slots:
+ void onEmptyName();
+ void onAlreadyExists( QString theName );
+private:
-signals:
- void SplitZones();
+ QWizardPage* createObjectsPage();
+ QWizardPage* createZonesPage();
-private:
QGroupBox* myObjectNameGroup;
QLineEdit* myObjectName;
+ HYDROGUI_NameValidator* myValidator;
- HYDROGUI_ObjSelector* myBndPolyline;
+ QListWidget* myGeomObjects;
- QListWidget* myZones;
- QListWidget* myRegions;
- QLineEdit* mySplittedZonesPrefix;
+ HYDROGUI_DataBrowser* myBrowser;
+ Handle(HYDROData_CalculationCase) myEditedObject;
+ QComboBox* myBathymetryChoice;
};
#endif