libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
obochooserwidget.h
Go to the documentation of this file.
1/**
2 * \file pappsomspp/widget/obo/obochooserwidget/obochooserwidget.h
3 * \date 19/04/2021
4 * \author Olivier Langella
5 * \brief display obo term list and choose items
6 */
7
8
9/*******************************************************************************
10 * Copyright (c) 2021 Olivier Langella
11 *<Olivier.Langella@universite-paris-saclay.fr>.
12 *
13 * This file is part of the PAPPSOms++ library.
14 *
15 * PAPPSOms++ is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation, either version 3 of the License, or
18 * (at your option) any later version.
19 *
20 * PAPPSOms++ is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
27 *
28 ******************************************************************************/
29
30#pragma once
31
32
33#include <QWidget>
37
38
39namespace Ui
40{
41class OboChooserWidgetForm;
42}
43
44namespace pappso
45{
46
47class PMSPP_LIB_DECL OboChooserWidget : public QWidget
48{
49 Q_OBJECT
50 public:
51 /**
52 * Default constructor
53 */
54 explicit OboChooserWidget(QWidget *parent = nullptr);
55
56 /**
57 * Destructor
58 */
60
61
62 /** @brief tells if an OBO term has been selected
63 */
64 bool isOboTermSelected() const;
65
66 /** @brief get the selected obo term or an exception
67 */
69
70 /** @brief set mz target to filter among possible modifications
71 */
72 void setMzTarget(double target_mz);
73
74
75 /** @brief set mz precision to filter among possible modifications
76 */
77 void setPrecision(PrecisionPtr precision);
78
79
80 private:
81 Ui::OboChooserWidgetForm *ui;
82};
83} // namespace pappso
void setPrecision(PrecisionPtr precision)
set mz precision to filter among possible modifications
Ui::OboChooserWidgetForm * ui
void setMzTarget(double target_mz)
set mz target to filter among possible modifications
OboChooserWidget(QWidget *parent=nullptr)
const OboPsiModTerm & getOboPsiModTermSelected() const
get the selected obo term or an exception
bool isOboTermSelected() const
tells if an OBO term has been selected
#define PMSPP_LIB_DECL
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39
const PrecisionBase * PrecisionPtr
Definition precision.h:122