| 58 | } |
| 59 | |
| 60 | void ModificationVisualizer::store() |
| 61 | { |
| 62 | try |
| 63 | { |
| 64 | ptr_->setComment(treatmentcomment_->toPlainText()); |
| 65 | ptr_->setReagentName(modificationname_->text()); |
| 66 | ptr_->setMass(modificationmass_->text().toFloat()); |
| 67 | ptr_->setSpecificityType((Modification::SpecificityType)modificationspecificity_->currentIndex()); |
| 68 | ptr_->setAffectedAminoAcids(modificationAA_->text()); |
| 69 | temp_ = (*ptr_); |
| 70 | } |
| 71 | catch (exception & e) |
| 72 | { |
| 73 | std::cout << "Error while trying to store the new modification data. " << e.what() << endl; |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | void ModificationVisualizer::undo_() |
| 78 | { |
nothing calls this directly
no test coverage detected