1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: XGUI_DeflectionDialog.hxx
4 // Created: 27 Jul 2016
5 // Author: Natalia ERMOLAEVA
7 #ifndef XGUI_DeflectionDialog_H
8 #define XGUI_DeflectionDialog_H
19 * A class of dialog to chose a deflection value. The deflection value is in range [0, 1]
21 class XGUI_DeflectionDialog : public QDialog
26 /// \param theParent a parent widget for the dialog
27 XGUI_EXPORT XGUI_DeflectionDialog(QWidget* theParent);
29 XGUI_EXPORT virtual ~XGUI_DeflectionDialog() {};
31 /// Initializes the dialog with the given value.
32 /// \param theValue the deflection value
33 void setDeflection(const double& theDeflection);
35 /// Returns the current deflection value.
36 /// \return a double value
37 double getDeflection() const;
40 QButtonGroup* myButtonGroup; /// a group, contained random and certain color radio button choice
41 QDoubleSpinBox* myDeflection; /// a deflection value