SurfaceDialog.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     File                 : SurfaceDialog.h
00003     Project              : QtiPlot
00004     --------------------------------------------------------------------
00005     Copyright            : (C) 2006 by Ion Vasilief
00006     Email (use @ for *)  : ion_vasilief*yahoo.fr
00007     Description          : Define surface plot 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 SURFACEDIALOG_H
00030 #define SURFACEDIALOG_H
00031 
00032 #include <QDialog>
00033 
00034 class QPushButton;
00035 class DoubleSpinBox;
00036 class QCheckBox;
00037 class QComboBox;
00038 class QStackedWidget;
00039 class QSpinBox;
00040 class Graph3D;
00041 class QLineEdit;
00042 class ScriptEdit;
00043 
00045 class SurfaceDialog : public QDialog
00046 {
00047     Q_OBJECT
00048 
00049 public:
00050     SurfaceDialog( QWidget* parent = 0, Qt::WFlags fl = 0 );
00051 
00052 public slots:
00053     void setFunction(Graph3D *);
00054     void setParametricSurface(Graph3D *);
00055     void setGraph(Graph3D *g){d_graph = g;};
00056 
00057 private slots:
00058     void clearFunction();
00059     void accept();
00060     void showFunctionLog();
00061     void showXLog();
00062     void showYLog();
00063     void showZLog();
00064 
00065 private:
00066     Graph3D *d_graph;
00067 
00068     void initFunctionPage();
00069     void initParametricSurfacePage();
00070     void acceptParametricSurface();
00071     void acceptFunction();
00072 
00073     QWidget* functionPage;
00074     QWidget* parametricPage;
00075     QStackedWidget* optionStack;
00076     QPushButton* buttonOk;
00077     QPushButton* buttonCancel;
00078     QPushButton* buttonClear;
00079     QComboBox* boxType;
00080     ScriptEdit* boxFunction;
00081     DoubleSpinBox* boxXFrom;
00082     DoubleSpinBox* boxXTo;
00083     DoubleSpinBox* boxYFrom;
00084     DoubleSpinBox* boxYTo;
00085     DoubleSpinBox* boxZFrom;
00086     DoubleSpinBox* boxZTo;
00087 
00088     ScriptEdit* boxX;
00089     ScriptEdit* boxY;
00090     ScriptEdit* boxZ;
00091 
00092     DoubleSpinBox* boxUFrom;
00093     DoubleSpinBox* boxUTo;
00094     DoubleSpinBox* boxVFrom;
00095     DoubleSpinBox* boxVTo;
00096 
00097     QCheckBox *boxUPeriodic, *boxVPeriodic;
00098     QSpinBox *boxColumns, *boxRows, *boxFuncColumns, *boxFuncRows;
00099     QPushButton *buttonRecentFunc, *buttonXLog, *buttonYLog, *buttonZLog;
00100 };
00101 
00102 #endif