SeExpr
|
#include <ExprEditor.h>
Public Slots | |
void | exprChanged () |
void | rebuildControls () |
void | controlChanged (int id) |
void | nextError () |
void | selectError () |
void | sendApply () |
void | sendPreview () |
void | insertStr (const std::string &str) |
Signals | |
void | apply () |
void | preview () |
Public Member Functions | |
ExprEditor (QWidget *parent, ExprControlCollection *controls) | |
virtual | ~ExprEditor () |
std::string | getExpr () |
void | setExpr (const std::string &expression, const bool apply=false) |
void | appendStr (const std::string &str) |
void | addError (const int startPos, const int endPos, const std::string &error) |
void | clearErrors () |
void | clearExtraCompleters () |
void | registerExtraFunction (const std::string &name, const std::string &docString) |
void | registerExtraVariable (const std::string &name, const std::string &docString) |
void | replaceExtras (const ExprCompletionModel &completer) |
void | updateCompleter () |
void | updateStyle () |
Private Attributes | |
ExprTextEdit * | exprTe |
ExprControlCollection * | controls |
QListWidget * | errorWidget |
QTimer * | controlRebuildTimer |
QTimer * | previewTimer |
bool | _updatingText |
int | errorHeight |
Definition at line 97 of file ExprEditor.h.
ExprEditor::ExprEditor | ( | QWidget * | parent, |
ExprControlCollection * | controls | ||
) |
Definition at line 99 of file ExprEditor.cpp.
References clearErrors(), controlChanged(), controlRebuildTimer, controls, errorWidget, exprChanged(), exprTe, insertStr(), nextError(), previewTimer, rebuildControls(), selectError(), sendApply(), and sendPreview().
|
virtual |
Definition at line 90 of file ExprEditor.cpp.
References controlRebuildTimer, and previewTimer.
void ExprEditor::addError | ( | const int | startPos, |
const int | endPos, | ||
const std::string & | error | ||
) |
Definition at line 425 of file ExprEditor.cpp.
References errorHeight, and errorWidget.
Referenced by ExprDialog::applyExpression().
void ExprEditor::appendStr | ( | const std::string & | str | ) |
Definition at line 420 of file ExprEditor.cpp.
References exprTe.
|
signal |
Referenced by sendApply(), and setExpr().
void ExprEditor::clearErrors | ( | ) |
Definition at line 450 of file ExprEditor.cpp.
References errorHeight, and errorWidget.
Referenced by ExprDialog::applyExpression(), ExprEditor(), and setExpr().
void ExprEditor::clearExtraCompleters | ( | ) |
Definition at line 457 of file ExprEditor.cpp.
References ExprCompletionModel::clearFunctions(), ExprCompletionModel::clearVariables(), ExprTextEdit::completionModel, and exprTe.
|
slot |
Definition at line 75 of file ExprEditor.cpp.
References _updatingText, controls, exprTe, previewTimer, and ExprControlCollection::updateText().
Referenced by ExprEditor().
|
slot |
Definition at line 174 of file ExprEditor.cpp.
References _updatingText, and controlRebuildTimer.
Referenced by ExprEditor().
std::string ExprEditor::getExpr | ( | ) |
Definition at line 400 of file ExprEditor.cpp.
References exprTe.
Referenced by ExprDialog::applyExpression(), ExprDialog::getExpressionString(), ExprBrowser::saveExpression(), ExprBrowser::saveExpressionAs(), and ExprBrowser::saveLocalExpressionAs().
|
slot |
|
slot |
Definition at line 443 of file ExprEditor.cpp.
References errorWidget.
Referenced by ExprDialog::applyExpression(), and ExprEditor().
|
signal |
Referenced by sendPreview().
|
slot |
Definition at line 183 of file ExprEditor.cpp.
References ExprTextEdit::completer, ExprTextEdit::completionModel, controls, exprTe, ExprCompletionModel::local_variables, and ExprControlCollection::rebuildControls().
Referenced by ExprEditor().
void ExprEditor::registerExtraFunction | ( | const std::string & | name, |
const std::string & | docString | ||
) |
Definition at line 463 of file ExprEditor.cpp.
References ExprCompletionModel::addFunction(), ExprTextEdit::completionModel, and exprTe.
void ExprEditor::registerExtraVariable | ( | const std::string & | name, |
const std::string & | docString | ||
) |
Definition at line 468 of file ExprEditor.cpp.
References ExprCompletionModel::addVariable(), ExprTextEdit::completionModel, and exprTe.
void ExprEditor::replaceExtras | ( | const ExprCompletionModel & | completer | ) |
Definition at line 473 of file ExprEditor.cpp.
References ExprTextEdit::completionModel, exprTe, and ExprCompletionModel::syncExtras().
Referenced by ExprShortEdit::showDetails().
|
slot |
Definition at line 151 of file ExprEditor.cpp.
References errorWidget, and exprTe.
Referenced by ExprEditor().
|
slot |
|
slot |
void ExprEditor::setExpr | ( | const std::string & | expression, |
const bool | apply = false |
||
) |
Definition at line 405 of file ExprEditor.cpp.
References apply(), clearErrors(), and exprTe.
Referenced by ExprDialog::clearExpression(), ExprBrowser::handleSelection(), and ExprDialog::setExpressionString().
void ExprEditor::updateCompleter | ( | ) |
Definition at line 478 of file ExprEditor.cpp.
References ExprTextEdit::completer, ExprTextEdit::completionModel, and exprTe.
void ExprEditor::updateStyle | ( | ) |
Definition at line 483 of file ExprEditor.cpp.
References exprTe, and ExprTextEdit::updateStyle().
|
private |
Definition at line 153 of file ExprEditor.h.
Referenced by controlChanged(), and exprChanged().
|
private |
Definition at line 149 of file ExprEditor.h.
Referenced by exprChanged(), ExprEditor(), and ~ExprEditor().
|
private |
Definition at line 146 of file ExprEditor.h.
Referenced by controlChanged(), ExprEditor(), and rebuildControls().
|
private |
Definition at line 154 of file ExprEditor.h.
Referenced by addError(), and clearErrors().
|
private |
Definition at line 147 of file ExprEditor.h.
Referenced by addError(), clearErrors(), ExprEditor(), nextError(), and selectError().
|
private |
Definition at line 145 of file ExprEditor.h.
Referenced by appendStr(), clearExtraCompleters(), controlChanged(), ExprEditor(), getExpr(), insertStr(), rebuildControls(), registerExtraFunction(), registerExtraVariable(), replaceExtras(), selectError(), setExpr(), updateCompleter(), and updateStyle().
|
private |
Definition at line 150 of file ExprEditor.h.
Referenced by controlChanged(), ExprEditor(), and ~ExprEditor().