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 94 of file ExprEditor.h.
ExprEditor::ExprEditor | ( | QWidget * | parent, |
ExprControlCollection * | controls ) |
Definition at line 92 of file ExprEditor.cpp.
References clearErrors(), controlChanged(), controlRebuildTimer, controls, errorWidget, exprChanged(), exprTe, insertStr(), nextError(), previewTimer, rebuildControls(), selectError(), sendApply(), and sendPreview().
|
virtual |
Definition at line 85 of file ExprEditor.cpp.
References controlRebuildTimer, and previewTimer.
void ExprEditor::addError | ( | const int | startPos, |
const int | endPos, | ||
const std::string & | error ) |
Definition at line 388 of file ExprEditor.cpp.
References errorHeight, and errorWidget.
void ExprEditor::appendStr | ( | const std::string & | str | ) |
Definition at line 386 of file ExprEditor.cpp.
References exprTe.
|
signal |
Referenced by sendApply(), and setExpr().
void ExprEditor::clearErrors | ( | ) |
Definition at line 411 of file ExprEditor.cpp.
References errorHeight, and errorWidget.
Referenced by ExprEditor(), and setExpr().
void ExprEditor::clearExtraCompleters | ( | ) |
Definition at line 417 of file ExprEditor.cpp.
References ExprCompletionModel::clearFunctions(), ExprCompletionModel::clearVariables(), ExprTextEdit::completionModel, and exprTe.
|
slot |
Definition at line 71 of file ExprEditor.cpp.
References _updatingText, controls, exprTe, previewTimer, and ExprControlCollection::updateText().
Referenced by ExprEditor().
|
slot |
Definition at line 157 of file ExprEditor.cpp.
References _updatingText, and controlRebuildTimer.
Referenced by ExprEditor().
std::string ExprEditor::getExpr | ( | ) |
Definition at line 373 of file ExprEditor.cpp.
References exprTe.
|
slot |
|
slot |
|
signal |
Referenced by sendPreview().
|
slot |
Definition at line 165 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 422 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 426 of file ExprEditor.cpp.
References ExprCompletionModel::addVariable(), ExprTextEdit::completionModel, and exprTe.
void ExprEditor::replaceExtras | ( | const ExprCompletionModel & | completer | ) |
Definition at line 430 of file ExprEditor.cpp.
References ExprTextEdit::completionModel, exprTe, and ExprCompletionModel::syncExtras().
Referenced by ExprShortEdit::showDetails().
|
slot |
Definition at line 141 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 375 of file ExprEditor.cpp.
References apply(), clearErrors(), and exprTe.
void ExprEditor::updateCompleter | ( | ) |
Definition at line 432 of file ExprEditor.cpp.
References ExprTextEdit::completer, ExprTextEdit::completionModel, and exprTe.
void ExprEditor::updateStyle | ( | ) |
Definition at line 434 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 150 of file ExprEditor.h.
Referenced by exprChanged(), ExprEditor(), and ~ExprEditor().
|
private |
Definition at line 147 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 148 of file ExprEditor.h.
Referenced by addError(), clearErrors(), ExprEditor(), nextError(), and selectError().
|
private |
Definition at line 146 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 151 of file ExprEditor.h.
Referenced by controlChanged(), ExprEditor(), and ~ExprEditor().