#define HYDROGUI_CALCULATIONDLG_H
#include "HYDROGUI_Wizard.h"
-#include <HYDROData_Calculation.h>
+#include <HYDROData_CalculationCase.h>
class HYDROGUI_ObjSelector;
class QGroupBox;
class QListWidget;
class QComboBox;
class HYDROGUI_DataBrowser;
+class HYDROGUI_NameValidator;
class HYDROGUI_CalculationDlg : public HYDROGUI_Wizard
{
void setObjectName( const QString& theName );
QString getObjectName() const;
- void setEditedObject( const Handle(HYDROData_Calculation) theCase );
+ 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();
QGroupBox* myObjectNameGroup;
QLineEdit* myObjectName;
+ HYDROGUI_NameValidator* myValidator;
QListWidget* myGeomObjects;
HYDROGUI_DataBrowser* myBrowser;
- Handle(HYDROData_Calculation) myEditedObject;
+ Handle(HYDROData_CalculationCase) myEditedObject;
QComboBox* myBathymetryChoice;
};