QtiPlot
0.9.8.2
|
00001 /*************************************************************************** 00002 File : IntegrationDialog.h 00003 Project : QtiPlot 00004 -------------------------------------------------------------------- 00005 Copyright : (C) 2011 by Ion Vasilief 00006 Email (use @ for *) : ion_vasilief*yahoo.fr 00007 Description : Integration options dialog 00008 00009 ***************************************************************************/ 00010 00011 /*************************************************************************** 00012 * * 00013 * This program is free software; you can redistribute it and/or modify * 00014 * it under the terms of the GNU General Public License as published by * 00015 * the Free Software Foundation; either version 2 of the License, or * 00016 * (at your option) any later version. * 00017 * * 00018 * This program is distributed in the hope that it will be useful, * 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00021 * GNU General Public License for more details. * 00022 * * 00023 * You should have received a copy of the GNU General Public License * 00024 * along with this program; if not, write to the Free Software * 00025 * Foundation, Inc., 51 Franklin Street, Fifth Floor, * 00026 * Boston, MA 02110-1301 USA * 00027 * * 00028 ***************************************************************************/ 00029 #ifndef INTEGRATIONDIALOG_H 00030 #define INTEGRATIONDIALOG_H 00031 00032 #include <QDialog> 00033 00034 class QPushButton; 00035 class QComboBox; 00036 class QCheckBox; 00037 class QSpinBox; 00038 class Graph; 00039 class Table; 00040 class DoubleSpinBox; 00041 00043 class IntegrationDialog : public QDialog 00044 { 00045 Q_OBJECT 00046 00047 public: 00048 IntegrationDialog(Graph *g, QWidget* parent = 0, Qt::WFlags fl = 0 ); 00049 IntegrationDialog(Table *t, QWidget* parent = 0, Qt::WFlags fl = 0 ); 00050 00051 public slots: 00052 void activateCurve(const QString&); 00053 void integrate(); 00054 void changeDataRange(); 00055 00056 private: 00057 void closeEvent (QCloseEvent * e ); 00058 00059 void setGraph(Graph *g); 00060 void setTable(Table *t); 00061 void integrateCurve(); 00062 void integrateTable(); 00063 00064 Graph *d_graph; 00065 Table *d_table; 00066 QPushButton* buttonFit; 00067 QPushButton* buttonCancel; 00068 QComboBox* boxName; 00069 QCheckBox *boxSortData; 00070 QCheckBox *boxShowPlot; 00071 QCheckBox *boxShowTable; 00072 QSpinBox *boxStartRow; 00073 QSpinBox *boxEndRow; 00074 DoubleSpinBox* boxStart; 00075 DoubleSpinBox* boxEnd; 00076 }; 00077 00078 #endif