FunctionDialog.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     File                 : FunctionDialog.h
00003     Project              : QtiPlot
00004     --------------------------------------------------------------------
00005     Copyright            : (C) 2006 by Ion Vasilief, Tilman Hoener zu Siederdissen
00006     Email (use @ for *)  : ion_vasilief*yahoo.fr, thzs*gmx.net
00007     Description          : Function 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 FUNCTIONDIALOG_H
00030 #define FUNCTIONDIALOG_H
00031 
00032 #include "../Graph.h"
00033 
00034 class QTableWidget;
00035 class QStackedWidget;
00036 class QWidget;
00037 class QLineEdit;
00038 class QComboBox;
00039 class QPushButton;
00040 class QSpinBox;
00041 class QLabel;
00042 class QTextEdit;
00043 class DoubleSpinBox;
00044 
00046 class FunctionDialog : public QDialog
00047 {
00048     Q_OBJECT
00049 
00050 public:
00051     FunctionDialog( QWidget* parent = 0, Qt::WFlags fl = 0 );
00052 
00053 protected slots:
00054     void raiseWidget(int index);
00055 
00056 public slots:
00057     void accept();
00058     void acceptFunction();
00059     void acceptParametric();
00060     void acceptPolar();
00061     void setCurveToModify(Graph *g, int curve);
00062     void insertParamFunctionsList(const QStringList& xList, const QStringList& yList);
00063     void insertPolarFunctionsList(const QStringList& rList, const QStringList& thetaList);
00064     void clearList();
00065     void setGraph(Graph *g){graph = g;};
00066 
00067 signals:
00068     void clearParamFunctionsList();
00069     void clearPolarFunctionsList();
00070 
00071 private:
00072     Graph *graph;
00073     int curveID;
00074 
00075     QComboBox* boxXFunction;
00076     QComboBox* boxYFunction;
00077     QComboBox* boxPolarRadius;
00078     QComboBox* boxPolarTheta;
00079     QComboBox* boxType;
00080     QLabel* textFunction;
00081     DoubleSpinBox* boxFrom;
00082     DoubleSpinBox* boxTo;
00083     QLineEdit* boxParameter;
00084     QLineEdit* boxParFrom;
00085     QLineEdit* boxParTo;
00086     QLineEdit* boxPolarParameter;
00087     QLineEdit* boxPolarFrom;
00088     QLineEdit* boxPolarTo;
00089     QPushButton* buttonClear;
00090     QPushButton* buttonCancel;
00091     QPushButton* buttonOk;
00092     QSpinBox* boxPoints;
00093     QSpinBox* boxParPoints;
00094     QSpinBox* boxPolarPoints;
00095     QStackedWidget* optionStack;
00096     QTextEdit* boxFunction;
00097     QWidget* functionPage;
00098     QWidget* polarPage;
00099     QWidget* parametricPage;
00100     QTableWidget *boxConstants;
00101 };
00102 
00103 #endif // FUNCTIONDIALOG_H

Generated on Tue Nov 3 10:48:51 2009 for QtiPlot by  doxygen 1.6.1