obotermform.h
Go to the documentation of this file.
/**
* \file pappsomspp/widget/obo/obotermform/obotermform.h
* \date 20/04/2021
* \author Olivier Langella
* \brief display an obo term form
*/
/*******************************************************************************
* 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 <QWidget>
#include "../../../exportinmportconfig.h"
#include "../../../obo/obopsimodterm.h"
namespace Ui
{
class OboTermForm;
}
namespace pappso
{
class PMSPP_LIB_DECL OboTermForm : public QWidget
{
Q_OBJECT
public:
/**
* Default constructor
*/
explicit OboTermForm(QWidget *parent = nullptr);
/**
* Destructor
*/
~OboTermForm();
/** @brief tells if an OBO term is displayed
*/
bool isOboTerm() const;
/** @brief get the obo term or an exception
*/
const OboPsiModTerm &getOboPsiModTerm() const;
public slots:
void displayOboTerm(OboPsiModTerm oboTerm);
protected:
/** @brief parse the definition label to extract external links
* */
void parseDefinitionLabel();
private:
Ui::OboTermForm *ui;
OboPsiModTerm m_oboPsiModTerm;
static QRegExp m_findExternalLinks;
};
} // namespace pappso
pappso::OboPsiModTerm
Definition: obopsimodterm.h:32
pappso::OboTermForm
Definition: obotermform.h:45
pappso::OboTermForm::m_oboPsiModTerm
OboPsiModTerm m_oboPsiModTerm
Definition: obotermform.h:80
pappso::OboTermForm::ui
Ui::OboTermForm * ui
Definition: obotermform.h:78
pappso::OboTermForm::m_findExternalLinks
static QRegExp m_findExternalLinks
Definition: obotermform.h:83
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