libpappsomspp
Library for mass spectrometry
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>
34
#include "../../../exportinmportconfig.h"
35
#include "../../../obo/obopsimodterm.h"
36
#include "../../../precision.h"
37
namespace
Ui
38
{
39
class
OboChooserWidgetForm;
40
}
41
42
namespace
pappso
43
{
44
45
class
PMSPP_LIB_DECL
OboChooserWidget
:
public
QWidget
46
{
47
Q_OBJECT
48
public
:
49
/**
50
* Default constructor
51
*/
52
explicit
OboChooserWidget
(QWidget *parent =
nullptr
);
53
54
/**
55
* Destructor
56
*/
57
~
OboChooserWidget
();
58
59
60
/** @brief tells if an OBO term has been selected
61
*/
62
bool
isOboTermSelected()
const
;
63
64
/** @brief get the selected obo term or an exception
65
*/
66
const
OboPsiModTerm
&getOboPsiModTermSelected()
const
;
67
68
/** @brief set mz target to filter among possible modifications
69
*/
70
void
setMzTarget(
double
target_mz);
71
72
73
/** @brief set mz precision to filter among possible modifications
74
*/
75
void
setPrecision(
PrecisionPtr
precision);
76
77
78
private
:
79
Ui::OboChooserWidgetForm *
ui
;
80
};
81
}
// namespace pappso
pappso::OboChooserWidget
Definition:
obochooserwidget.h:46
pappso::OboChooserWidget::ui
Ui::OboChooserWidgetForm * ui
Definition:
obochooserwidget.h:79
pappso::OboPsiModTerm
Definition:
obopsimodterm.h:32
pappso::PrecisionBase
Definition:
precision.h:44
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition:
exportinmportconfig.h:14
Ui
Definition:
obochooserwidget.h:38
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition:
aa.cpp:39
pappsomspp
widget
obo
obochooserwidget
obochooserwidget.h
Generated on Sun Jan 1 2023 15:24:07 for libpappsomspp by
1.9.1