1 #ifndef QXRDFITPARAMETER_H
2 #define QXRDFITPARAMETER_H
37 #define QXRD_FIT_PARAMETER(propname) \
39 double get_##propname() const \
41 return m_##propname.value(); \
44 void set_##propname(double val) \
46 m_##propname.setValue(val); \
49 double def_##propname() const \
51 return m_##propname.defaultValue(); \
54 void setdef_##propname(double val) \
56 m_##propname.setDefaultValue(val); \
59 void reset_##propname() \
61 m_##propname.resetValue(); \
64 QxrdFitParameter *prop_##propname() { \
65 return &m_##propname; \
69 QxrdFitParameter m_##propname;
72 #endif // QXRDFITPARAMETER_H
double lowerLimit() const
void setUpperLimit(double ul)
void writeSettings(QSettings *settings, QString section)
double upperLimit() const
void setLimited(bool lim)
QSharedPointer< QxrdFitParameter > QxrdFitParameterPtr
QxrdFitParameter(QcepSettingsSaverWPtr saver, QcepObject *parent, const char *name, QVariant value, QString toolTip)
void setLowerLimit(double ll)
void readSettings(QSettings *settings, QString section)
QWeakPointer< QcepSettingsSaver > QcepSettingsSaverWPtr