IntDialog.h
Go to the documentation of this file.
/***************************************************************************
File : IntDialog.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2004-2010 by Ion Vasilief
Email (use @ for *) : ion_vasilief*yahoo.fr
Description : Integration options 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 INTDIALOG_H
#define INTDIALOG_H
#include <QDialog>
class QComboBox;
class QPushButton;
class QCheckBox;
class QLineEdit;
class ScriptEdit;
class QSpinBox;
class DoubleSpinBox;
class Graph;
class IntDialog : public QDialog
{
Q_OBJECT
public:
IntDialog(QWidget* parent = 0, Graph *g = 0, Qt::WFlags fl = 0 );
private slots:
void accept();
void showFunctionLog();
void insertFunction();
void clearFunction();
private:
bool validInput(const QString& function);
Graph *d_graph;
QPushButton* buttonOk;
QPushButton* buttonCancel;
QCheckBox* boxPlot;
ScriptEdit* boxFunction;
QLineEdit* boxVariable;
QSpinBox* boxSteps;
DoubleSpinBox* boxStart;
DoubleSpinBox* boxEnd;
DoubleSpinBox* boxTol;
QPushButton *buttonFunctionLog, *addFunctionBtn, *buttonClear;
QComboBox* boxMathFunctions;
};
#endif
IntDialog::d_graph
Graph * d_graph
Definition: IntDialog.h:60
IntDialog::insertFunction
void insertFunction()
Definition: IntDialog.cpp:228
Graph
A 2D-plotting widget.
Definition: Graph.h:123
IntDialog::boxStart
DoubleSpinBox * boxStart
Definition: IntDialog.h:68
IntDialog
Integration options dialog.
Definition: IntDialog.h:44
IntDialog::buttonClear
QPushButton * buttonClear
Definition: IntDialog.h:72
IntDialog::boxPlot
QCheckBox * boxPlot
Definition: IntDialog.h:64
IntDialog::boxSteps
QSpinBox * boxSteps
Definition: IntDialog.h:67
IntDialog::buttonCancel
QPushButton * buttonCancel
Definition: IntDialog.h:63
IntDialog::clearFunction
void clearFunction()
Definition: IntDialog.cpp:235
DoubleSpinBox
A QDoubleSpinBox allowing to customize numbers display with respect to locale settings.
Definition: DoubleSpinBox.h:39
IntDialog::validInput
bool validInput(const QString &function)
Definition: IntDialog.cpp:165
ScriptEdit
Editor widget with support for evaluating expressions and executing code.
Definition: ScriptEdit.h:50
IntDialog::IntDialog
IntDialog(QWidget *parent=0, Graph *g=0, Qt::WFlags fl=0)
Definition: IntDialog.cpp:50
IntDialog::boxTol
DoubleSpinBox * boxTol
Definition: IntDialog.h:70
IntDialog::accept
void accept()
Definition: IntDialog.cpp:143
IntDialog::showFunctionLog
void showFunctionLog()
Definition: IntDialog.cpp:240
IntDialog::boxVariable
QLineEdit * boxVariable
Definition: IntDialog.h:66
IntDialog::boxMathFunctions
QComboBox * boxMathFunctions
Definition: IntDialog.h:73
IntDialog::addFunctionBtn
QPushButton * addFunctionBtn
Definition: IntDialog.h:72
IntDialog::buttonOk
QPushButton * buttonOk
Definition: IntDialog.h:62
IntDialog::boxFunction
ScriptEdit * boxFunction
Definition: IntDialog.h:65
IntDialog::buttonFunctionLog
QPushButton * buttonFunctionLog
Definition: IntDialog.h:72
IntDialog::boxEnd
DoubleSpinBox * boxEnd
Definition: IntDialog.h:69