summaryrefslogtreecommitdiffstats
path: root/Project/MathExpressionForm.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-12-31 17:59:10 -0200
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-12-31 17:59:10 -0200
commitdbe0b112622f8e91fa3e44a6b6e1aa7e230d3ded (patch)
tree51c89fc8155dcc447743dc89a1ab5ce36acc72cf /Project/MathExpressionForm.cpp
parentff52be4e9705d443a4fde091525806322c2dc032 (diff)
downloadPSP.git-dbe0b112622f8e91fa3e44a6b6e1aa7e230d3ded.tar.gz
PSP.git-dbe0b112622f8e91fa3e44a6b6e1aa7e230d3ded.tar.xz
PSP.git-dbe0b112622f8e91fa3e44a6b6e1aa7e230d3ded.zip
Math Expression implemented
Diffstat (limited to 'Project/MathExpressionForm.cpp')
-rw-r--r--Project/MathExpressionForm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Project/MathExpressionForm.cpp b/Project/MathExpressionForm.cpp
index 4e0fab8..58bb2cb 100644
--- a/Project/MathExpressionForm.cpp
+++ b/Project/MathExpressionForm.cpp
@@ -135,14 +135,14 @@ void MathExpressionForm::SetSintaxHighlights()
0, wxT("abs acos acosh arg asin asinh atan atan2 atanh cbrt conj ceil cos cosh cot csc eval exp exp2 floor "
"hypot if imag int log log2 log10 max min polar pow real sec sin sinh sqrt tan tanh trunc"));
m_stcMathExpr->SetKeyWords(1, wxT("time step switch ") + variables);
- m_stcMathExpr->SetKeyWords(2, wxT("TRUE FALSE OPEN CLOSE PI E"));
+ m_stcMathExpr->SetKeyWords(2, wxT("true false open closed pi e"));
}
void MathExpressionForm::OnTextUpdate(wxCommandEvent& event) { SetSintaxHighlights(); }
std::string MathExpressionForm::GetVariablesToParse()
{
- wxString variables = wxT("time,step,") + m_textCtrlVariables->GetValue();
+ wxString variables = wxT("time,step,switch,") + m_textCtrlVariables->GetValue();
for(unsigned int i = 0; i < variables.length(); ++i) {
if(variables[i] == ' ') variables[i] = ',';
}