Salome HOME
Split circle. Remain coincidence with newly created arc (issue #1725)
[modules/shaper.git] / src / ModuleBase / ModuleBase_ModelDialogWidget.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModuleBase_ModelDialogWidget.h
4 // Created:     01 June 2016
5 // Author:      Vitaly SMETANNIKOV
6
7 #ifndef MODULEBASE_MODELDIALOGWIDGET_H
8 #define MODULEBASE_MODELDIALOGWIDGET_H
9
10 #include "ModuleBase.h"
11 #include "ModuleBase_ModelWidget.h"
12
13 class QDialogButtonBox;
14
15 class MODULEBASE_EXPORT ModuleBase_ModelDialogWidget : public ModuleBase_ModelWidget
16 {
17 Q_OBJECT
18 public:
19   /// Constructor
20   /// \param theParent the parent object
21   /// \param theData the widget configuration. The attribute of the model widget is obtained from
22   /// a low-level API for reading xml definitions of widgets
23   ModuleBase_ModelDialogWidget(QWidget* theParent, const Config_WidgetAPI* theData) :
24                                 ModuleBase_ModelWidget(theParent, theData) {}
25
26   /// Set general buttons from dialog
27   /// \param theButtons the dialog buttons
28   void setDialogButtons(QDialogButtonBox* theButtons) { myOkCancelBtn = theButtons; }
29
30 protected:
31
32   /// Contains dialog buttons to enable/disable Ok and Cancel buttons
33   QDialogButtonBox* myOkCancelBtn;
34 };
35
36 #endif