Loading...
Searching...
No Matches
httpbutton.h
Go to the documentation of this file.
/**
* \file pappsomspp/widget/httpbutton/httpbutton.h
* \date 20/04/2021
* \author Olivier Langella
* \brief push button to trigger web browser on URL
*/
/*******************************************************************************
* Copyright (c) 2021 Olivier Langella
*<Olivier.Langella@universite-paris-saclay.fr>.
*
* This file is part of the PAPPSOms++ library.
*
* PAPPSOms++ is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PAPPSOms++ is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#pragma once
#include <QPushButton>
#include <QUrl>
#include "pappsomspp/export-import-config.h"
namespace pappso
{
class PMSPP_LIB_DECL HttpButton : public QPushButton
{
Q_OBJECT
public:
/**
* Default constructor
*/
explicit HttpButton(QWidget *parent = nullptr);
/**
* Destructor
*/
~HttpButton();
void setText(const QString &text);
protected:
void mousePressEvent(QMouseEvent *e) override;
const QUrl getOlsUrl(QString psimod_accession);
const QUrl getPubMedUrl(QString accession);
const QUrl getRESIDUrl(QString accession);
const QUrl getChEBIUrl(QString accession);
const QUrl getUnimodUrl(QString accession);
};
} // namespace pappso
pappso::HttpButton::getUnimodUrl
const QUrl getUnimodUrl(QString accession)
Definition httpbutton.cpp:132
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:111
pappso::HttpButton::getChEBIUrl
const QUrl getChEBIUrl(QString accession)
Definition httpbutton.cpp:121
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:102
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