1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 #ifndef ModuleBase_Dialog_H
4 #define ModuleBase_Dialog_H
6 #include "ModuleBase.h"
7 #include <ModelAPI_Feature.h>
13 class ModuleBase_IWorkshop;
14 class ModuleBase_ModelWidget;
18 * A dialog box which is used for modal dialog box feature interface
20 class ModuleBase_Dialog : public QDialog
24 ModuleBase_Dialog(ModuleBase_IWorkshop* theParent, const QString& theId,
25 const std::string& theDescription);
27 virtual void accept();
30 virtual void showEvent(QShowEvent* theEvent);
34 void initializeWidget(ModuleBase_ModelWidget* theWidget);
37 std::string myDescription;
38 ModuleBase_IWorkshop* myWorkshop;
40 QList<ModuleBase_ModelWidget*> myWidgets;
41 ModuleBase_ModelWidget* myActiveWidget;