|
BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Defines GUI::Util namespace.
Definition in file WidgetUtils.h.
Go to the source code of this file.
Namespaces | |
| GUI | |
| GUI::Util | |
Functions | |
| ScientificSpinBox * | GUI::Util::createScientificSpinBox (QFormLayout *parentLayout, const DoubleDescriptor &d, std::function< void(double)> slot=nullptr) |
| Create a label and a scientific spin box with the information found in a DoubleDescriptor and place them in a row in a form layout. More... | |
| template<typename T > | |
| QComboBox * | GUI::Util::createSelectionCombo (QWidget *parent, const SelectionDescriptor< T > d, std::function< void(int)> slot=nullptr) |
| Create a combo box with the information found in a selection descriptor. More... | |
| DoubleSpinBox * | GUI::Util::createSpinBox (QFormLayout *parentLayout, const DoubleDescriptor &d, std::function< void(double)> slot=nullptr) |
| Create a label and a spin box with the information found in a DoubleDescriptor and place them in a row in a form layout. More... | |
| QSpinBox * | GUI::Util::createSpinBox (QFormLayout *parentLayout, const UIntDescriptor &d) |
| Create a label and a spin box with the information found in a UIntDescriptor and place them in a row in a form layout. More... | |
| QSpinBox * | GUI::Util::createSpinBox (QWidget *parent, const UIntDescriptor &d, std::function< void(uint)> slot=nullptr) |
| Create a spin box with the information found in a UIntDescriptor. More... | |
| QString | GUI::Util::labelWithUnit (const DoubleDescriptor &d) |
| Create a label with an optional unit in brackets, both taken from the given descriptor. More... | |
| QString | GUI::Util::labelWithUnit (const QString &label, std::variant< QString, Unit > unit) |
| Create a label with an optional unit in brackets. More... | |