diff --git a/src/gui/edit_tandem_preset_dialog/edit_tandem_preset_dialog.ui b/src/gui/edit_tandem_preset_dialog/edit_tandem_preset_dialog.ui index 0706ba23401f76265557a5a76f8d552badd02be0..35eb9eca741622b8efd8ca9a212d54b893ebb4aa 100644 --- a/src/gui/edit_tandem_preset_dialog/edit_tandem_preset_dialog.ui +++ b/src/gui/edit_tandem_preset_dialog/edit_tandem_preset_dialog.ui @@ -1818,6 +1818,57 @@ <item row="3" column="1"> <widget class="QLineEdit" name="refpctm_edit"/> </item> + <item row="4" column="1"> + <widget class="QLineEdit" name="refmm_edit"/> + </item> + <item row="4" column="0"> + <widget class="QLabel" name="label_51"> + <property name="text"> + <string>Alter fixed modifications</string> + </property> + </widget> + </item> + <item row="5" column="0"> + <widget class="QLabel" name="label_52"> + <property name="text"> + <string>Alter fixed modifications 1</string> + </property> + </widget> + </item> + <item row="4" column="2"> + <widget class="QPushButton" name="refmm_push_button"> + <property name="text"> + <string>?</string> + </property> + </widget> + </item> + <item row="6" column="0"> + <widget class="QLabel" name="label_53"> + <property name="text"> + <string>Alter fixed modifications 2</string> + </property> + </widget> + </item> + <item row="5" column="2"> + <widget class="QPushButton" name="refmm1_push_button"> + <property name="text"> + <string>?</string> + </property> + </widget> + </item> + <item row="6" column="2"> + <widget class="QPushButton" name="refmm2_push_button"> + <property name="text"> + <string>?</string> + </property> + </widget> + </item> + <item row="5" column="1"> + <widget class="QLineEdit" name="refmm1_edit"/> + </item> + <item row="6" column="1"> + <widget class="QLineEdit" name="refmm2_edit"/> + </item> </layout> </item> <item> @@ -2876,6 +2927,54 @@ </hint> </hints> </connection> + <connection> + <sender>refmm_push_button</sender> + <signal>clicked()</signal> + <receiver>EditTandemPresetView</receiver> + <slot>doHelp()</slot> + <hints> + <hint type="sourcelabel"> + <x>1007</x> + <y>320</y> + </hint> + <hint type="destinationlabel"> + <x>1523</x> + <y>-20</y> + </hint> + </hints> + </connection> + <connection> + <sender>refmm1_push_button</sender> + <signal>clicked()</signal> + <receiver>EditTandemPresetView</receiver> + <slot>doHelp()</slot> + <hints> + <hint type="sourcelabel"> + <x>993</x> + <y>356</y> + </hint> + <hint type="destinationlabel"> + <x>1523</x> + <y>-38</y> + </hint> + </hints> + </connection> + <connection> + <sender>refmm2_push_button</sender> + <signal>clicked()</signal> + <receiver>EditTandemPresetView</receiver> + <slot>doHelp()</slot> + <hints> + <hint type="sourcelabel"> + <x>960</x> + <y>396</y> + </hint> + <hint type="destinationlabel"> + <x>993</x> + <y>834</y> + </hint> + </hints> + </connection> </connections> <slots> <slot>doCopy()</slot> @@ -2888,23 +2987,23 @@ <slot>doSelectDir()</slot> </slots> <buttongroups> - <buttongroup name="pqp_button_group"/> - <buttongroup name="suca_button_group"/> - <buttongroup name="sir_button_group"/> - <buttongroup name="sfmmeu_button_group"/> - <buttongroup name="sbi_button_group"/> + <buttongroup name="syi_button_group"/> <buttongroup name="szi_button_group"/> + <buttongroup name="refine_button_group"/> <buttongroup name="spmmeu_button_group"/> + <buttongroup name="pstpb_button_group"/> <buttongroup name="sai_button_group"/> <buttongroup name="pcsemi_button_group"/> - <buttongroup name="spmmie_button_group"/> - <buttongroup name="sci_button_group"/> + <buttongroup name="pqp_button_group"/> + <buttongroup name="sbi_button_group"/> + <buttongroup name="suca_button_group"/> + <buttongroup name="sir_button_group"/> <buttongroup name="scp_button_group"/> - <buttongroup name="pqa_button_group"/> + <buttongroup name="sci_button_group"/> + <buttongroup name="spmmie_button_group"/> <buttongroup name="sxi_button_group"/> + <buttongroup name="sfmmeu_button_group"/> <buttongroup name="sunlw_button_group"/> - <buttongroup name="pstpb_button_group"/> - <buttongroup name="syi_button_group"/> - <buttongroup name="refine_button_group"/> + <buttongroup name="pqa_button_group"/> </buttongroups> </ui> diff --git a/src/gui/edit_tandem_preset_dialog/edittandempresetdialog.cpp b/src/gui/edit_tandem_preset_dialog/edittandempresetdialog.cpp index a25b8313a2b5d03c3fe6efa8c2759384aa5db099..c1659f1139c5782bf33faec460df123644a71f9c 100644 --- a/src/gui/edit_tandem_preset_dialog/edittandempresetdialog.cpp +++ b/src/gui/edit_tandem_preset_dialog/edittandempresetdialog.cpp @@ -354,7 +354,10 @@ void EditTandemPresetDialog::doHelp() { { html_doc.setFileName(":/tandem/resources/html_doc/refpctm.html"); } - +if ((senderObjName == "refmm_push_button")|| (senderObjName == "refmm1_push_button")|| (senderObjName == "refmm2_push_button")) + { + html_doc.setFileName(":/tandem/resources/html_doc/refmm.html"); + } _tandem_params.setParamLabelValue("residue, potential modification mass", ui->rpmm_edit->text()); @@ -492,6 +495,10 @@ void EditTandemPresetDialog::readUi() { _tandem_params.setParamLabelValue("refine, potential N-terminus modifications", ui->refpntm_edit->text()); _tandem_params.setParamLabelValue("refine, potential C-terminus modifications", ui->refpctm_edit->text()); + _tandem_params.setParamLabelValue("refine, modification mass", ui->refmm_edit->text()); + _tandem_params.setParamLabelValue("refine, modification mass 1", ui->refmm1_edit->text()); + _tandem_params.setParamLabelValue("refine, modification mass 2", ui->refmm2_edit->text()); + } catch (pappso::PappsoException & error) { @@ -727,8 +734,11 @@ void EditTandemPresetDialog::populate() { //<note type="input" label="refine, potential C-terminus modifications"></note> ui->refpctm_edit->setText(_tandem_params.getValue("refine, potential C-terminus modifications")); //<note type="input" label="refine, modification mass">57.02146@C</note> + ui->refmm_edit->setText(_tandem_params.getValue("refine, modification mass")); //<note type="input" label="refine, modification mass 1"></note> + ui->refmm1_edit->setText(_tandem_params.getValue("refine, modification mass 1")); //<note type="input" label="refine, modification mass 2"></note> + ui->refmm2_edit->setText(_tandem_params.getValue("refine, modification mass 2")); //<note type="input" label="refine, potential modification mass">15.99491@M</note> //<note type="input" label="refine, potential modification mass 1"></note> //<note type="input" label="refine, potential modification mass 2"></note>