#include <httpbutton.h>
Definition at line 40 of file httpbutton.h.
◆ HttpButton()
HttpButton::HttpButton |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ ~HttpButton()
pappso::HttpButton::~HttpButton |
( |
| ) |
|
◆ getChEBIUrl()
const QUrl HttpButton::getChEBIUrl |
( |
QString |
accession | ) |
|
|
protected |
Definition at line 124 of file httpbutton.cpp.
128 QUrl url(QString(
"https://www.ebi.ac.uk/chebi/searchId.do?chebiId=%1")
129 .arg(accession.replace(
"ChEBI:",
"")));
◆ getOlsUrl()
const QUrl HttpButton::getOlsUrl |
( |
QString |
psimod_accession | ) |
|
|
protected |
Definition at line 93 of file httpbutton.cpp.
96 QString iri(QString(
"http://purl.obolibrary.org/obo/%1")
97 .arg(psimod_accession.replace(
":",
"_")));
99 QString(
"http://www.ebi.ac.uk/ols/ontologies/mod/terms?iri=%1").arg(iri));
◆ getPubMedUrl()
const QUrl HttpButton::getPubMedUrl |
( |
QString |
accession | ) |
|
|
protected |
Definition at line 104 of file httpbutton.cpp.
107 QUrl url(QString(
"https://pubmed.ncbi.nlm.nih.gov/%1/")
108 .arg(accession.replace(
"PubMed:",
"")));
◆ getRESIDUrl()
const QUrl HttpButton::getRESIDUrl |
( |
QString |
accession | ) |
|
|
protected |
Definition at line 114 of file httpbutton.cpp.
117 QUrl url(QString(
"https://annotation.dbi.udel.edu/cgi-bin/resid?id=%1")
118 .arg(accession.replace(
"RESID:",
"")));
◆ getUnimodUrl()
const QUrl HttpButton::getUnimodUrl |
( |
QString |
accession | ) |
|
|
protected |
Definition at line 135 of file httpbutton.cpp.
139 QUrl url(QString(
"http://www.unimod.org/modifications_view.php?editid1=%1")
140 .arg(accession.replace(
"Unimod:",
"")));
◆ mousePressEvent()
void pappso::HttpButton::mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
Definition at line 48 of file httpbutton.cpp.
52 if(text().startsWith(
"MOD:"))
54 QDesktopServices::openUrl(
getOlsUrl(this->text()));
57 else if(text().startsWith(
"PubMed:"))
62 else if(text().startsWith(
"RESID:"))
64 QDesktopServices::openUrl(
getRESIDUrl(this->text()));
67 else if(text().startsWith(
"ChEBI:"))
69 QDesktopServices::openUrl(
getChEBIUrl(this->text()));
72 else if(text().startsWith(
"Unimod:"))
79 qDebug() <<
"unknown" << this->text();
82 QPushButton::mousePressEvent(e);
◆ setText()
void pappso::HttpButton::setText |
( |
const QString & |
text | ) |
|
The documentation for this class was generated from the following files: