OpenMS
Plot2DGoToDialog.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 #include <OpenMS/VISUAL/PlotCanvas.h> // for AreaXYType
16 
17 #include <QtWidgets/QDialog>
18 
19 namespace Ui
20 {
21  class Plot2DGoToDialogTemplate;
22 }
23 
24 namespace OpenMS
25 {
26 
27  class String;
28 
34  class OPENMS_GUI_DLLAPI Plot2DGoToDialog :
35  public QDialog
36  {
37  Q_OBJECT
38 
39 public:
41 
46  Plot2DGoToDialog(QWidget* parent, std::string_view x_name, std::string_view y_name);
48  ~Plot2DGoToDialog() override;
49 
51  bool showRange() const;
52 
53  bool checked();
54 
56 
57  void setRange(const AreaXYType& range);
60  void setMinMaxOfRange(const AreaXYType& max_range);
61 
66 
68 
69  String getFeatureNumber() const;
72  void enableFeatureNumber(bool);
74 
75  private:
76  Ui::Plot2DGoToDialogTemplate* ui_;
77 
78  };
79 
80 }
GoTo dialog used to zoom to a m/z and retention time range or to a feature.
Definition: Plot2DGoToDialog.h:36
Ui::Plot2DGoToDialogTemplate * ui_
Definition: Plot2DGoToDialog.h:76
~Plot2DGoToDialog() override
Destructor.
Plot2DGoToDialog(QWidget *parent, std::string_view x_name, std::string_view y_name)
void setMinMaxOfRange(const AreaXYType &max_range)
Sets the data range of the complete experiment for better navigation with the dialog.
PlotCanvas::AreaXYType AreaXYType
Definition: Plot2DGoToDialog.h:40
void enableFeatureNumber(bool)
Disables the feature number field.
bool showRange() const
Returns if a feature UID was set an a feature should be displayed (false), otherwise,...
Area< 2 >::AreaXYType AreaXYType
The range of data shown on the X and Y axis (unit depends on runtime config)
Definition: PlotCanvas.h:152
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
Definition: FLASHDeconvWizardBase.h:37