| | |
The ToleranceWidget class provides a widget for the configuration of the mass tolerance. More...
| Header: | #include <MsXpS/libXpertMassGui/ToleranceWidget.hpp> |
| Inherits: | QWidget |
| ToleranceWidget(QWidget *parent_p, const QString &config_settings_file_path) | |
| ToleranceWidget(QWidget *parent, const QString &config_settings_file_path, double nominal, MsXpS::libXpertMassCore::Tolerance::Type type) | |
| virtual | ~ToleranceWidget() |
| double | getNominal() const |
| MsXpS::libXpertMassCore::Tolerance::Type | getType() const |
| void | readSettings(const QString &config_settings_file_path) |
| void | setNominal(double nominal) |
| void | setType(MsXpS::libXpertMassCore::Tolerance::Type type) |
| void | writeSettings(const QString &config_settings_file_path) |
| void | nominalDoubleSpinBoxValueChanged(double value) |
| void | typeComboBoxValueChanged(const QString &text) |
This composite widget contains all the widgets and all the logic required to fully configure the mass peak tolerance.
Constructs a ToleranceWidget instance.
Constructs a ToleranceWidget instance.
[virtual noexcept] ToleranceWidget::~ToleranceWidget()Destructs this ToleranceWidget instance.
Returns the Tolerance nominal value.
Returns the Tolerance type .
[slot] void ToleranceWidget::nominalDoubleSpinBoxValueChanged(double value)Signals that the nominal value is now value.
Reads the settings of this widget from config_settings_file_path.
Tolerance settings are tried from the settings. If not found, the default values for nominal and tolerance type are set.
Sets the Tolerance nominal value to nominal.
Sets the Tolerance type to type.
[slot] void ToleranceWidget::typeComboBoxValueChanged(const QString &text)Signals that the Tolerance type is now described as text.
Writes the settings of this widget to config_settings_file_path for later restoration.