Set matrix values dialog. More...
#include <MatrixValuesDialog.h>
Public Member Functions | |
MatrixValuesDialog (ScriptingEnv *env, QWidget *parent=0, Qt::WFlags fl=0) | |
void | setCompleter (QCompleter *) |
void | setMatrix (Matrix *m) |
Private Slots | |
void | addCell () |
bool | apply () |
void | insertExplain (int index) |
void | insertFunction () |
Private Member Functions | |
void | closeEvent (QCloseEvent *) |
void | customEvent (QEvent *e) |
QSize | sizeHint () const |
Private Attributes | |
QPushButton * | btnAddCell |
QPushButton * | btnAddFunction |
QPushButton * | btnApply |
QPushButton * | btnCancel |
ScriptEdit * | commands |
QSpinBox * | endCol |
QSpinBox * | endRow |
QTextEdit * | explain |
QComboBox * | functions |
Matrix * | matrix |
QSpinBox * | startCol |
QSpinBox * | startRow |
Set matrix values dialog.
MatrixValuesDialog::MatrixValuesDialog | ( | ScriptingEnv * | env, | |
QWidget * | parent = 0 , |
|||
Qt::WFlags | fl = 0 | |||
) |
References addCell(), apply(), btnAddCell, btnAddFunction, btnApply, btnCancel, commands, endCol, endRow, explain, functions, insertExplain(), insertFunction(), ScriptingEnv::mathFunctions(), scripted::scriptEnv, startCol, and startRow.
void MatrixValuesDialog::addCell | ( | ) | [private, slot] |
References commands.
Referenced by MatrixValuesDialog().
bool MatrixValuesDialog::apply | ( | ) | [private, slot] |
References Matrix::calculate(), Matrix::canCalculate(), commands, endCol, endRow, Matrix::formula(), matrix, Matrix::setFormula(), startCol, startRow, and Matrix::undoStack().
Referenced by MatrixValuesDialog().
void MatrixValuesDialog::closeEvent | ( | QCloseEvent * | e | ) | [private] |
References ApplicationWindow::d_force_muParser.
void MatrixValuesDialog::customEvent | ( | QEvent * | e | ) | [private] |
References scripted::scriptingChangeEvent().
void MatrixValuesDialog::insertExplain | ( | int | index | ) | [private, slot] |
References explain, muParserScripting::explainFunction(), functions, ScriptingEnv::mathFunctionDoc(), and scripted::scriptEnv.
Referenced by MatrixValuesDialog().
void MatrixValuesDialog::insertFunction | ( | ) | [private, slot] |
References commands, functions, and ScriptEdit::insertFunction().
Referenced by MatrixValuesDialog().
void MatrixValuesDialog::setCompleter | ( | QCompleter * | completer | ) |
References commands, and ScriptEdit::setCompleter().
Referenced by ApplicationWindow::showMatrixValuesDialog().
void MatrixValuesDialog::setMatrix | ( | Matrix * | m | ) |
References commands, endCol, endRow, Matrix::formula(), matrix, Matrix::numCols(), Matrix::numRows(), Matrix::selectionModel(), ScriptEdit::setContext(), startCol, startRow, and Matrix::viewType().
Referenced by ApplicationWindow::showMatrixValuesDialog().
QSize MatrixValuesDialog::sizeHint | ( | ) | const [private] |
QPushButton* MatrixValuesDialog::btnAddCell [private] |
Referenced by MatrixValuesDialog().
QPushButton* MatrixValuesDialog::btnAddFunction [private] |
Referenced by MatrixValuesDialog().
QPushButton* MatrixValuesDialog::btnApply [private] |
Referenced by MatrixValuesDialog().
QPushButton* MatrixValuesDialog::btnCancel [private] |
Referenced by MatrixValuesDialog().
ScriptEdit* MatrixValuesDialog::commands [private] |
Referenced by addCell(), apply(), insertFunction(), MatrixValuesDialog(), setCompleter(), and setMatrix().
QSpinBox * MatrixValuesDialog::endCol [private] |
Referenced by apply(), MatrixValuesDialog(), and setMatrix().
QSpinBox * MatrixValuesDialog::endRow [private] |
Referenced by apply(), MatrixValuesDialog(), and setMatrix().
QTextEdit* MatrixValuesDialog::explain [private] |
Referenced by insertExplain(), and MatrixValuesDialog().
QComboBox* MatrixValuesDialog::functions [private] |
Referenced by insertExplain(), insertFunction(), and MatrixValuesDialog().
Matrix* MatrixValuesDialog::matrix [private] |
Referenced by apply(), and setMatrix().
QSpinBox * MatrixValuesDialog::startCol [private] |
Referenced by apply(), MatrixValuesDialog(), and setMatrix().
QSpinBox* MatrixValuesDialog::startRow [private] |
Referenced by apply(), MatrixValuesDialog(), and setMatrix().