BaselineDialog.h
Go to the documentation of this file.
/***************************************************************************
File : BaselineDialog.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2010 by Ion Vasilief
Email (use @ for *) : ion_vasilief*yahoo.fr
Description : Subtract baseline dialog
***************************************************************************/
/***************************************************************************
* *
* 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 2 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, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301 USA *
* *
***************************************************************************/
#ifndef BASELINE_DIALOG_H
#define BASELINE_DIALOG_H
#include <QDialog>
class QPushButton;
class QRadioButton;
class QComboBox;
class QLineEdit;
class QSpinBox;
class Graph;
class Table;
class PlotCurve;
class BaselineTool;
class QwtPlotCurve;
class BaselineDialog : public QDialog
{
Q_OBJECT
public:
BaselineDialog( QWidget* parent = 0, Qt::WFlags fl = 0 );
void setGraph(Graph *g);
private slots:
void updateGraphCurves();
void updateTableColumns(int tabnr);
void createBaseline();
void subtractBaseline(bool add = false);
void undo();
void modifyBaseline();
void enableBaselineOptions();
private:
void disableBaselineTool();
double combineValues(double v1, double v2, bool add = false);
void closeEvent(QCloseEvent* e);
Graph *graph;
QPushButton* buttonSubtract;
QPushButton* buttonUndo;
QPushButton* buttonModify;
QPushButton* buttonCreate;
QPushButton* buttonCancel;
QComboBox* boxTableName;
QComboBox* boxColumnName;
QComboBox* boxInputName;
QComboBox* boxInterpolationMethod;
QLineEdit* boxEquation;
QRadioButton *btnAutomatic;
QRadioButton *btnEquation;
QRadioButton *btnDataset;
QSpinBox* boxPoints;
PlotCurve *d_baseline;
Table *d_table;
BaselineTool *d_picker_tool;
};
#endif
BaselineDialog::d_baseline
PlotCurve * d_baseline
Definition: BaselineDialog.h:88
BaselineTool
Plot tool for selecting and moving individual points of a baseline curve.
Definition: DataPickerTool.h:102
BaselineDialog::boxInterpolationMethod
QComboBox * boxInterpolationMethod
Definition: BaselineDialog.h:78
BaselineDialog::btnAutomatic
QRadioButton * btnAutomatic
Definition: BaselineDialog.h:82
BaselineDialog::buttonCreate
QPushButton * buttonCreate
Definition: BaselineDialog.h:72
Graph
A 2D-plotting widget.
Definition: Graph.h:123
BaselineDialog::boxTableName
QComboBox * boxTableName
Definition: BaselineDialog.h:75
BaselineDialog
Subtract baseline dialog.
Definition: BaselineDialog.h:46
BaselineDialog::buttonCancel
QPushButton * buttonCancel
Definition: BaselineDialog.h:73
BaselineDialog::buttonModify
QPushButton * buttonModify
Definition: BaselineDialog.h:71
BaselineDialog::undo
void undo()
Definition: BaselineDialog.cpp:269
BaselineDialog::boxPoints
QSpinBox * boxPoints
Definition: BaselineDialog.h:86
BaselineDialog::btnDataset
QRadioButton * btnDataset
Definition: BaselineDialog.h:84
BaselineDialog::modifyBaseline
void modifyBaseline()
Definition: BaselineDialog.cpp:174
BaselineDialog::setGraph
void setGraph(Graph *g)
Definition: BaselineDialog.cpp:398
BaselineDialog::combineValues
double combineValues(double v1, double v2, bool add=false)
Definition: BaselineDialog.cpp:368
BaselineDialog::boxColumnName
QComboBox * boxColumnName
Definition: BaselineDialog.h:76
BaselineDialog::disableBaselineTool
void disableBaselineTool()
Definition: BaselineDialog.cpp:165
BaselineDialog::boxEquation
QLineEdit * boxEquation
Definition: BaselineDialog.h:80
BaselineDialog::boxInputName
QComboBox * boxInputName
Definition: BaselineDialog.h:77
BaselineDialog::subtractBaseline
void subtractBaseline(bool add=false)
Definition: BaselineDialog.cpp:274
PlotCurve
Abstract 2D plot curve class.
Definition: PlotCurve.h:41
BaselineDialog::createBaseline
void createBaseline()
Definition: BaselineDialog.cpp:207
BaselineDialog::graph
Graph * graph
Definition: BaselineDialog.h:68
BaselineDialog::btnEquation
QRadioButton * btnEquation
Definition: BaselineDialog.h:83
BaselineDialog::updateTableColumns
void updateTableColumns(int tabnr)
Definition: BaselineDialog.cpp:378
BaselineDialog::BaselineDialog
BaselineDialog(QWidget *parent=0, Qt::WFlags fl=0)
Definition: BaselineDialog.cpp:54
Table
MDI window providing a spreadsheet table with column logic.
Definition: Table.h:57
BaselineDialog::closeEvent
void closeEvent(QCloseEvent *e)
Definition: BaselineDialog.cpp:431
BaselineDialog::buttonUndo
QPushButton * buttonUndo
Definition: BaselineDialog.h:70
BaselineDialog::updateGraphCurves
void updateGraphCurves()
Definition: BaselineDialog.cpp:416
BaselineDialog::d_picker_tool
BaselineTool * d_picker_tool
Definition: BaselineDialog.h:90
BaselineDialog::d_table
Table * d_table
Definition: BaselineDialog.h:89
BaselineDialog::enableBaselineOptions
void enableBaselineOptions()
Definition: BaselineDialog.cpp:148
BaselineDialog::buttonSubtract
QPushButton * buttonSubtract
Definition: BaselineDialog.h:69