OpenMS
HistogramDialog.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 
10 #pragma once
11 
12 // OpenMS_GUI config
13 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
14 
15 #include <QtWidgets/QDialog>
16 
19 
20 namespace OpenMS
21 {
27  class OPENMS_GUI_DLLAPI HistogramDialog :
28  public QDialog
29  {
30  Q_OBJECT
31 
32 public:
34  HistogramDialog(const Math::Histogram<> & distribution, QWidget * parent = nullptr);
36  ~HistogramDialog() override;
37 
39  float getLeftSplitter();
42 
44  void setLeftSplitter(float position);
46  void setRightSplitter(float position);
47 
49  void setLegend(const String & legend);
51  void setLogMode(bool log_mode);
52 
53 protected:
55  };
56 
57 } //namespace
58 
Dialog that show a HistogramWidget.
Definition: HistogramDialog.h:29
HistogramWidget * mw_
Definition: HistogramDialog.h:54
float getRightSplitter()
Returns the value of the right splitter.
void setLogMode(bool log_mode)
Sets log mode.
~HistogramDialog() override
Destructor.
void setRightSplitter(float position)
Sets the value of the right splitter.
HistogramDialog(const Math::Histogram<> &distribution, QWidget *parent=nullptr)
Constructor.
void setLegend(const String &legend)
Sets the axis legend.
void setLeftSplitter(float position)
Sets the value of the left splitter.
float getLeftSplitter()
Returns the value of the left splitter.
Definition: HistogramWidget.h:41
Representation of a histogram.
Definition: Histogram.h:38
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19