Commit 500d06ee authored by Edlira Nano's avatar Edlira Nano
Browse files

gui

git-svn-id: https://subversion.renater.fr/masschroq/trunk@2238 e4b6dbb4-9209-464b-83f7-6257456c460c
parent c4e4dcab
#include "mainwindow.h"
MainWindow::MainWindow() {
MainWindow::MainWindow(QWidget *parent)
:
QMainWindow(parent)
{
// Central Widget
QWidget *window = new QWidget(this);
_plot = new XicPlot(this);
const int margin = 4;
d_plot->setContentsMargins( margin, margin, margin, margin);
setCentralWidget(_plot);
createActions();
createMenus();
createToolBars();
createActions();
createStatusBar();
}
void
MainWindow::createMenus() {
}
void
MainWindow::createActions() {
......
......@@ -10,18 +10,18 @@ class MainWindow : public QMainWindow
public:
MainWindow();
protected:
void closeEvent(QCloseEvent *event);
private slots:
MainWindow(QWidget * parent = 0);
private Q_SLOTS:
void newXic();
void applyXicFilter();
bool saveXic();
protected:
void closeEvent(QCloseEvent *event);
private:
......@@ -31,6 +31,8 @@ private:
createStatusBar();
createDockWindows();
Plot * _plot;
QListWidget * filtersList;
QListWidget * quantiItemsList;
......
/**
* \file selectionXicTreatment.cpp
* \file msrunSelectionXic.cpp
* \date October 28, 2011
* \author Edlira Nano
*/
#include "selectionXicTreatment.h"
#include "msrunSelectionXic.h"
SelectionXicTreatment::SelectionXicTreatment(const Msrun * msrun,
const XicExtractionMethodBase * extraction_method,
const mcq_xic_type xic_type,
const QPen * style) :
MsrunSelectionXic::MsrunSelectionXic(const Msrun * msrun,
const XicExtractionMethodBase * extraction_method,
const mcq_xic_type xic_type,
const QPen * style) :
XicTreatment(style),
_msrun(msrun),
_xic_extraction_method(extraction_method),
......@@ -19,7 +19,7 @@ SelectionXicTreatment::SelectionXicTreatment(const Msrun * msrun,
}
SelectionXicTreatment::~SelectionXicTreatment() {
MsrunSelectionXic::~MsrunSelectionXic() {
if (_quanti_item != 0) {
delete _quanti_item;
_quanti_item = 0;
......@@ -27,13 +27,13 @@ SelectionXicTreatment::~SelectionXicTreatment() {
}
XicProfile *
SelectionXicTreatment::applyTreatment(XicProfile * xic_profile) {
MsrunSelectionXic::applyTreatment(XicProfile * xic_profile) {
// extract XIC
_msrun->prepareSpectraForQuantification(_xic_extraction_method);
xicBase * current_xic = _msrun->extractXic(_xic_type, _quanti_item);
if (current_xic == 0) {
qDebug() << "detectAndQuantify null xic ";
qDebug() << "MsrunSelectionXic null xic ";
}
XicProfile * result_xic_profile = new XicProfile();
......
......@@ -19,33 +19,33 @@
*/
/**
* \file selectionXicTreatment.h
* \file msrunSelectionXic.h
* \date October 28, 2011
* \author Edlira Nano
*/
#ifndef SELECTION_XIC_TREATMENT_H_
#define SELECTION_XIC_TREATMENT_H_ 1
#ifndef MSRUN_SELECTION_XIC_H_
#define MSRUN_SELECTION_XIC_H_ 1
#include
/**
* \class SelectionXicTreatment
* \brief Interface class representing a XIC treatment
* \class MsrunSelectionXic
* \brief Xic treatment corresponding to a XIC selection
*
*
*/
class SelectionXicTreatment : public XicTreatment {
class MsrunSelectionXic : public XicTreatment {
public :
SelectionXicTreatment(const Msrun * msrun,
const XicExtractionMethodBase & extraction_method,
const mcq_xic_type xic_type,
const QPen * style);
virtual ~SelectionXicTreatment();
MsrunSelectionXic(const Msrun * msrun,
const XicExtractionMethodBase & extraction_method,
const mcq_xic_type xic_type,
const QPen * style);
virtual ~MsrunSelectionXic();
virtual XicProfile * applyTreatment(XicProfile * xic_profile);
......@@ -62,4 +62,4 @@ class SelectionXicTreatment : public XicTreatment {
};
#endif /* SELECTION_XIC_TREATMENT_H_ */
#endif /* MSRUN_SELECTION_XIC_H_ */
......@@ -35,7 +35,7 @@
* A Xic Profile is XIC data (retention times, intensities)
* corresponding to different XIC states in the MassChroQ GUI. It can be:
* an original unaltered XIC, or a filtered XIC corresponding to one profile.
* an original unaltered XIC or a filtered XIC.
*/
class XicProfile {
......
/*
*
* MassChroQ: Mass Chromatogram Quantification software.
* Copyright (C) 2010 Olivier Langella, Edlira Nano, Benoit Valot, Michel Zivy.
*
* This program 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.
*
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
/**
* \file xicSelectionWidget.h
* \date November 07, 2011
* \author Edlira Nano
*/
#ifndef XIC_SELECTION_WIDGET_H_
#define XIC_SELECTION_WIDGET_H_ 1
#include
/**
* \class XicSelectionWidget
* \brief Xic Selection Widget
*
*
*/
class XicSelectionWidget : public QWidget {
public :
XicSelectionWidget(const Msrun * msrun,
const XicExtractionMethodBase & extraction_method,
const mcq_xic_type xic_type,
const QPen * style);
virtual ~XicSelectionWidget();
//virtual XicProfile * applyTreatment(XicProfile * xic_profile);
private :
// type of the Xic : MAX_XIC_TYPE ou SUM_XIC_TYPE
const mcq_xic_type _xic_type;
// type of range : mz_range or ppm_range
mcq_double _mz;
};
#endif /* XIC_SELECTION_WIDGET_H_ */
......@@ -27,7 +27,7 @@
#ifndef XIC_TREATMENT_H_
#define XIC_TREATMENT_H_ 1
#include
//#include
/**
* \class XicTreatment
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment