FFTDialog.h
Go to the documentation of this file.
/***************************************************************************
File : FFTDialog.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2006 - 2011 by Ion Vasilief
Email (use @ for *) : ion_vasilief*yahoo.fr
Description : Fast Fourier transform options 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 FFTDIALOG_H
#define FFTDIALOG_H
#include <QDialog>
class QPushButton;
class QRadioButton;
class DoubleSpinBox;
class QComboBox;
class QCheckBox;
class Graph;
class Table;
class Matrix;
class FFTDialog : public QDialog
{
Q_OBJECT
public:
enum DataType{onGraph = 0, onTable = 1, onMatrix = 2};
FFTDialog(int type, QWidget* parent = 0, Qt::WFlags fl = 0 );
public slots:
void setGraph(Graph *g);
void setTable(Table *t);
void setMatrix(Matrix *m);
private slots:
void activateDataSet(const QString& curveName);
void accept();
void updateShiftLabel();
private:
void fftMatrix();
void closeEvent (QCloseEvent *);
Graph *graph;
Table *d_table;
int d_type;
QPushButton* buttonOK;
QPushButton* buttonCancel;
QRadioButton *forwardBtn, *backwardBtn;
QComboBox* boxName, *boxReal, *boxImaginary;
DoubleSpinBox* boxSampling;
QCheckBox* boxNormalize, *boxOrder, *boxPower2;
};
#endif
FFTDialog::buttonOK
QPushButton * buttonOK
Definition: FFTDialog.h:71
FFTDialog::setMatrix
void setMatrix(Matrix *m)
Definition: FFTDialog.cpp:262
FFTDialog::boxSampling
DoubleSpinBox * boxSampling
Definition: FFTDialog.h:75
FFTDialog::updateShiftLabel
void updateShiftLabel()
Definition: FFTDialog.cpp:160
FFTDialog::backwardBtn
QRadioButton * backwardBtn
Definition: FFTDialog.h:73
Graph
A 2D-plotting widget.
Definition: Graph.h:123
FFTDialog::fftMatrix
void fftMatrix()
Definition: FFTDialog.cpp:276
FFTDialog::boxImaginary
QComboBox * boxImaginary
Definition: FFTDialog.h:74
FFTDialog::setGraph
void setGraph(Graph *g)
Definition: FFTDialog.cpp:201
FFTDialog::closeEvent
void closeEvent(QCloseEvent *)
Definition: FFTDialog.cpp:292
FFTDialog::onMatrix
Definition: FFTDialog.h:49
FFTDialog::FFTDialog
FFTDialog(int type, QWidget *parent=0, Qt::WFlags fl=0)
Definition: FFTDialog.cpp:51
FFTDialog::buttonCancel
QPushButton * buttonCancel
Definition: FFTDialog.h:72
DoubleSpinBox
A QDoubleSpinBox allowing to customize numbers display with respect to locale settings.
Definition: DoubleSpinBox.h:39
FFTDialog::onGraph
Definition: FFTDialog.h:49
FFTDialog::forwardBtn
QRadioButton * forwardBtn
Definition: FFTDialog.h:73
FFTDialog::d_type
int d_type
Definition: FFTDialog.h:69
Matrix
Matrix worksheet class.
Definition: Matrix.h:57
FFTDialog::d_table
Table * d_table
Definition: FFTDialog.h:68
FFTDialog::boxOrder
QCheckBox * boxOrder
Definition: FFTDialog.h:76
FFTDialog::accept
void accept()
Definition: FFTDialog.cpp:171
FFTDialog::setTable
void setTable(Table *t)
Definition: FFTDialog.cpp:231
FFTDialog::boxNormalize
QCheckBox * boxNormalize
Definition: FFTDialog.h:76
FFTDialog::boxPower2
QCheckBox * boxPower2
Definition: FFTDialog.h:76
FFTDialog::graph
Graph * graph
Definition: FFTDialog.h:67
FFTDialog::boxName
QComboBox * boxName
Definition: FFTDialog.h:74
Table
MDI window providing a spreadsheet table with column logic.
Definition: Table.h:57
FFTDialog::boxReal
QComboBox * boxReal
Definition: FFTDialog.h:74
FFTDialog::onTable
Definition: FFTDialog.h:49
FFTDialog::DataType
DataType
Definition: FFTDialog.h:49
FFTDialog
Fast Fourier transform options dialog.
Definition: FFTDialog.h:44
FFTDialog::activateDataSet
void activateDataSet(const QString &curveName)
Definition: FFTDialog.cpp:211