SurfaceDialog.h
Go to the documentation of this file.
/***************************************************************************
File : SurfaceDialog.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2006 by Ion Vasilief
Email (use @ for *) : ion_vasilief*yahoo.fr
Description : Define surface plot dialog
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301 USA *
* *
***************************************************************************/
#ifndef SURFACEDIALOG_H
#define SURFACEDIALOG_H
#include <QDialog>
class QPushButton;
class DoubleSpinBox;
class QCheckBox;
class QComboBox;
class QStackedWidget;
class QSpinBox;
class Graph3D;
class QLineEdit;
class ScriptEdit;
class SurfaceDialog : public QDialog
{
Q_OBJECT
public:
SurfaceDialog( QWidget* parent = 0, Qt::WFlags fl = 0 );
public slots:
void setFunction(Graph3D *);
void setParametricSurface(Graph3D *);
void setGraph(Graph3D *g){d_graph = g;};
private slots:
void clearFunction();
void accept();
void showFunctionLog();
void showXLog();
void showYLog();
void showZLog();
private:
Graph3D *d_graph;
void initFunctionPage();
void initParametricSurfacePage();
void acceptParametricSurface();
void acceptFunction();
QWidget* functionPage;
QWidget* parametricPage;
QStackedWidget* optionStack;
QPushButton* buttonOk;
QPushButton* buttonCancel;
QPushButton* buttonClear;
QComboBox* boxType;
ScriptEdit* boxFunction;
DoubleSpinBox* boxXFrom;
DoubleSpinBox* boxXTo;
DoubleSpinBox* boxYFrom;
DoubleSpinBox* boxYTo;
DoubleSpinBox* boxZFrom;
DoubleSpinBox* boxZTo;
ScriptEdit* boxX;
ScriptEdit* boxY;
ScriptEdit* boxZ;
DoubleSpinBox* boxUFrom;
DoubleSpinBox* boxUTo;
DoubleSpinBox* boxVFrom;
DoubleSpinBox* boxVTo;
QCheckBox *boxUPeriodic, *boxVPeriodic;
QSpinBox *boxColumns, *boxRows, *boxFuncColumns, *boxFuncRows;
QPushButton *buttonRecentFunc, *buttonXLog, *buttonYLog, *buttonZLog;
};
#endif
SurfaceDialog::buttonRecentFunc
QPushButton * buttonRecentFunc
Definition: SurfaceDialog.h:99
SurfaceDialog::setParametricSurface
void setParametricSurface(Graph3D *)
Definition: SurfaceDialog.cpp:488
SurfaceDialog::d_graph
Graph3D * d_graph
Definition: SurfaceDialog.h:66
SurfaceDialog::boxVFrom
DoubleSpinBox * boxVFrom
Definition: SurfaceDialog.h:94
SurfaceDialog::initFunctionPage
void initFunctionPage()
Definition: SurfaceDialog.cpp:95
SurfaceDialog::boxYTo
DoubleSpinBox * boxYTo
Definition: SurfaceDialog.h:84
SurfaceDialog::boxYFrom
DoubleSpinBox * boxYFrom
Definition: SurfaceDialog.h:83
SurfaceDialog::showYLog
void showYLog()
Definition: SurfaceDialog.cpp:549
SurfaceDialog::boxUTo
DoubleSpinBox * boxUTo
Definition: SurfaceDialog.h:93
SurfaceDialog::boxRows
QSpinBox * boxRows
Definition: SurfaceDialog.h:98
SurfaceDialog::SurfaceDialog
SurfaceDialog(QWidget *parent=0, Qt::WFlags fl=0)
Definition: SurfaceDialog.cpp:50
SurfaceDialog::buttonXLog
QPushButton * buttonXLog
Definition: SurfaceDialog.h:99
SurfaceDialog::boxFunction
ScriptEdit * boxFunction
Definition: SurfaceDialog.h:80
SurfaceDialog::boxXFrom
DoubleSpinBox * boxXFrom
Definition: SurfaceDialog.h:81
SurfaceDialog::boxFuncColumns
QSpinBox * boxFuncColumns
Definition: SurfaceDialog.h:98
SurfaceDialog::boxXTo
DoubleSpinBox * boxXTo
Definition: SurfaceDialog.h:82
SurfaceDialog::boxX
ScriptEdit * boxX
Definition: SurfaceDialog.h:88
SurfaceDialog::parametricPage
QWidget * parametricPage
Definition: SurfaceDialog.h:74
SurfaceDialog::setFunction
void setFunction(Graph3D *)
Definition: SurfaceDialog.cpp:334
DoubleSpinBox
A QDoubleSpinBox allowing to customize numbers display with respect to locale settings.
Definition: DoubleSpinBox.h:39
SurfaceDialog::boxType
QComboBox * boxType
Definition: SurfaceDialog.h:79
SurfaceDialog::boxVTo
DoubleSpinBox * boxVTo
Definition: SurfaceDialog.h:95
SurfaceDialog
Define surface plot dialog.
Definition: SurfaceDialog.h:45
SurfaceDialog::boxUFrom
DoubleSpinBox * boxUFrom
Definition: SurfaceDialog.h:92
SurfaceDialog::acceptParametricSurface
void acceptParametricSurface()
Definition: SurfaceDialog.cpp:363
SurfaceDialog::boxZ
ScriptEdit * boxZ
Definition: SurfaceDialog.h:90
ScriptEdit
Editor widget with support for evaluating expressions and executing code.
Definition: ScriptEdit.h:50
SurfaceDialog::buttonOk
QPushButton * buttonOk
Definition: SurfaceDialog.h:76
Graph3D
3D graph widget.
Definition: Graph3D.h:62
SurfaceDialog::buttonZLog
QPushButton * buttonZLog
Definition: SurfaceDialog.h:99
SurfaceDialog::accept
void accept()
Definition: SurfaceDialog.cpp:355
SurfaceDialog::boxFuncRows
QSpinBox * boxFuncRows
Definition: SurfaceDialog.h:98
SurfaceDialog::initParametricSurfacePage
void initParametricSurfacePage()
Definition: SurfaceDialog.cpp:199
SurfaceDialog::showXLog
void showXLog()
Definition: SurfaceDialog.cpp:532
SurfaceDialog::boxZFrom
DoubleSpinBox * boxZFrom
Definition: SurfaceDialog.h:85
SurfaceDialog::optionStack
QStackedWidget * optionStack
Definition: SurfaceDialog.h:75
SurfaceDialog::boxUPeriodic
QCheckBox * boxUPeriodic
Definition: SurfaceDialog.h:97
SurfaceDialog::functionPage
QWidget * functionPage
Definition: SurfaceDialog.h:73
SurfaceDialog::clearFunction
void clearFunction()
Definition: SurfaceDialog.cpp:324
SurfaceDialog::buttonYLog
QPushButton * buttonYLog
Definition: SurfaceDialog.h:99
SurfaceDialog::showFunctionLog
void showFunctionLog()
Definition: SurfaceDialog.cpp:515
SurfaceDialog::boxColumns
QSpinBox * boxColumns
Definition: SurfaceDialog.h:98
SurfaceDialog::boxZTo
DoubleSpinBox * boxZTo
Definition: SurfaceDialog.h:86
SurfaceDialog::buttonCancel
QPushButton * buttonCancel
Definition: SurfaceDialog.h:77
SurfaceDialog::setGraph
void setGraph(Graph3D *g)
Definition: SurfaceDialog.h:55
SurfaceDialog::boxY
ScriptEdit * boxY
Definition: SurfaceDialog.h:89
SurfaceDialog::boxVPeriodic
QCheckBox * boxVPeriodic
Definition: SurfaceDialog.h:97
SurfaceDialog::buttonClear
QPushButton * buttonClear
Definition: SurfaceDialog.h:78
SurfaceDialog::showZLog
void showZLog()
Definition: SurfaceDialog.cpp:566
SurfaceDialog::acceptFunction
void acceptFunction()
Definition: SurfaceDialog.cpp:436