15 #ifndef BORNAGAIN_GUI_MODEL_DESCRIPTOR_UINTDESCRIPTOR_H
16 #define BORNAGAIN_GUI_MODEL_DESCRIPTOR_UINTDESCRIPTOR_H
18 #include "Fit/Param/RealLimits.h"
54 function<
void(uint)> setter,
function<uint()> getter,
55 const variant<QString, Unit>&
unit);
60 function<uint()> getter,
const variant<QString, Unit>&
unit);
64 operator uint()
const;
69 function<void(uint)>
set =
nullptr;
70 function<uint()>
get =
nullptr;
72 function<QString()>
path =
nullptr;
Base class for a GUI data item.
Describes properties of a uint value which are necessary to allow GUI representation,...
QString label
A label text (short, no trailing colon)
function< void(uint)> set
function to set the value
variant< QString, Unit > unit
Unit of the value (internal unit only!)
QString tooltip
Tooltip text.
RealLimits limits
Limits of the value.
function< QString()> path
Path describing this value. Used e.g. for undo/redo.
function< uint()> get
function to get the current value