OpenMS
Loading...
Searching...
No Matches
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.
 
 ~TheoreticalSpectrumGenerationDialog () override
 Destructor.
 
const MSSpectrumgetSpectrum () const
 returns the calculated spectrum
 
const String getSequence () const
 returns the input sequence (is public for TOPPView)
 

Protected Slots

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

Private Member Functions

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

Private Attributes

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

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 class 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 Symbol 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.