libpappsomspp
Library for mass spectrometry
pappso::OboChooserWidget Class Reference

#include <obochooserwidget.h>

Inheritance diagram for pappso::OboChooserWidget:

Public Member Functions

 OboChooserWidget (QWidget *parent=nullptr)
 
 ~OboChooserWidget ()
 
bool isOboTermSelected () const
 tells if an OBO term has been selected More...
 
const OboPsiModTermgetOboPsiModTermSelected () const
 get the selected obo term or an exception More...
 
void setMzTarget (double target_mz)
 set mz target to filter among possible modifications More...
 
void setPrecision (PrecisionPtr precision)
 set mz precision to filter among possible modifications More...
 

Private Attributes

Ui::OboChooserWidgetForm * ui
 

Detailed Description

Definition at line 45 of file obochooserwidget.h.

Constructor & Destructor Documentation

◆ OboChooserWidget()

OboChooserWidget::OboChooserWidget ( QWidget *  parent = nullptr)
explicit

Default constructor

Definition at line 38 of file obochooserwidget.cpp.

39  : QWidget(parent), ui(new Ui::OboChooserWidgetForm)
40 {
41  qDebug();
42  ui->setupUi(this);
43 
44 
45  connect(ui->oboListWidget,
47  ui->oboTermForm,
49 }
Ui::OboChooserWidgetForm * ui
void oboTermChanged(OboPsiModTerm oboTerm) const
void displayOboTerm(OboPsiModTerm oboTerm)
Definition: obotermform.cpp:59

References pappso::OboTermForm::displayOboTerm(), pappso::OboListWidget::oboTermChanged(), and ui.

◆ ~OboChooserWidget()

pappso::OboChooserWidget::~OboChooserWidget ( )

Destructor

Definition at line 51 of file obochooserwidget.cpp.

52 {
53  delete ui;
54 }

Member Function Documentation

◆ getOboPsiModTermSelected()

const pappso::OboPsiModTerm & pappso::OboChooserWidget::getOboPsiModTermSelected ( ) const

get the selected obo term or an exception

Definition at line 63 of file obochooserwidget.cpp.

64 {
65  if(ui->oboTermForm->isOboTerm())
66  {
67  }
68  else
69  {
70  throw pappso::ExceptionNotFound(tr("OBO term not available"));
71  }
72  return ui->oboTermForm->getOboPsiModTerm();
73 }

◆ isOboTermSelected()

bool pappso::OboChooserWidget::isOboTermSelected ( ) const

tells if an OBO term has been selected

Definition at line 57 of file obochooserwidget.cpp.

58 {
59  return ui->oboTermForm->isOboTerm();
60 }

◆ setMzTarget()

void pappso::OboChooserWidget::setMzTarget ( double  target_mz)

set mz target to filter among possible modifications

Definition at line 76 of file obochooserwidget.cpp.

77 {
78  qDebug();
79  ui->oboListWidget->filterMzPrecision(target_mz,
80  ui->oboListWidget->getPrecisionPtr());
81 }

◆ setPrecision()

void pappso::OboChooserWidget::setPrecision ( pappso::PrecisionPtr  precision)

set mz precision to filter among possible modifications

Definition at line 84 of file obochooserwidget.cpp.

85 {
86  ui->oboListWidget->filterMzPrecision(ui->oboListWidget->getMzTarget(),
87  precision);
88 }

Member Data Documentation

◆ ui

Ui::OboChooserWidgetForm* pappso::OboChooserWidget::ui
private

Definition at line 79 of file obochooserwidget.h.

Referenced by OboChooserWidget().


The documentation for this class was generated from the following files: