1
/***************************************************************************
2
File : FunctionDialog.h
4
--------------------------------------------------------------------
5
Copyright : (C) 2006 by Ion Vasilief, Tilman Hoener zu Siederdissen
6
Email (use @ for *) : ion_vasilief*yahoo.fr, thzs*gmx.net
7
Description : Function dialog
9
***************************************************************************/
11
/***************************************************************************
13
* This program is free software; you can redistribute it and/or modify *
14
* it under the terms of the GNU General Public License as published by *
15
* the Free Software Foundation; either version 2 of the License, or *
16
* (at your option) any later version. *
18
* This program is distributed in the hope that it will be useful, *
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21
* GNU General Public License for more details. *
23
* You should have received a copy of the GNU General Public License *
24
* along with this program; if not, write to the Free Software *
25
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
26
* Boston, MA 02110-1301 USA *
28
***************************************************************************/
29
#ifndef FUNCTIONDIALOG_H
30
#define FUNCTIONDIALOG_H
44
class FunctionDialog : public QDialog
49
FunctionDialog( QWidget* parent = 0, const char* name = 0, bool modal = false, Qt::WFlags fl = 0 );
52
QComboBox* boxXFunction;
53
QComboBox* boxYFunction;
54
QComboBox* boxPolarRadius;
55
QComboBox* boxPolarTheta;
60
QLineEdit* boxParameter;
61
QLineEdit* boxParFrom;
63
QLineEdit* boxPolarParameter;
64
QLineEdit* boxPolarFrom;
65
QLineEdit* boxPolarTo;
66
QPushButton* buttonClear;
67
QPushButton* buttonCancel;
68
QPushButton* buttonOk;
70
QSpinBox* boxParPoints;
71
QSpinBox* boxPolarPoints;
72
QStackedWidget* optionStack;
73
QTextEdit* boxFunction;
74
QWidget* functionPage;
76
QWidget* parametricPage;
79
void raiseWidget(int index);
83
void acceptFunction();
84
void acceptParametric();
86
void setCurveToModify(Graph *g, int curve);
87
void insertParamFunctionsList(const QStringList& xList, const QStringList& yList);
88
void insertPolarFunctionsList(const QStringList& rList, const QStringList& thetaList);
90
void setGraph(Graph *g){graph = g;};
93
void clearParamFunctionsList();
94
void clearPolarFunctionsList();
101
#endif // FUNCTIONDIALOG_H