OpenMS
PeptideIdentificationVisualizer.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg $
6 // $Authors: Marc Sturm $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 // OpenMS_GUI config
12 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
13 
14 //OpenMS
18 
19 namespace OpenMS
20 {
21  class MetaDataBrowser;
22 
28  class OPENMS_GUI_DLLAPI PeptideIdentificationVisualizer :
29  public BaseVisualizerGUI,
30  public BaseVisualizer<PeptideIdentification>
31  {
32  Q_OBJECT
33 
34 public:
36  PeptideIdentificationVisualizer(bool editable = false, QWidget * parent = nullptr, MetaDataBrowser * caller = nullptr);
37 
39  void load(PeptideIdentification & s, int tree_item_id);
40 
41 public slots:
42 
43  //Docu in base class
44  void store() override;
45 
46 protected slots:
47 
49  void undo_();
50 
58  void updateTree_();
59 
60 protected:
64  int tree_id_;
65 
67 
70  QComboBox * higher_better_;
73 
76  };
77 }
A base class for all visualizer classes.
Definition: BaseVisualizerGUI.h:40
A base class for all visualizer classes.
Definition: BaseVisualizer.h:28
A meta data visualization widget.
Definition: MetaDataBrowser.h:80
Class that displays all meta information for PeptideIdentification objects.
Definition: PeptideIdentificationVisualizer.h:31
QLineEdit * identifier_
Definition: PeptideIdentificationVisualizer.h:68
QComboBox * higher_better_
Definition: PeptideIdentificationVisualizer.h:70
QLineEdit * score_type_
Definition: PeptideIdentificationVisualizer.h:69
QLineEdit * identification_threshold_
Definition: PeptideIdentificationVisualizer.h:71
int tree_id_
The id of the item in the tree.
Definition: PeptideIdentificationVisualizer.h:64
void undo_()
Undo the changes made in the GUI.
void updateTree_()
Updates the tree by calling MetaDataBrowser::updatePeptideHits(PeptideIdentification,...
PeptideIdentificationVisualizer(bool editable=false, QWidget *parent=nullptr, MetaDataBrowser *caller=nullptr)
Constructor.
QLineEdit * filter_threshold_
Threshold for filtering by score.
Definition: PeptideIdentificationVisualizer.h:75
MetaDataBrowser * pidv_caller_
Pointer to MetaDataBrowser.
Definition: PeptideIdentificationVisualizer.h:62
void load(PeptideIdentification &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.
Represents the peptide hits for a spectrum.
Definition: PeptideIdentification.h:39
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19