#include <FunctionDialog.h>
Public Slots | |
void | accept () |
void | acceptFunction () |
void | acceptParametric () |
void | acceptPolar () |
void | clearList () |
void | insertParamFunctionsList (const QStringList &xList, const QStringList &yList) |
void | insertPolarFunctionsList (const QStringList &rList, const QStringList &thetaList) |
void | setCurveToModify (Graph *g, int curve) |
void | setGraph (Graph *g) |
Signals | |
void | clearParamFunctionsList () |
void | clearPolarFunctionsList () |
Public Member Functions | |
FunctionDialog (QWidget *parent=0, Qt::WFlags fl=0) | |
Protected Slots | |
void | raiseWidget (int index) |
Protected Attributes | |
DoubleSpinBox * | boxFrom |
QTextEdit * | boxFunction |
QLineEdit * | boxParameter |
QLineEdit * | boxParFrom |
QSpinBox * | boxParPoints |
QLineEdit * | boxParTo |
QSpinBox * | boxPoints |
QLineEdit * | boxPolarFrom |
QLineEdit * | boxPolarParameter |
QSpinBox * | boxPolarPoints |
QComboBox * | boxPolarRadius |
QComboBox * | boxPolarTheta |
QLineEdit * | boxPolarTo |
DoubleSpinBox * | boxTo |
QComboBox * | boxType |
QComboBox * | boxXFunction |
QComboBox * | boxYFunction |
QPushButton * | buttonCancel |
QPushButton * | buttonClear |
QPushButton * | buttonOk |
QWidget * | functionPage |
QStackedWidget * | optionStack |
QWidget * | parametricPage |
QWidget * | polarPage |
QLabel * | textFunction |
Private Attributes | |
int | curveID |
Graph * | graph |
FunctionDialog::FunctionDialog | ( | QWidget * | parent = 0 , |
|
Qt::WFlags | fl = 0 | |||
) |
References accept(), boxFrom, boxFunction, boxParameter, boxParFrom, boxParPoints, boxParTo, boxPoints, boxPolarFrom, boxPolarParameter, boxPolarPoints, boxPolarRadius, boxPolarTheta, boxPolarTo, boxTo, boxType, boxXFunction, boxYFunction, buttonCancel, buttonClear, buttonOk, clearList(), curveID, ApplicationWindow::d_decimal_digits, functionPage, graph, ApplicationWindow::locale(), optionStack, parametricPage, polarPage, raiseWidget(), DoubleSpinBox::setDecimals(), and DoubleSpinBox::setValue().
void FunctionDialog::accept | ( | ) | [slot] |
References acceptFunction(), acceptParametric(), acceptPolar(), and boxType.
Referenced by FunctionDialog().
void FunctionDialog::acceptFunction | ( | ) | [slot] |
void FunctionDialog::acceptParametric | ( | ) | [slot] |
References MultiLayer::activeLayer(), Graph::addFunction(), boxParameter, boxParFrom, boxParPoints, boxParTo, boxType, boxXFunction, boxYFunction, curveID, graph, Graph::modifyFunctionCurve(), ApplicationWindow::newFunctionPlot(), and ApplicationWindow::updateFunctionLists().
Referenced by accept().
void FunctionDialog::acceptPolar | ( | ) | [slot] |
References MultiLayer::activeLayer(), Graph::addFunction(), boxPolarFrom, boxPolarParameter, boxPolarPoints, boxPolarRadius, boxPolarTheta, boxPolarTo, boxType, curveID, graph, Graph::modifyFunctionCurve(), ApplicationWindow::newFunctionPlot(), and ApplicationWindow::updateFunctionLists().
Referenced by accept().
void FunctionDialog::clearList | ( | ) | [slot] |
References boxFunction, boxPolarRadius, boxPolarTheta, boxType, boxXFunction, boxYFunction, clearParamFunctionsList(), and clearPolarFunctionsList().
Referenced by FunctionDialog().
void FunctionDialog::clearParamFunctionsList | ( | ) | [signal] |
Referenced by clearList().
void FunctionDialog::clearPolarFunctionsList | ( | ) | [signal] |
Referenced by clearList().
void FunctionDialog::insertParamFunctionsList | ( | const QStringList & | xList, | |
const QStringList & | yList | |||
) | [slot] |
void FunctionDialog::insertPolarFunctionsList | ( | const QStringList & | rList, | |
const QStringList & | thetaList | |||
) | [slot] |
void FunctionDialog::raiseWidget | ( | int | index | ) | [protected, slot] |
void FunctionDialog::setCurveToModify | ( | Graph * | g, | |
int | curve | |||
) | [slot] |
References boxFrom, boxFunction, boxParameter, boxParFrom, boxParPoints, boxParTo, boxPoints, boxPolarFrom, boxPolarParameter, boxPolarPoints, boxPolarRadius, boxPolarTheta, boxPolarTo, boxTo, boxType, boxXFunction, boxYFunction, Graph::curve(), curveID, FunctionCurve::endRange(), FunctionCurve::formulas(), FunctionCurve::functionType(), graph, FunctionCurve::Normal, optionStack, FunctionCurve::Parametric, FunctionCurve::Polar, DoubleSpinBox::setValue(), FunctionCurve::startRange(), and FunctionCurve::variable().
Referenced by ApplicationWindow::showFunctionDialog().
void FunctionDialog::setGraph | ( | Graph * | g | ) | [inline, slot] |
DoubleSpinBox* FunctionDialog::boxFrom [protected] |
Referenced by acceptFunction(), FunctionDialog(), and setCurveToModify().
QTextEdit* FunctionDialog::boxFunction [protected] |
Referenced by acceptFunction(), clearList(), FunctionDialog(), and setCurveToModify().
QLineEdit* FunctionDialog::boxParameter [protected] |
Referenced by acceptParametric(), FunctionDialog(), and setCurveToModify().
QLineEdit* FunctionDialog::boxParFrom [protected] |
Referenced by acceptParametric(), FunctionDialog(), and setCurveToModify().
QSpinBox* FunctionDialog::boxParPoints [protected] |
Referenced by acceptParametric(), FunctionDialog(), and setCurveToModify().
QLineEdit* FunctionDialog::boxParTo [protected] |
Referenced by acceptParametric(), FunctionDialog(), and setCurveToModify().
QSpinBox* FunctionDialog::boxPoints [protected] |
Referenced by acceptFunction(), FunctionDialog(), and setCurveToModify().
QLineEdit* FunctionDialog::boxPolarFrom [protected] |
Referenced by acceptPolar(), FunctionDialog(), and setCurveToModify().
QLineEdit* FunctionDialog::boxPolarParameter [protected] |
Referenced by acceptPolar(), FunctionDialog(), and setCurveToModify().
QSpinBox* FunctionDialog::boxPolarPoints [protected] |
Referenced by acceptPolar(), FunctionDialog(), and setCurveToModify().
QComboBox* FunctionDialog::boxPolarRadius [protected] |
Referenced by acceptPolar(), clearList(), FunctionDialog(), insertPolarFunctionsList(), and setCurveToModify().
QComboBox* FunctionDialog::boxPolarTheta [protected] |
Referenced by acceptPolar(), clearList(), FunctionDialog(), insertPolarFunctionsList(), and setCurveToModify().
QLineEdit* FunctionDialog::boxPolarTo [protected] |
Referenced by acceptPolar(), FunctionDialog(), and setCurveToModify().
DoubleSpinBox* FunctionDialog::boxTo [protected] |
Referenced by acceptFunction(), FunctionDialog(), and setCurveToModify().
QComboBox* FunctionDialog::boxType [protected] |
Referenced by accept(), acceptFunction(), acceptParametric(), acceptPolar(), clearList(), FunctionDialog(), and setCurveToModify().
QComboBox* FunctionDialog::boxXFunction [protected] |
Referenced by acceptParametric(), clearList(), FunctionDialog(), insertParamFunctionsList(), and setCurveToModify().
QComboBox* FunctionDialog::boxYFunction [protected] |
Referenced by acceptParametric(), clearList(), FunctionDialog(), insertParamFunctionsList(), and setCurveToModify().
QPushButton* FunctionDialog::buttonCancel [protected] |
Referenced by FunctionDialog().
QPushButton* FunctionDialog::buttonClear [protected] |
Referenced by FunctionDialog(), and raiseWidget().
QPushButton* FunctionDialog::buttonOk [protected] |
Referenced by FunctionDialog().
int FunctionDialog::curveID [private] |
Referenced by acceptFunction(), acceptParametric(), acceptPolar(), FunctionDialog(), and setCurveToModify().
QWidget* FunctionDialog::functionPage [protected] |
Referenced by FunctionDialog().
Graph* FunctionDialog::graph [private] |
Referenced by acceptFunction(), acceptParametric(), acceptPolar(), FunctionDialog(), setCurveToModify(), and setGraph().
QStackedWidget* FunctionDialog::optionStack [protected] |
Referenced by FunctionDialog(), raiseWidget(), and setCurveToModify().
QWidget* FunctionDialog::parametricPage [protected] |
Referenced by FunctionDialog().
QWidget* FunctionDialog::polarPage [protected] |
Referenced by FunctionDialog().
QLabel* FunctionDialog::textFunction [protected] |