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 QStackedWidget;
00035 class QWidget;
00036 class QLineEdit;
00037 class QComboBox;
00038 class QPushButton;
00039 class QSpinBox;
00040 class QLabel;
00041 class QTextEdit;
00042 
00044 class FunctionDialog : public QDialog
00045 {
00046     Q_OBJECT
00047 
00048 public:
00049     FunctionDialog( QWidget* parent = 0, Qt::WFlags fl = 0 );
00050 
00051 protected:
00052     QComboBox* boxXFunction;
00053     QComboBox* boxYFunction;
00054     QComboBox* boxPolarRadius;
00055     QComboBox* boxPolarTheta;
00056     QComboBox* boxType;
00057     QLabel* textFunction;
00058     QLineEdit* boxFrom;
00059     QLineEdit* boxTo;
00060     QLineEdit* boxParameter;
00061     QLineEdit* boxParFrom;
00062     QLineEdit* boxParTo;
00063     QLineEdit* boxPolarParameter;
00064     QLineEdit* boxPolarFrom;
00065     QLineEdit* boxPolarTo;
00066     QPushButton* buttonClear;
00067     QPushButton* buttonCancel;
00068     QPushButton* buttonOk;
00069     QSpinBox* boxPoints;
00070     QSpinBox* boxParPoints;
00071     QSpinBox* boxPolarPoints;
00072     QStackedWidget* optionStack;
00073     QTextEdit* boxFunction;
00074     QWidget* functionPage;
00075     QWidget* polarPage;
00076     QWidget* parametricPage;
00077 
00078 protected slots:
00079     void raiseWidget(int index);
00080 
00081 public slots:
00082     void accept();
00083     void acceptFunction();
00084     void acceptParametric();
00085     void acceptPolar();
00086     void setCurveToModify(Graph *g, int curve);
00087     void insertParamFunctionsList(const QStringList& xList, const QStringList& yList);
00088     void insertPolarFunctionsList(const QStringList& rList, const QStringList& thetaList);
00089     void clearList();
00090     void setGraph(Graph *g){graph = g;};
00091 
00092 signals:
00093     void clearParamFunctionsList();
00094     void clearPolarFunctionsList();
00095 
00096 private:
00097     Graph *graph;
00098     int curveID;
00099 };
00100 
00101 #endif // FUNCTIONDIALOG_H

Generated on Thu Feb 7 13:59:26 2008 for QtiPlot by  doxygen 1.5.4