BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
WidgetUtils.h File Reference

Description

Defines GUI::Util namespace.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file WidgetUtils.h.

Include dependency graph for WidgetUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 GUI
 
 GUI::Util
 

Functions

ScientificSpinBoxGUI::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...
 
DoubleSpinBoxGUI::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...