00001
00002
00003 #ifndef FUNCTIONDIALOG_H
00004 #define FUNCTIONDIALOG_H
00005
00006 #include <klineedit.h>
00007 #include <qtoolbutton.h>
00008 #include <qcheckbox.h>
00009 #include <qcolor.h>
00010 #include "Dialog.h"
00011 #include "Worksheet.h"
00012 #include "GraphListDialog.h"
00013 #include "Graph2D.h"
00014
00015 class FunctionDialog: public Dialog
00016 {
00017 Q_OBJECT
00018 public:
00019 FunctionDialog(Worksheet *p, const char *name, ListDialog *l, int item, PType newtype);
00020 public slots:
00021 int addFunction();
00022 void setLabel() { labelle->setText(funle->text()); }
00023 private slots :
00024 int agree();
00025 void ok_clicked() { if (!agree()) accept(); }
00026 private:
00027 class MainWin *mw;
00028 KLineEdit *funle, *labelle, *xmin, *xmax, *ymin, *ymax, *nx, *ny;
00029 QCheckBox *reread;
00030 ListDialog *l;
00031 int item;
00032 PType type;
00033 Graph *graph;
00034 };
00035 #endif //FUNCTIONDIALOG_H