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
33 class OPENMS_GUI_DLLAPI Plot2DGoToDialog :
34 public QDialog
35 {
36 Q_OBJECT
37
38public:
40
45 Plot2DGoToDialog(QWidget* parent, std::string_view x_name, std::string_view y_name);
48
50 bool showRange() const;
51
52 bool checked();
53
55
56
57 void setRange(const AreaXYType& range);
59 void setMinMaxOfRange(const AreaXYType& max_range);
60
65
67
68
69 std::string getFeatureNumber() const;
73
74 private:
75 Ui::Plot2DGoToDialogTemplate* ui_;
76
77 };
78
79}
GoTo dialog used to zoom to a m/z and retention time range or to a feature.
Definition Plot2DGoToDialog.h:35
Ui::Plot2DGoToDialogTemplate * ui_
Definition Plot2DGoToDialog.h:75
std::string getFeatureNumber() const
Returns the selected feature numbers. If a number is returned, the feature rather than the range shou...
~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:39
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.
Area< 2 >::AreaXYType AreaXYType
The range of data shown on the X and Y axis (unit depends on runtime config)
Definition PlotCanvas.h:152
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Definition DataFilterDialog.h:20