QtiPlot  0.9.8.2
SurfaceDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : SurfaceDialog.h
3  Project : QtiPlot
4  --------------------------------------------------------------------
5  Copyright : (C) 2006 by Ion Vasilief
6  Email (use @ for *) : ion_vasilief*yahoo.fr
7  Description : Define surface plot dialog
8 
9  ***************************************************************************/
10 
11 /***************************************************************************
12  * *
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. *
17  * *
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. *
22  * *
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 *
27  * *
28  ***************************************************************************/
29 #ifndef SURFACEDIALOG_H
30 #define SURFACEDIALOG_H
31 
32 #include <QDialog>
33 
34 class QPushButton;
35 class DoubleSpinBox;
36 class QCheckBox;
37 class QComboBox;
38 class QStackedWidget;
39 class QSpinBox;
40 class Graph3D;
41 class QLineEdit;
42 class ScriptEdit;
43 
45 class SurfaceDialog : public QDialog
46 {
47  Q_OBJECT
48 
49 public:
50  SurfaceDialog( QWidget* parent = 0, Qt::WFlags fl = 0 );
51 
52 public slots:
53  void setFunction(Graph3D *);
55  void setGraph(Graph3D *g){d_graph = g;};
56 
57 private slots:
58  void clearFunction();
59  void accept();
60  void showFunctionLog();
61  void showXLog();
62  void showYLog();
63  void showZLog();
64 
65 private:
67 
68  void initFunctionPage();
71  void acceptFunction();
72 
73  QWidget* functionPage;
74  QWidget* parametricPage;
75  QStackedWidget* optionStack;
76  QPushButton* buttonOk;
77  QPushButton* buttonCancel;
78  QPushButton* buttonClear;
79  QComboBox* boxType;
87 
91 
96 
97  QCheckBox *boxUPeriodic, *boxVPeriodic;
100 };
101 
102 #endif