OpenMS
Plot1DGoToDialog.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, 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 #include <OpenMS/CONCEPT/Types.h>
15 
16 #include <QtWidgets/QDialog>
17 
18 namespace Ui
19 {
20  class Plot1DGoToDialogTemplate;
21 }
22 
23 namespace OpenMS
24 {
25 
31  class OPENMS_GUI_DLLAPI Plot1DGoToDialog :
32  public QDialog
33  {
34  Q_OBJECT
35 
36 public:
38  Plot1DGoToDialog(QWidget * parent = nullptr);
40  ~Plot1DGoToDialog() override;
41 
43  void setRange(float min, float max);
44 
46  void setMinMaxOfRange(float min, float max);
47 
48 
49  bool checked();
50 
52  void fixRange();
53 
55  float getMin() const;
57  float getMax() const;
58 
59  private:
60  Ui::Plot1DGoToDialogTemplate* ui_;
61 
62  };
63 
64 }
simple goto/set visible area dialog for exact placement of the viewing window
Definition: Plot1DGoToDialog.h:33
~Plot1DGoToDialog() override
Destructor.
float getMin() const
Returns the lower m/z bound.
void setRange(float min, float max)
Sets the m/z range displayed initially.
Ui::Plot1DGoToDialogTemplate * ui_
Definition: Plot1DGoToDialog.h:60
Plot1DGoToDialog(QWidget *parent=nullptr)
Constructor.
void setMinMaxOfRange(float min, float max)
Sets the m/z range displayed initially.
void fixRange()
Fixes the currently stored range (i.e. ensure correct order of min-max; enforce minimum of 1 Da windo...
float getMax() const
Returns the upper m/z bound.
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
Definition: FLASHDeconvWizardBase.h:37