35#ifndef MAXIMAEVALUATOR_H
36#define MAXIMAEVALUATOR_H
57 void SendMaxima(wxString s,
bool addToHistory =
false,
bool background =
false);
130 wxString LinelConfigCommand()
const;
147 wxString CellIdConfigCommand(
GroupCell *cell);
152 wxString m_lastSentCellId;
155 long m_commandStart = -1;
157 wxString m_commandOutput;
161 bool m_errorSpotMarked =
false;
Implementation of an observing weak Cell pointer.
A weak non-owning pointer that becomes null whenever the observed object is destroyed.
Definition: CellPtr.h:539
A cell grouping input (and, if there is one, also the output) cell to a foldable item.
Definition: GroupCell.h:88
The evaluation-queue driver / command protocol extracted from wxMaxima.
Definition: MaximaEvaluator.h:51
void SendMaxima(wxString s, bool addToHistory=false, bool background=false)
Sends a string to the Maxima process (optionally adding it to the history and/or marking it a backgro...
Definition: MaximaEvaluator.cpp:45
void AddCommandOutput(const wxString &text)
Collects what Maxima printed in reply to the current command.
Definition: MaximaEvaluator.cpp:586
void MarkErrorStatement(GroupCell *cell)
Marks the statement the current command came from as the one that caused an error,...
Definition: MaximaEvaluator.cpp:593
bool QueryVariableValue()
Queries the value of the next variable wxMaxima wants to know about.
Definition: MaximaEvaluator.cpp:138
void TriggerEvaluation()
If Maxima is idle and the queue is non-empty, sends the next command; otherwise settles the UI into i...
Definition: MaximaEvaluator.cpp:324
void SetupVariables()
Sends Maxima the one-time startup configuration.
Definition: MaximaEvaluator.cpp:695
void StartCommand(long start)
Remembers where in its cell the command that is being sent starts.
Definition: MaximaEvaluator.cpp:579
void MarkSyntaxErrorSpot()
If Maxima reported a syntax error for the current command, marks where in its statement it is,...
Definition: MaximaEvaluator.cpp:610
void EvaluateEvent(wxCommandEvent &event)
The "evaluate" menu/hotkey handler: queues the active/selected cells and starts evaluation (or sends ...
Definition: MaximaEvaluator.cpp:230
void FirstOutput()
Prepares the worksheet once Maxima's first prompt has been seen.
Definition: MaximaEvaluator.cpp:39
bool AbortOnError()
Reacts to a Maxima error: decides whether to keep evaluating the queue.
Definition: MaximaEvaluator.cpp:174
Definition: wxMaxima.h:76