Skip to content
Snippets Groups Projects
Commit 2bc5921b authored by Langella Olivier's avatar Langella Olivier
Browse files

missing tandem parameters added : neutral loss mass, window, suppresion noise routine

parent 17adc62b
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ void EditTandemPresetDialog::setTandemParametersFile(const TandemParametersFile
_preset_directory = settings.value("path/tandemrun_preset_directory", "").toString();
_p_tandem_preset_file->setDirectory(QDir(_preset_directory));
}
fillPresetComboBox();
populate();
......@@ -223,6 +223,18 @@ void EditTandemPresetDialog::doHelp() {
{
html_doc.setFileName(":/tandem/resources/html_doc/sunlw.html");
}
if(senderObjName == "snlm_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/snlm.html");
}
if(senderObjName == "snlw_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/snlw.html");
}
if(senderObjName == "suns_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/suns.html");
}
if(senderObjName == "sdr_push_button")
{
html_doc.setFileName(":/tandem/resources/html_doc/sdr.html");
......@@ -492,6 +504,14 @@ void EditTandemPresetDialog::readUi() {
_tandem_params.setParamLabelValue("spectrum, use neutral loss window", "yes");
}
_tandem_params.setParamLabelValue("spectrum, neutral loss mass", ui->snlm_edit->text());
_tandem_params.setParamLabelValue("spectrum, neutral loss window", ui->snlw_edit->text());
_tandem_params.setParamLabelValue("spectrum, use noise suppression", "no");
if (ui->suns_yes_radio_button->isChecked()) {
_tandem_params.setParamLabelValue("spectrum, use noise suppression", "yes");
}
_tandem_params.setParamLabelValue("spectrum, dynamic range", ui->sdr_edit->text());
_tandem_params.setParamLabelValue("spectrum, total peaks", ui->stp_edit->text());
_tandem_params.setParamLabelValue("spectrum, minimum peaks", ui->smp_edit->text());
......@@ -692,6 +712,20 @@ void EditTandemPresetDialog::populate() {
ui->sunlw_no_radio_button->setChecked(true);
}
//<note type="input" label="spectrum, neutral loss mass">18.01057</note>
ui->snlm_edit->setText(_tandem_params.getValue("spectrum, neutral loss mass"));
//<note type="input" label="spectrum, neutral loss window">0.02</note>
ui->snlw_edit->setText(_tandem_params.getValue("spectrum, neutral loss window"));
//<note type="input" label="spectrum, use noise suppression">yes</note>
ui->suns_yes_radio_button->setChecked(true);
ui->suns_no_radio_button->setChecked(false);
if ( _tandem_params.getValue("spectrum, use noise suppression") == "no" ) { // -1 for not found
ui->suns_yes_radio_button->setChecked(false);
ui->suns_no_radio_button->setChecked(true);
}
//<note type="input" label="spectrum, dynamic range">100.0</note>
ui->sdr_edit->setText(_tandem_params.getValue("spectrum, dynamic range"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment