OpenMS
Loading...
Searching...
No Matches
Plot2DGoToDialog.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- 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
15#include <OpenMS/VISUAL/PlotCanvas.h> // for AreaXYType
16
17#include <QtWidgets/QDialog>
18
19namespace Ui
20{
21 class Plot2DGoToDialogTemplate;
22}
23
24namespace OpenMS
25{
26
27 class String;
28
34 class OPENMS_GUI_DLLAPI Plot2DGoToDialog :
35 public QDialog
36 {
37 Q_OBJECT
38
39public:
41
46 Plot2DGoToDialog(QWidget* parent, std::string_view x_name, std::string_view y_name);
49
51 bool showRange() const;
52
53 bool checked();
54
56
57
58 void setRange(const AreaXYType& range);
60 void setMinMaxOfRange(const AreaXYType& max_range);
61
66
68
69
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,...
void setRange(const AreaXYType &range)
Sets the data range to display initially.
String getFeatureNumber() const
Returns the selected feature numbers. If a number is returned, the feature rather than the range shou...
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 openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Definition FLASHDeconvWizardBase.h:37