OpenMS
SampleVisualizer.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
15 #include <OpenMS/METADATA/Sample.h>
18 
19 namespace OpenMS
20 {
26  class OPENMS_GUI_DLLAPI SampleVisualizer :
27  public BaseVisualizerGUI,
28  public BaseVisualizer<Sample>
29  {
30  Q_OBJECT
31 
32 public:
33 
35  SampleVisualizer(bool editable = false, QWidget * parent = nullptr);
36 
37 public slots:
38 
39  //Docu in base class
40  void store() override;
41 
42 protected slots:
43 
45  void undo_();
46 
47 protected:
48 
50 
55  QComboBox * samplestate_;
60 
61  //Docu in base class
62  void update_() override;
63  };
64 
65 }
A base class for all visualizer classes.
Definition: BaseVisualizerGUI.h:40
A base class for all visualizer classes.
Definition: BaseVisualizer.h:28
Class that displays all meta information of sample objects.
Definition: SampleVisualizer.h:29
void store() override
QLineEdit * sampleconcentration_
Definition: SampleVisualizer.h:58
QLineEdit * samplevolume_
Definition: SampleVisualizer.h:57
QTextEdit * samplecomment_
Definition: SampleVisualizer.h:54
SampleVisualizer(bool editable=false, QWidget *parent=nullptr)
Constructor.
QLineEdit * sampleorganism_
Definition: SampleVisualizer.h:53
void undo_()
Undo the changes made in the GUI.
QComboBox * samplestate_
Definition: SampleVisualizer.h:55
void update_() override
Updates the GUI from the temp_ variable.
QLineEdit * samplename_
Definition: SampleVisualizer.h:51
QLineEdit * samplemass_
Definition: SampleVisualizer.h:56
QLineEdit * samplenumber_
Definition: SampleVisualizer.h:52
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19