libpappsomspp
Library for mass spectrometry
switchbuttonwidget.h
Go to the documentation of this file.
1
/**
2
* \file pappsomspp/widget/switchbuttonwidget/switchbuttonwidget.h
3
* \date 26/07/2021
4
* \author Thomas Renne
5
* \brief widget to transform a push button to a switch button
6
*/
7
8
9
/*******************************************************************************
10
* Copyright (c) 2021 Thomas Renne <thomas.renne@e.email>.
11
*
12
* This file is part of the PAPPSOms++ library.
13
*
14
* PAPPSOms++ is free software: you can redistribute it and/or modify
15
* it under the terms of the GNU General Public License as published by
16
* the Free Software Foundation, either version 3 of the License, or
17
* (at your option) any later version.
18
*
19
* PAPPSOms++ is distributed in the hope that it will be useful,
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
* GNU General Public License for more details.
23
*
24
* You should have received a copy of the GNU General Public License
25
* along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
26
*
27
* Contributors:
28
* Thomas Renne <thomas.renne@e.email> - initial API and
29
*implementation
30
******************************************************************************/
31
32
#pragma once
33
34
#include <QPushButton>
35
#include "../../exportinmportconfig.h"
36
37
namespace
pappso
38
{
39
40
class
PMSPP_LIB_DECL
SwitchWidget
:
public
QPushButton
41
{
42
Q_OBJECT
43
public
:
44
SwitchWidget
(QWidget *parent = 0);
45
~
SwitchWidget
();
46
47
/** @brief get the state of the switch button (on/off)
48
* @return boolean true or false
49
* */
50
bool
getSwitchValue();
51
52
/** @brief set the state of the switch button (on/off)
53
* @param switch_value boolean true or false
54
* */
55
void
setSwitchValue(
bool
switch_value);
56
57
private
slots:
58
void
updateSwitchValue();
59
60
private
:
61
bool
m_switchButtonValue =
false
;
62
};
63
}
// namespace pappso
pappso::SwitchWidget
Definition:
switchbuttonwidget.h:41
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition:
exportinmportconfig.h:14
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition:
aa.cpp:39
pappsomspp
widget
switchbuttonwidget
switchbuttonwidget.h
Generated on Sun Jan 1 2023 15:24:07 for libpappsomspp by
1.9.1