15 #ifndef BORNAGAIN_GUI_MODEL_JOB_FITPARAMETERITEM_H
16 #define BORNAGAIN_GUI_MODEL_JOB_FITPARAMETERITEM_H
18 #include "Fit/Param/AttLimits.h"
30 static constexpr
auto P_TYPE{
"Type"};
32 static constexpr
auto P_MIN{
"Min"};
33 static constexpr
auto P_MAX{
"Max"};
34 static constexpr
auto T_LINK{
"Link tag"};
37 static constexpr
auto M_TYPE{
"FitParameter"};
59 void addLink(
const QString& title,
const QString& link);
62 QVector<FitParameterLinkItem*>
linkItems()
const;
63 QStringList
links()
const;
Defines class SessionItem.
FitParameterItems is a collection of items to define fit parameters in GUI.
SessionItem * minimumItem() const
void setMaximum(double maximum)
SessionItem * maximumItem() const
QVector< FitParameterLinkItem * > linkItems() const
void setLimitEnabled(const QString &name, bool enabled)
Set limit property with given name to the enabled state.
bool isUpperLimited() const
void setStartValue(double start_value)
SessionItem * typeItem() const
void removeLink(const QString &link)
QStringList links() const
static constexpr auto T_LINK
static constexpr auto M_TYPE
void onTypeChange()
Enables/disables min, max properties on FitParameterItem's type.
static constexpr auto P_MIN
static constexpr auto P_START_VALUE
bool isLowerLimited() const
double startValue() const
void setMinimum(double minimum)
void initMinMaxValues(const RealLimits &limits)
Inits P_MIN and P_MAX taking into account current value and external limits.
QString parameterType() const
SessionItem * startValueItem() const
static constexpr auto P_MAX
void addLink(const QString &title, const QString &link)
AttLimits attLimits() const
Constructs Limits correspodning to current GUI settings.
static constexpr auto P_TYPE
The FitParameterLinkItem class holds a link to ParameterItem in tuning tree.
Base class for a GUI data item.
RealLimits limits() const
QString const & name(EShape k)