Function dialog. More...
#include <FunctionDialog.h>
Function dialog.
FunctionDialog::FunctionDialog | ( | ApplicationWindow * | parent, | |
bool | standAlone = true , |
|||
Qt::WFlags | fl = 0 | |||
) |
References accept(), addFunctionBtn, boxConstants, boxFrom, boxFunction, boxFunctionExplain, boxMathFunctions, boxParameter, boxParFrom, boxParPoints, boxParTo, boxPoints, boxPolarFrom, boxPolarParameter, boxPolarPoints, boxPolarRadius, boxPolarTheta, boxPolarTo, boxTo, boxType, boxXFunction, boxYFunction, buttonCancel, buttonClear, buttonFunctionLog, buttonOk, buttonPolarRadiusLog, buttonPolarRThetaLog, buttonXParLog, buttonYParLog, clearList(), curveID, d_app, ApplicationWindow::d_decimal_digits, ScriptEdit::enableShortcuts(), functionPage, MyParser::functionsList(), graph, guessConstants(), insertFunction(), M_PI, optionStack, parametricPage, polarPage, raiseWidget(), scripted::scriptingEnv(), setActiveEditor(), DoubleSpinBox::setDecimals(), DoubleSpinBox::setValue(), showFunctionLog(), showPolarRadiusLog(), showPolarThetaLog(), showXParLog(), showYParLog(), and updateFunctionExplain().
void FunctionDialog::accept | ( | ) | [slot] |
References acceptFunction(), acceptParametric(), acceptPolar(), and boxType.
Referenced by PlotDialog::acceptParams(), FunctionDialog(), guessConstants(), and setCurveToModify().
void FunctionDialog::acceptFunction | ( | ) | [protected, slot] |
References MultiLayer::activeLayer(), Graph::addFunction(), boxConstants, boxFrom, boxFunction, boxPoints, boxTo, boxType, Graph::curve(), Graph::curveCount(), curveID, d_app, graph, Graph::modifyFunctionCurve(), ApplicationWindow::newFunctionPlot(), setConstants(), ApplicationWindow::updateFunctionLists(), and DoubleSpinBox::value().
Referenced by accept().
void FunctionDialog::acceptParametric | ( | ) | [protected, slot] |
References MultiLayer::activeLayer(), Graph::addFunction(), boxConstants, boxParameter, boxParFrom, boxParPoints, boxParTo, boxType, boxXFunction, boxYFunction, Graph::curve(), Graph::curveCount(), curveID, d_app, graph, Graph::modifyFunctionCurve(), ApplicationWindow::newFunctionPlot(), setConstants(), ApplicationWindow::updateFunctionLists(), and DoubleSpinBox::value().
Referenced by accept().
void FunctionDialog::acceptPolar | ( | ) | [protected, slot] |
References MultiLayer::activeLayer(), Graph::addFunction(), boxConstants, boxPolarFrom, boxPolarParameter, boxPolarPoints, boxPolarRadius, boxPolarTheta, boxPolarTo, boxType, Graph::curve(), Graph::curveCount(), curveID, d_app, graph, Graph::modifyFunctionCurve(), ApplicationWindow::newFunctionPlot(), setConstants(), ApplicationWindow::updateFunctionLists(), and DoubleSpinBox::value().
Referenced by accept().
void FunctionDialog::clearList | ( | ) | [slot] |
References boxFunction, boxPolarRadius, boxPolarTheta, boxType, boxXFunction, and boxYFunction.
Referenced by FunctionDialog().
void FunctionDialog::guessConstants | ( | ) | [protected, slot] |
References accept(), boxConstants, boxFunction, boxParameter, boxPolarParameter, boxPolarRadius, boxPolarTheta, boxType, boxXFunction, boxYFunction, d_stand_alone, NonLinearFit::guessParameters(), and DoubleSpinBox::setValue().
Referenced by FunctionDialog(), and raiseWidget().
void FunctionDialog::insertFunction | ( | ) | [protected, slot] |
References boxFunction, boxMathFunctions, boxPolarRadius, boxPolarTheta, boxXFunction, boxYFunction, d_active_editor, functionPage, ScriptEdit::insertFunction(), optionStack, parametricPage, and polarPage.
Referenced by FunctionDialog().
void FunctionDialog::raiseWidget | ( | int | index | ) | [protected, slot] |
References guessConstants(), and optionStack.
Referenced by FunctionDialog().
void FunctionDialog::setActiveEditor | ( | ScriptEdit * | edit | ) | [inline, protected, slot] |
References d_active_editor.
Referenced by FunctionDialog().
void FunctionDialog::setConstants | ( | FunctionCurve * | c, | |
const QMap< QString, double > & | constants | |||
) | [private] |
References graph, FunctionCurve::loadData(), FunctionCurve::setConstants(), Graph::updateMarkersBoundingRect(), and Graph::updateSecondaryAxis().
Referenced by acceptFunction(), acceptParametric(), and acceptPolar().
void FunctionDialog::setCurveToModify | ( | FunctionCurve * | c | ) |
References Graph::curveIndex(), and setCurveToModify().
void FunctionDialog::setCurveToModify | ( | Graph * | g, | |
int | curve | |||
) |
References accept(), boxConstants, boxFrom, boxFunction, boxParameter, boxParFrom, boxParPoints, boxParTo, boxPoints, boxPolarFrom, boxPolarParameter, boxPolarPoints, boxPolarRadius, boxPolarTheta, boxPolarTo, boxTo, boxType, boxXFunction, boxYFunction, FunctionCurve::constants(), Graph::curve(), curveID, FunctionCurve::endRange(), FunctionCurve::formulas(), FunctionCurve::functionType(), graph, optionStack, DoubleSpinBox::setValue(), FunctionCurve::startRange(), and FunctionCurve::variable().
Referenced by PlotDialog::insertTabs(), PlotDialog::setActiveCurve(), setCurveToModify(), and ApplicationWindow::showFunctionDialog().
void FunctionDialog::setGraph | ( | Graph * | g | ) | [inline] |
References graph.
Referenced by ApplicationWindow::addFunctionCurve().
void FunctionDialog::showFunctionLog | ( | ) | [protected, slot] |
References boxFunction, d_app, and ApplicationWindow::d_recent_functions.
Referenced by FunctionDialog().
void FunctionDialog::showPolarRadiusLog | ( | ) | [protected, slot] |
References boxPolarRadius, d_app, and ApplicationWindow::rFunctions.
Referenced by FunctionDialog().
void FunctionDialog::showPolarThetaLog | ( | ) | [protected, slot] |
References boxPolarTheta, d_app, and ApplicationWindow::thetaFunctions.
Referenced by FunctionDialog().
void FunctionDialog::showXParLog | ( | ) | [protected, slot] |
References boxXFunction, d_app, and ApplicationWindow::xFunctions.
Referenced by FunctionDialog().
void FunctionDialog::showYParLog | ( | ) | [protected, slot] |
References boxYFunction, d_app, and ApplicationWindow::yFunctions.
Referenced by FunctionDialog().
void FunctionDialog::updateFunctionExplain | ( | int | index | ) | [protected, slot] |
References boxFunctionExplain, and MyParser::explainFunction().
Referenced by FunctionDialog().
QPushButton* FunctionDialog::addFunctionBtn [private] |
Referenced by FunctionDialog().
QTableWidget* FunctionDialog::boxConstants [private] |
Referenced by acceptFunction(), acceptParametric(), acceptPolar(), FunctionDialog(), guessConstants(), and setCurveToModify().
DoubleSpinBox* FunctionDialog::boxFrom [private] |
Referenced by acceptFunction(), FunctionDialog(), and setCurveToModify().
ScriptEdit* FunctionDialog::boxFunction [private] |
Referenced by acceptFunction(), clearList(), FunctionDialog(), guessConstants(), insertFunction(), setCurveToModify(), and showFunctionLog().
QTextEdit* FunctionDialog::boxFunctionExplain [private] |
Referenced by FunctionDialog(), and updateFunctionExplain().
QComboBox* FunctionDialog::boxMathFunctions [private] |
Referenced by FunctionDialog(), and insertFunction().
QLineEdit* FunctionDialog::boxParameter [private] |
Referenced by acceptParametric(), FunctionDialog(), guessConstants(), and setCurveToModify().
DoubleSpinBox* FunctionDialog::boxParFrom [private] |
Referenced by acceptParametric(), FunctionDialog(), and setCurveToModify().
QSpinBox* FunctionDialog::boxParPoints [private] |
Referenced by acceptParametric(), FunctionDialog(), and setCurveToModify().
DoubleSpinBox* FunctionDialog::boxParTo [private] |
Referenced by acceptParametric(), FunctionDialog(), and setCurveToModify().
QSpinBox* FunctionDialog::boxPoints [private] |
Referenced by acceptFunction(), FunctionDialog(), and setCurveToModify().
DoubleSpinBox* FunctionDialog::boxPolarFrom [private] |
Referenced by acceptPolar(), FunctionDialog(), and setCurveToModify().
QLineEdit* FunctionDialog::boxPolarParameter [private] |
Referenced by acceptPolar(), FunctionDialog(), guessConstants(), and setCurveToModify().
QSpinBox* FunctionDialog::boxPolarPoints [private] |
Referenced by acceptPolar(), FunctionDialog(), and setCurveToModify().
ScriptEdit* FunctionDialog::boxPolarRadius [private] |
Referenced by acceptPolar(), clearList(), FunctionDialog(), guessConstants(), insertFunction(), setCurveToModify(), and showPolarRadiusLog().
ScriptEdit* FunctionDialog::boxPolarTheta [private] |
Referenced by acceptPolar(), clearList(), FunctionDialog(), guessConstants(), insertFunction(), setCurveToModify(), and showPolarThetaLog().
DoubleSpinBox* FunctionDialog::boxPolarTo [private] |
Referenced by acceptPolar(), FunctionDialog(), and setCurveToModify().
DoubleSpinBox* FunctionDialog::boxTo [private] |
Referenced by acceptFunction(), FunctionDialog(), and setCurveToModify().
QComboBox* FunctionDialog::boxType [private] |
Referenced by accept(), acceptFunction(), acceptParametric(), acceptPolar(), clearList(), FunctionDialog(), guessConstants(), and setCurveToModify().
ScriptEdit* FunctionDialog::boxXFunction [private] |
Referenced by acceptParametric(), clearList(), FunctionDialog(), guessConstants(), insertFunction(), setCurveToModify(), and showXParLog().
ScriptEdit* FunctionDialog::boxYFunction [private] |
Referenced by acceptParametric(), clearList(), FunctionDialog(), guessConstants(), insertFunction(), setCurveToModify(), and showYParLog().
QPushButton* FunctionDialog::buttonCancel [private] |
Referenced by FunctionDialog().
QPushButton* FunctionDialog::buttonClear [private] |
Referenced by FunctionDialog().
QPushButton* FunctionDialog::buttonFunctionLog [private] |
Referenced by FunctionDialog().
QPushButton* FunctionDialog::buttonOk [private] |
Referenced by FunctionDialog().
QPushButton * FunctionDialog::buttonPolarRadiusLog [private] |
Referenced by FunctionDialog().
QPushButton * FunctionDialog::buttonPolarRThetaLog [private] |
Referenced by FunctionDialog().
QPushButton * FunctionDialog::buttonXParLog [private] |
Referenced by FunctionDialog().
QPushButton * FunctionDialog::buttonYParLog [private] |
Referenced by FunctionDialog().
int FunctionDialog::curveID [private] |
Referenced by acceptFunction(), acceptParametric(), acceptPolar(), FunctionDialog(), and setCurveToModify().
ScriptEdit* FunctionDialog::d_active_editor [private] |
Referenced by insertFunction(), and setActiveEditor().
ApplicationWindow* FunctionDialog::d_app [private] |
bool FunctionDialog::d_stand_alone [private] |
Referenced by guessConstants().
QWidget* FunctionDialog::functionPage [private] |
Referenced by FunctionDialog(), and insertFunction().
Graph* FunctionDialog::graph [private] |
Referenced by acceptFunction(), acceptParametric(), acceptPolar(), FunctionDialog(), setConstants(), setCurveToModify(), and setGraph().
QStackedWidget* FunctionDialog::optionStack [private] |
Referenced by FunctionDialog(), insertFunction(), raiseWidget(), and setCurveToModify().
QWidget* FunctionDialog::parametricPage [private] |
Referenced by FunctionDialog(), and insertFunction().
QWidget* FunctionDialog::polarPage [private] |
Referenced by FunctionDialog(), and insertFunction().
QLabel* FunctionDialog::textFunction [private] |