1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModuleBase_ModelDialogWidget.h
4 // Created: 01 June 2016
5 // Author: Vitaly SMETANNIKOV
7 #ifndef MODULEBASE_MODELDIALOGWIDGET_H
8 #define MODULEBASE_MODELDIALOGWIDGET_H
10 #include "ModuleBase.h"
11 #include "ModuleBase_ModelWidget.h"
13 class QDialogButtonBox;
15 class MODULEBASE_EXPORT ModuleBase_ModelDialogWidget : public ModuleBase_ModelWidget
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) {}
26 /// Set general buttons from dialog
27 /// \param theButtons the dialog buttons
28 void setDialogButtons(QDialogButtonBox* theButtons) { myOkCancelBtn = theButtons; }
32 /// Contains dialog buttons to enable/disable Ok and Cancel buttons
33 QDialogButtonBox* myOkCancelBtn;