00001 /****************************************************************************** 00002 * 00003 * This file is part of Cardio Curves. 00004 * Copyright (C) 2009 Jan Gunnar Andreassen 00005 * Copyright (C) 2009 Lars Magne Engedal 00006 * 00007 * Cardio Curves is free software: you can redistribute it and/or modify 00008 * it under the terms of the GNU Lesser General Public License as published 00009 * by the Free Software Foundation, either version 2.1 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * Cardio Cruves is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public License 00018 * along with Cardio Curves. If not, see <http://www.gnu.org/licenses/>. 00019 * 00020 * Developer contact: 00021 * (janislazzaroni at users.sourceforge.net) 00022 * (engedal at users.sourceforge.net ) 00023 ******************************************************************************/ 00024 00025 #ifndef PLOTTING_H 00026 #define PLOTTING_H 00027 00028 #include <QWidget> 00029 00030 #include "ui_plotting.h" 00031 00032 class QwtScaleMap; 00033 class QwtPlotCurve; 00034 class QScrollBar; 00035 class QPrinter; 00036 class DetailPlot; 00037 class SimplePlot; 00038 class DataHandler; 00039 class QLabel; 00040 00048 class Plotting : public QWidget 00049 { 00050 Q_OBJECT 00051 00052 public: 00057 Plotting(QWidget *parent = 0); 00059 ~Plotting(); 00060 00066 void plotSingelChannel(DataHandler &dh); 00071 void updateScreen(DataHandler &dh); 00072 00073 public slots: 00081 void setDetailSample(int line, int sample); 00082 00083 private: 00084 DetailPlot *detailPlot; 00085 SimplePlot *simplePlot; 00086 DataHandler *dataHandler; 00087 QLabel *resolutionLabel; 00088 }; 00089 00090 #endif // PLOTTING_H