precisionwidget.h
Go to the documentation of this file.
/**
* \file pappsomspp/widget/precisionwidget/precisionwidget.h
* \date 5/1/2018
* \author Olivier Langella
* \brief edit presicion in ppm or dalton
*/
/*******************************************************************************
* Copyright (c) 2018 Olivier Langella <Olivier.Langella@u-psud.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/>.
*
* Contributors:
* Olivier Langella <Olivier.Langella@u-psud.fr> - initial API and
*implementation
******************************************************************************/
#pragma once
#include <QWidget>
#include <QComboBox>
#include <QDoubleSpinBox>
#include "../../exportinmportconfig.h"
#include "../../mzrange.h"
namespace pappso
{
class PMSPP_LIB_DECL PrecisionWidget : public QWidget
{
Q_OBJECT
private:
QComboBox *mp_unitComboBox;
QDoubleSpinBox *mp_ppmValueSpinBox;
QDoubleSpinBox *mp_resValueSpinBox;
QDoubleSpinBox *mp_daltonValueSpinBox;
PrecisionPtr mp_precisionDalton;
PrecisionPtr mp_precisionPpm;
PrecisionPtr mp_precisionRes;
int m_oldIndex;
Q_SLOT void setCurrentIndex(int);
Q_SLOT void setPpmValueChanged(double);
Q_SLOT void setResValueChanged(double);
Q_SLOT void setDaltonValueChanged(double);
public:
PrecisionWidget(QWidget *parent = 0);
~PrecisionWidget();
void setPrecision(PrecisionPtr precision);
const PrecisionPtr &getPrecision() const;
signals:
void precisionChanged(pappso::PrecisionPtr precision) const;
};
} // namespace pappso
pappso::PrecisionBase
Definition: precision.h:44
pappso::PrecisionWidget
Definition: precisionwidget.h:46
pappso::PrecisionWidget::mp_daltonValueSpinBox
QDoubleSpinBox * mp_daltonValueSpinBox
Definition: precisionwidget.h:54
pappso::PrecisionWidget::mp_unitComboBox
QComboBox * mp_unitComboBox
Definition: precisionwidget.h:50
pappso::PrecisionWidget::mp_ppmValueSpinBox
QDoubleSpinBox * mp_ppmValueSpinBox
Definition: precisionwidget.h:52
pappso::PrecisionWidget::precisionChanged
void precisionChanged(pappso::PrecisionPtr precision) const
pappso::PrecisionWidget::mp_precisionRes
PrecisionPtr mp_precisionRes
Definition: precisionwidget.h:58
pappso::PrecisionWidget::mp_resValueSpinBox
QDoubleSpinBox * mp_resValueSpinBox
Definition: precisionwidget.h:53
pappso::PrecisionWidget::mp_precisionDalton
PrecisionPtr mp_precisionDalton
Definition: precisionwidget.h:56
pappso::PrecisionWidget::m_oldIndex
int m_oldIndex
Definition: precisionwidget.h:60
pappso::PrecisionWidget::mp_precisionPpm
PrecisionPtr mp_precisionPpm
Definition: precisionwidget.h:57
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition: exportinmportconfig.h:14
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39