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
25 /// \param theParent a workshop object instance
26 /// \param theId an Id of a feature
27 /// \param theDescription an XML description of the feature
28 ModuleBase_Dialog(ModuleBase_IWorkshop* theParent, const QString& theId,
29 const std::string& theDescription);
31 /// Redefinition of virtual method
32 virtual void accept();
35 /// Redefinition of virtual method
36 virtual void showEvent(QShowEvent* theEvent);
40 /// Initialising of the widget
41 void initializeWidget(ModuleBase_ModelWidget* theWidget);
46 /// XML description of the feature
47 std::string myDescription;
49 /// An instance of workshop object
50 ModuleBase_IWorkshop* myWorkshop;
52 /// The feature instance
55 /// List of created widgets
56 QList<ModuleBase_ModelWidget*> myWidgets;
58 /// Pointer on active widget
59 ModuleBase_ModelWidget* myActiveWidget;