libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
httpbutton.h
Go to the documentation of this file.
1
/**
2
* \file pappsomspp/widget/httpbutton/httpbutton.h
3
* \date 20/04/2021
4
* \author Olivier Langella
5
* \brief push button to trigger web browser on URL
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 <QPushButton>
34
#include <QUrl>
35
#include "
pappsomspp/export-import-config.h
"
36
37
namespace
pappso
38
{
39
40
class
PMSPP_LIB_DECL
HttpButton
:
public
QPushButton
41
{
42
Q_OBJECT
43
public
:
44
/**
45
* Default constructor
46
*/
47
explicit
HttpButton
(QWidget *parent =
nullptr
);
48
49
/**
50
* Destructor
51
*/
52
~HttpButton
();
53
54
void
setText
(
const
QString &text);
55
56
protected
:
57
void
mousePressEvent
(QMouseEvent *e)
override
;
58
59
const
QUrl
getOlsUrl
(QString psimod_accession);
60
const
QUrl
getPubMedUrl
(QString accession);
61
const
QUrl
getRESIDUrl
(QString accession);
62
const
QUrl
getChEBIUrl
(QString accession);
63
const
QUrl
getUnimodUrl
(QString accession);
64
};
65
}
// namespace pappso
pappso::HttpButton::getUnimodUrl
const QUrl getUnimodUrl(QString accession)
Definition
httpbutton.cpp:135
pappso::HttpButton::setText
void setText(const QString &text)
Definition
httpbutton.cpp:86
pappso::HttpButton::mousePressEvent
void mousePressEvent(QMouseEvent *e) override
Definition
httpbutton.cpp:48
pappso::HttpButton::getRESIDUrl
const QUrl getRESIDUrl(QString accession)
Definition
httpbutton.cpp:114
pappso::HttpButton::getChEBIUrl
const QUrl getChEBIUrl(QString accession)
Definition
httpbutton.cpp:124
pappso::HttpButton::HttpButton
HttpButton(QWidget *parent=nullptr)
Definition
httpbutton.cpp:38
pappso::HttpButton::getOlsUrl
const QUrl getOlsUrl(QString psimod_accession)
Definition
httpbutton.cpp:93
pappso::HttpButton::getPubMedUrl
const QUrl getPubMedUrl(QString accession)
Definition
httpbutton.cpp:104
export-import-config.h
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition
export-import-config.h:14
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
pappsomspp
gui
httpbutton
httpbutton.h
Generated on Tue Sep 23 2025 09:36:37 for libpappsomspp by
1.13.2