Function dialog.
More...
#include <FunctionDialog.h>
§ FunctionDialog()
FunctionDialog::FunctionDialog |
( |
ApplicationWindow * |
parent, |
|
|
bool |
standAlone = true , |
|
|
Qt::WFlags |
fl = 0 |
|
) |
| |
References addFunctionBtn, boxConstants, boxFrom, boxFunction, boxFunctionExplain, boxMathFunctions, boxParameter, boxParFrom, boxParPoints, boxParTo, boxPoints, boxPolarFrom, boxPolarParameter, boxPolarPoints, boxPolarRadius, boxPolarTheta, boxPolarTo, boxTo, boxType, boxXFunction, boxYFunction, buttonBox, buttonClear, buttonClicked(), buttonFunctionLog, 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().
§ accept
void FunctionDialog::accept |
( |
| ) |
|
|
privateslot |
§ acceptFunction
bool FunctionDialog::acceptFunction |
( |
| ) |
|
|
privateslot |
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 apply(), and setGraph().
§ acceptParametric
bool FunctionDialog::acceptParametric |
( |
| ) |
|
|
privateslot |
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 apply(), and setGraph().
§ acceptPolar
bool FunctionDialog::acceptPolar |
( |
| ) |
|
|
privateslot |
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 apply(), and setGraph().
§ apply
bool FunctionDialog::apply |
( |
| ) |
|
|
slot |
§ buttonClicked()
void FunctionDialog::buttonClicked |
( |
QAbstractButton * |
btn | ) |
|
|
private |
§ clearList()
void FunctionDialog::clearList |
( |
| ) |
|
|
private |
§ guessConstants()
void FunctionDialog::guessConstants |
( |
| ) |
|
|
private |
References apply(), boxConstants, boxFunction, boxParameter, boxPolarParameter, boxPolarRadius, boxPolarTheta, boxType, boxXFunction, boxYFunction, d_stand_alone, NonLinearFit::guessParameters(), and DoubleSpinBox::setValue().
Referenced by FunctionDialog(), raiseWidget(), and setActiveEditor().
§ insertFunction
void FunctionDialog::insertFunction |
( |
| ) |
|
|
privateslot |
References boxFunction, boxMathFunctions, boxPolarRadius, boxPolarTheta, boxXFunction, boxYFunction, d_active_editor, functionPage, ScriptEdit::insertFunction(), optionStack, parametricPage, and polarPage.
Referenced by FunctionDialog(), and setGraph().
§ raiseWidget
void FunctionDialog::raiseWidget |
( |
int |
index | ) |
|
|
privateslot |
§ setActiveEditor
void FunctionDialog::setActiveEditor |
( |
ScriptEdit * |
edit | ) |
|
|
inlineprivateslot |
§ setConstants()
void FunctionDialog::setConstants |
( |
FunctionCurve * |
c, |
|
|
const QMap< QString, double > & |
constants |
|
) |
| |
|
private |
§ setCurveToModify() [1/2]
void FunctionDialog::setCurveToModify |
( |
Graph * |
g, |
|
|
int |
curve |
|
) |
| |
References apply(), 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, FunctionCurve::Normal, optionStack, FunctionCurve::Parametric, FunctionCurve::Polar, DoubleSpinBox::setValue(), FunctionCurve::startRange(), and FunctionCurve::variable().
Referenced by PlotDialog::insertTabs(), PlotDialog::setActiveCurve(), setCurveToModify(), and ApplicationWindow::showFunctionDialog().
§ setCurveToModify() [2/2]
§ setGraph()
void FunctionDialog::setGraph |
( |
Graph * |
g | ) |
|
|
inline |
References accept(), acceptFunction(), acceptParametric(), acceptPolar(), apply(), graph, insertFunction(), raiseWidget(), showFunctionLog(), showPolarRadiusLog(), showPolarThetaLog(), showXParLog(), showYParLog(), and updateFunctionExplain().
Referenced by ApplicationWindow::addFunctionCurve().
§ showFunctionLog
void FunctionDialog::showFunctionLog |
( |
| ) |
|
|
privateslot |
§ showPolarRadiusLog
void FunctionDialog::showPolarRadiusLog |
( |
| ) |
|
|
privateslot |
§ showPolarThetaLog
void FunctionDialog::showPolarThetaLog |
( |
| ) |
|
|
privateslot |
§ showXParLog
void FunctionDialog::showXParLog |
( |
| ) |
|
|
privateslot |
§ showYParLog
void FunctionDialog::showYParLog |
( |
| ) |
|
|
privateslot |
§ updateFunctionExplain
void FunctionDialog::updateFunctionExplain |
( |
int |
index | ) |
|
|
privateslot |
§ addFunctionBtn
QPushButton* FunctionDialog::addFunctionBtn |
|
private |
§ boxConstants
QTableWidget* FunctionDialog::boxConstants |
|
private |
§ boxFrom
§ boxFunction
§ boxFunctionExplain
QTextEdit* FunctionDialog::boxFunctionExplain |
|
private |
§ boxMathFunctions
QComboBox* FunctionDialog::boxMathFunctions |
|
private |
§ boxParameter
QLineEdit* FunctionDialog::boxParameter |
|
private |
§ boxParFrom
§ boxParPoints
QSpinBox* FunctionDialog::boxParPoints |
|
private |
§ boxParTo
§ boxPoints
QSpinBox* FunctionDialog::boxPoints |
|
private |
§ boxPolarFrom
§ boxPolarParameter
QLineEdit* FunctionDialog::boxPolarParameter |
|
private |
§ boxPolarPoints
QSpinBox* FunctionDialog::boxPolarPoints |
|
private |
§ boxPolarRadius
§ boxPolarTheta
§ boxPolarTo
§ boxTo
§ boxType
QComboBox* FunctionDialog::boxType |
|
private |
§ boxXFunction
§ boxYFunction
§ buttonBox
QDialogButtonBox* FunctionDialog::buttonBox |
|
private |
§ buttonClear
QPushButton* FunctionDialog::buttonClear |
|
private |
§ buttonFunctionLog
QPushButton* FunctionDialog::buttonFunctionLog |
|
private |
§ buttonPolarRadiusLog
QPushButton * FunctionDialog::buttonPolarRadiusLog |
|
private |
§ buttonPolarRThetaLog
QPushButton * FunctionDialog::buttonPolarRThetaLog |
|
private |
§ buttonXParLog
QPushButton * FunctionDialog::buttonXParLog |
|
private |
§ buttonYParLog
QPushButton * FunctionDialog::buttonYParLog |
|
private |
§ curveID
int FunctionDialog::curveID |
|
private |
§ d_active_editor
§ d_app
§ d_stand_alone
bool FunctionDialog::d_stand_alone |
|
private |
§ functionPage
QWidget* FunctionDialog::functionPage |
|
private |
§ graph
Graph* FunctionDialog::graph |
|
private |
§ optionStack
QStackedWidget* FunctionDialog::optionStack |
|
private |
§ parametricPage
QWidget* FunctionDialog::parametricPage |
|
private |
§ polarPage
QWidget* FunctionDialog::polarPage |
|
private |
§ textFunction
QLabel* FunctionDialog::textFunction |
|
private |
The documentation for this class was generated from the following files: