OpenMS
TheoreticalSpectrumGenerationDialog Class Reference

Dialog which allows to enter an AA or NA sequence and generates a theoretical spectrum for it. More...

#include <OpenMS/VISUAL/DIALOGS/TheoreticalSpectrumGenerationDialog.h>

Inheritance diagram for TheoreticalSpectrumGenerationDialog:
[legend]
Collaboration diagram for TheoreticalSpectrumGenerationDialog:
[legend]

Classes

struct  CheckBox
 struct for all information about a check box of an ion More...
 

Public Types

enum class  SequenceType { PEPTIDE , RNA , METABOLITE }
 type of the input sequence (corresponds to the value of the combo box 'ui_->seq_type') More...
 

Public Member Functions

 TheoreticalSpectrumGenerationDialog ()
 Constructor. More...
 
 ~TheoreticalSpectrumGenerationDialog () override
 Destructor. More...
 
const MSSpectrumgetSpectrum () const
 returns the calculated spectrum More...
 
const String getSequence () const
 returns the input sequence (is public for TOPPView) More...
 

Protected Slots

void modelChanged_ ()
 for isotope model changes More...
 
void seqTypeSwitch_ ()
 for sequence type changes (combo box) More...
 
void listWidgetItemClicked_ (QListWidgetItem *item)
 change check state of check box on widget click More...
 
void calculateSpectrum_ ()
 calculates the spectrum More...
 

Private Member Functions

Param getParam_ () const
 calculate parameters from UI elements More...
 
void updateIonTypes_ ()
 

Private Attributes

Ui::TheoreticalSpectrumGenerationDialogTemplate * ui_
 UI. More...
 
SequenceType seq_type_
 save current sequence setting More...
 
const std::array< CheckBox, 12 > check_boxes_
 
MSSpectrum spec_
 member to save the calculated spectrum to More...
 

Friends

class TestTSGDialog
 

Detailed Description

Dialog which allows to enter an AA or NA sequence and generates a theoretical spectrum for it.

Member Enumeration Documentation

◆ SequenceType

enum SequenceType
strong

type of the input sequence (corresponds to the value of the combo box 'ui_->seq_type')

Enumerator
PEPTIDE 
RNA 
METABOLITE 

Constructor & Destructor Documentation

◆ TheoreticalSpectrumGenerationDialog()

◆ ~TheoreticalSpectrumGenerationDialog()

Destructor.

Member Function Documentation

◆ calculateSpectrum_

void calculateSpectrum_ ( )
protectedslot

calculates the spectrum

◆ getParam_()

Param getParam_ ( ) const
private

calculate parameters from UI elements

◆ getSequence()

const String getSequence ( ) const

returns the input sequence (is public for TOPPView)

Referenced by TOPPViewBase::showSpectrumGenerationDialog().

◆ getSpectrum()

const MSSpectrum& getSpectrum ( ) const

returns the calculated spectrum

Referenced by TOPPViewBase::showSpectrumGenerationDialog().

◆ listWidgetItemClicked_

void listWidgetItemClicked_ ( QListWidgetItem *  item)
protectedslot

change check state of check box on widget click

◆ modelChanged_

void modelChanged_ ( )
protectedslot

for isotope model changes

◆ seqTypeSwitch_

void seqTypeSwitch_ ( )
protectedslot

for sequence type changes (combo box)

◆ updateIonTypes_()

void updateIonTypes_ ( )
private

iterates through 'check_boxes_' and en-/disables check boxes and corresponding spin boxes (and their labels)

Friends And Related Function Documentation

◆ TestTSGDialog

friend class TestTSGDialog
friend

Member Data Documentation

◆ check_boxes_

const std::array<CheckBox, 12> check_boxes_
private

array of TSGDialog::CheckBox

Note: Ordering has to be the same as in the UI!

◆ seq_type_

SequenceType seq_type_
private

save current sequence setting

◆ spec_

MSSpectrum spec_
private

member to save the calculated spectrum to

◆ ui_

Ui::TheoreticalSpectrumGenerationDialogTemplate* ui_
private

UI.