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 00044 class SurfaceDialog : public QDialog 00045 { 00046 Q_OBJECT 00047 00048 public: 00049 SurfaceDialog( QWidget* parent = 0, Qt::WFlags fl = 0 ); 00050 00051 public slots: 00052 void setFunction(Graph3D *); 00053 void setParametricSurface(Graph3D *); 00054 void setGraph(Graph3D *g){d_graph = g;}; 00055 00056 private slots: 00057 void clearList(); 00058 void accept(); 00059 00060 private: 00061 Graph3D *d_graph; 00062 00063 void initFunctionPage(); 00064 void initParametricSurfacePage(); 00065 void acceptParametricSurface(); 00066 void acceptFunction(); 00067 00068 QWidget* functionPage; 00069 QWidget* parametricPage; 00070 QStackedWidget* optionStack; 00071 QPushButton* buttonOk; 00072 QPushButton* buttonCancel; 00073 QPushButton* buttonClear; 00074 QComboBox* boxType; 00075 QComboBox* boxFunction; 00076 DoubleSpinBox* boxXFrom; 00077 DoubleSpinBox* boxXTo; 00078 DoubleSpinBox* boxYFrom; 00079 DoubleSpinBox* boxYTo; 00080 DoubleSpinBox* boxZFrom; 00081 DoubleSpinBox* boxZTo; 00082 00083 QLineEdit* boxX; 00084 QLineEdit* boxY; 00085 QLineEdit* boxZ; 00086 00087 QLineEdit* boxUFrom; 00088 QLineEdit* boxUTo; 00089 QLineEdit* boxVFrom; 00090 QLineEdit* boxVTo; 00091 00092 QCheckBox *boxUPeriodic, *boxVPeriodic; 00093 QSpinBox *boxColumns, *boxRows, *boxFuncColumns, *boxFuncRows; 00094 }; 00095 00096 #endif