Function dialog.
More...
#include <FunctionDialog.h>
List of all members.
Public Slots |
bool | apply () |
Detailed Description
Constructor & Destructor Documentation
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().
Member Function Documentation
void FunctionDialog::accept |
( |
| ) |
|
|
privateslot |
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().
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().
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().
bool FunctionDialog::apply |
( |
| ) |
|
|
slot |
void FunctionDialog::buttonClicked |
( |
QAbstractButton * |
btn | ) |
|
|
privateslot |
void FunctionDialog::clearList |
( |
| ) |
|
|
privateslot |
void FunctionDialog::guessConstants |
( |
| ) |
|
|
privateslot |
References apply(), 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 |
( |
| ) |
|
|
privateslot |
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 | ) |
|
|
privateslot |
void FunctionDialog::setActiveEditor |
( |
ScriptEdit * |
edit | ) |
|
|
inlineprivateslot |
void FunctionDialog::setConstants |
( |
FunctionCurve * |
c, |
|
|
const QMap< QString, double > & |
constants |
|
) |
| |
|
private |
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().
void FunctionDialog::setGraph |
( |
Graph * |
g | ) |
|
|
inline |
void FunctionDialog::showFunctionLog |
( |
| ) |
|
|
privateslot |
void FunctionDialog::showPolarRadiusLog |
( |
| ) |
|
|
privateslot |
void FunctionDialog::showPolarThetaLog |
( |
| ) |
|
|
privateslot |
void FunctionDialog::showXParLog |
( |
| ) |
|
|
privateslot |
void FunctionDialog::showYParLog |
( |
| ) |
|
|
privateslot |
void FunctionDialog::updateFunctionExplain |
( |
int |
index | ) |
|
|
privateslot |
Member Data Documentation
QPushButton* FunctionDialog::addFunctionBtn |
|
private |
QTableWidget* FunctionDialog::boxConstants |
|
private |
QTextEdit* FunctionDialog::boxFunctionExplain |
|
private |
QComboBox* FunctionDialog::boxMathFunctions |
|
private |
QLineEdit* FunctionDialog::boxParameter |
|
private |
QSpinBox* FunctionDialog::boxParPoints |
|
private |
QSpinBox* FunctionDialog::boxPoints |
|
private |
QLineEdit* FunctionDialog::boxPolarParameter |
|
private |
QSpinBox* FunctionDialog::boxPolarPoints |
|
private |
QComboBox* FunctionDialog::boxType |
|
private |
QDialogButtonBox* FunctionDialog::buttonBox |
|
private |
QPushButton* FunctionDialog::buttonClear |
|
private |
QPushButton* FunctionDialog::buttonFunctionLog |
|
private |
QPushButton * FunctionDialog::buttonPolarRadiusLog |
|
private |
QPushButton * FunctionDialog::buttonPolarRThetaLog |
|
private |
QPushButton * FunctionDialog::buttonXParLog |
|
private |
QPushButton * FunctionDialog::buttonYParLog |
|
private |
int FunctionDialog::curveID |
|
private |
bool FunctionDialog::d_stand_alone |
|
private |
QWidget* FunctionDialog::functionPage |
|
private |
Graph* FunctionDialog::graph |
|
private |
QStackedWidget* FunctionDialog::optionStack |
|
private |
QWidget* FunctionDialog::parametricPage |
|
private |
QWidget* FunctionDialog::polarPage |
|
private |
QLabel* FunctionDialog::textFunction |
|
private |
The documentation for this class was generated from the following files: