OpenMS
Loading...
Searching...
No Matches
ProteinIdentificationVisualizer Class Reference

Class that displays all meta information for ProteinIdentification objects. More...

#include <OpenMS/VISUAL/VISUALIZER/ProteinIdentificationVisualizer.h>

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

Public Slots

void store () override
 
- Public Slots inherited from BaseVisualizerGUI
virtual void store ()=0
 Saves the changes made in the GUI to the object.
 

Public Member Functions

 ProteinIdentificationVisualizer (bool editable=false, QWidget *parent=0, MetaDataBrowser *caller=nullptr)
 Constructor.
 
void load (ProteinIdentification &s, int tree_item_id)
 Loads the meta data from the object to the viewer. Gets the id of the item in the tree as parameter.
 
- Public Member Functions inherited from BaseVisualizerGUI
 BaseVisualizerGUI (bool editable=false, QWidget *parent=nullptr)
 Constructor.
 
bool isEditable () const
 Returns if the values are editable.
 
- Public Member Functions inherited from BaseVisualizer< ProteinIdentification >
void load (ProteinIdentification &o)
 Loads the object that is to be edited.
 
virtual ~BaseVisualizer ()
 

Protected Slots

void updateTree_ ()
 Updates the tree by calling MetaDataBrowser::updateProteinHits()
 
void undo_ ()
 Undo the changes made in the GUI.
 

Protected Attributes

MetaDataBrowserpidv_caller_
 Pointer to MetaDataBrowser.
 
int tree_id_
 The id of the item in the tree.
 
Edit fields and buttons
QLineEditengine_
 
QLineEditengine_version_
 
QLineEditidentification_date_
 
QLineEditidentification_threshold_
 
QLineEditidentifier_
 
QLineEditscore_type_
 
QComboBox * higher_better_
 
QLineEditdb_
 
QLineEditdb_version_
 
QLineEdittaxonomy_
 
QLineEditcharges_
 
QLineEditmissed_cleavages_
 
QLineEditpeak_tolerance_
 
QLineEditprecursor_tolerance_
 
QComboBox * mass_type_
 
QLineEditenzyme_
 
QLineEditfilter_threshold_
 Threshold for filtering by score.
 
- Protected Attributes inherited from BaseVisualizerGUI
QPushButton * undo_button_
 Undo button.
 
QGridLayout * mainlayout_
 The main layout.
 
UInt row_
 Counter for the current grid row.
 
bool editable_
 Edit flag.
 
- Protected Attributes inherited from BaseVisualizer< ProteinIdentification >
ProteinIdentificationptr_
 Pointer to the object that is currently edited.
 
ProteinIdentification temp_
 Copy of current object used to restore the original values.
 

Additional Inherited Members

- Signals inherited from BaseVisualizerGUI
void sendStatus (std::string status)
 Sends a status message, if date is not in proper format.
 
- Protected Member Functions inherited from BaseVisualizerGUI
void addLabel_ (const QString &label)
 Adds a label to the grid layout.
 
void addLabel_ (const QString &label, UInt row)
 Adds a label to a certain row.
 
void addLineEdit_ (QLineEdit *&ptr, QString label)
 Adds a line edit field with label to the grid layout.
 
void addIntLineEdit_ (QLineEdit *&ptr, QString label)
 Adds a line edit field to the grid layout including a int validator.
 
void addDoubleLineEdit_ (QLineEdit *&ptr, QString label)
 Adds a line edit field to the grid layout including a double validator.
 
void addLineEditButton_ (const QString &label, QLineEdit *&ptr1, QPushButton *&ptr2, const QString &buttonlabel)
 Adds a line edit field with label and button to the next free position in the grid.
 
void addListView_ (QListWidget *&ptr, QString label)
 Adds a list edit field to the grid layout.
 
void addTextEdit_ (QTextEdit *&ptr, QString label)
 Adds a text edit field to the grid layout.
 
void addComboBox_ (QComboBox *&ptr, QString label)
 Adds a drop-down field to the grid layout.
 
void addBooleanComboBox_ (QComboBox *&ptr, QString label)
 Adds a boolean drop-down field to the grid layout ( 'true'=1, 'false'=0 ).
 
void fillComboBox_ (QComboBox *&ptr, const std::string *items, int item_count)
 Fills a combo box with string items (the number of strings is determined by item_count).
 
void addVSpacer_ ()
 Adds vertical spacer.
 
void addButton_ (QPushButton *&ptr, const QString &label)
 Adds a button to the next free position in the grid.
 
void add2Buttons_ (QPushButton *&ptr1, const QString &label1, QPushButton *&ptr2, const QString &label2)
 Adds two buttons in a row.
 
void addSeparator_ ()
 Adds a horizontal line as a separator.
 
void finishAdding_ ()
 Adds buttons common to all visualizers.
 
- Protected Member Functions inherited from BaseVisualizer< ProteinIdentification >
virtual void update_ ()
 Updates the GUI from the temp_ variable.
 

Detailed Description

Class that displays all meta information for ProteinIdentification objects.

This class provides all functionality to view the meta information of an object of type Identification.

Constructor & Destructor Documentation

◆ ProteinIdentificationVisualizer()

ProteinIdentificationVisualizer ( bool  editable = false,
QWidget parent = 0,
MetaDataBrowser caller = nullptr 
)

Constructor.

Member Function Documentation

◆ load()

void load ( ProteinIdentification s,
int  tree_item_id 
)

Loads the meta data from the object to the viewer. Gets the id of the item in the tree as parameter.

◆ store

void store ( )
overrideslot

◆ undo_

void undo_ ( )
protectedslot

Undo the changes made in the GUI.

◆ updateTree_

void updateTree_ ( )
protectedslot

Updates the tree by calling MetaDataBrowser::updateProteinHits()

Calls MetaDataBrowser::updateProteinHits().
Updates the tree depending of the protein significance threshold.
Only ProteinHits with a score superior or equal to the current threshold will be displayed.

Member Data Documentation

◆ charges_

QLineEdit* charges_
protected

◆ db_

QLineEdit* db_
protected

◆ db_version_

QLineEdit* db_version_
protected

◆ engine_

QLineEdit* engine_
protected

◆ engine_version_

QLineEdit* engine_version_
protected

◆ enzyme_

QLineEdit* enzyme_
protected

◆ filter_threshold_

QLineEdit* filter_threshold_
protected

Threshold for filtering by score.

◆ higher_better_

QComboBox* higher_better_
protected

◆ identification_date_

QLineEdit* identification_date_
protected

◆ identification_threshold_

QLineEdit* identification_threshold_
protected

◆ identifier_

QLineEdit* identifier_
protected

◆ mass_type_

QComboBox* mass_type_
protected

◆ missed_cleavages_

QLineEdit* missed_cleavages_
protected

◆ peak_tolerance_

QLineEdit* peak_tolerance_
protected

◆ pidv_caller_

MetaDataBrowser* pidv_caller_
protected

Pointer to MetaDataBrowser.

◆ precursor_tolerance_

QLineEdit* precursor_tolerance_
protected

◆ score_type_

QLineEdit* score_type_
protected

◆ taxonomy_

QLineEdit* taxonomy_
protected

◆ tree_id_

int tree_id_
protected

The id of the item in the tree.