40#ifndef MAXIMARESPONSEREADER_H
41#define MAXIMARESPONSEREADER_H
44#include <wx/xml/xml.h>
45#include <wx/hashmap.h>
46#include <unordered_map>
61 RegisterVariableActions();
81 void ReadMath(
const wxXmlDocument &xml);
140 void VariableActionDisplay2d_Unicode(
const wxString &value);
142 void VariableActionHtmlHelp(
const wxString &value);
144 void VariableActionSinnpiflag(
const wxString &value);
146 void VariableActionSinnpiflagUndefined();
148 void VariableActionUserDir(
const wxString &value);
150 void VariableActionTempDir(
const wxString &value);
152 void VariableActionAutoconfVersion(
const wxString &value);
154 void VariableActionAutoconfHost(
const wxString &value);
156 void VariableActionMaximaInfodir(
const wxString &value);
158 void VariableActionMaximaHtmldir(
const wxString &value);
160 void VariableActionGnuplotCommand(
const wxString &value);
162 void VariableActionMaximaSharedir(
const wxString &value);
164 void VariableActionMaximaDemodir(
const wxString &value);
166 void VariableActionLispName(
const wxString &value);
168 void VariableActionLispVersion(
const wxString &value);
170 void VariableActionWxLoadFileName(
const wxString &value);
172 void VariableActionDisplay2D(
const wxString &value);
174 void VariableActionAltDisplay2D(
const wxString &value);
176 void VariableActionEngineeringFormat(
const wxString &value);
178 void VariableActionOperators(
const wxString &value);
183 void UpdateDisplayMode();
186 void RegisterVariableActions();
190 typedef std::unordered_map <wxString, VarReadFunction, wxStringHash> VarReadFunctionHash;
191 typedef std::unordered_map <wxString, VarUndefinedFunction,
192 wxStringHash> VarUndefinedFunctionHash;
194 static VarReadFunctionHash m_variableReadActions;
196 static VarUndefinedFunctionHash m_variableUndefinedActions;
The Maxima-response handlers extracted from the wxMaxima god class.
Definition: MaximaResponseReader.h:58
void ReadAsciiMath(const wxString &data)
Handles one complete <wxxml-asciimath>...</wxxml-asciimath> block: Maxima's stock ASCII-art 2D displa...
Definition: MaximaResponseReader.cpp:365
void ReadMiscText(const wxString &data)
Handles a chunk of plain (non-XML) text Maxima sent: classifies it as output/warning/error and append...
Definition: MaximaResponseReader.cpp:256
void ReadMath(const wxXmlDocument &xml)
Appends a new chunk of typeset math Maxima sent to the worksheet.
Definition: MaximaResponseReader.cpp:174
void ReadLoadSymbols(const wxXmlDocument &data)
Hands a <wxxml-symbols> document (a new batch of auto-completable symbols) to the worksheet's autocom...
Definition: MaximaResponseReader.cpp:190
void ReadVariables(const wxXmlDocument &xmldoc)
Handles a <variables> document: updates the variables sidebar, the table-synced menus and runs the pe...
Definition: MaximaResponseReader.cpp:716
void ReadStatusBar(const wxXmlDocument &xmldoc)
Handles a <statusbar> document: shows its text in wxMaxima's status bar.
Definition: MaximaResponseReader.cpp:37
void ReadFirstPrompt(const wxString &data)
Handles Maxima's very first prompt after startup (banner, PID, readiness).
Definition: MaximaResponseReader.cpp:195
void ReadPrompt(const wxString &data)
Handles a new input/question prompt: advances the evaluation queue or surfaces the question,...
Definition: MaximaResponseReader.cpp:385
void ReadStdErr()
Reads and reports whatever Maxima forwarded on its stdout/stderr streams (most prominently the gnuplo...
Definition: MaximaResponseReader.cpp:605
void ReadSuppressedOutput(const wxString &data)
Handles output Maxima marked as suppressed; also the startup authentication handshake (the <wxxml-key...
Definition: MaximaResponseReader.cpp:331
void ReadWorksheetExport(const wxXmlDocument &xmldoc)
Handles a <worksheetexport> document: exports the worksheet to a file.
Definition: MaximaResponseReader.cpp:58
void ReadAddVariables(const wxXmlDocument &xmldoc)
Handles a <watch_variables_add> document: adds the named variables to the variables-sidebar watch lis...
Definition: MaximaResponseReader.cpp:1023
void ReadManualTopicNames(const wxXmlDocument &xmldoc)
Handles a <html-manual-keywords> document: opens the manual on the keyword(s) Maxima resolved a help ...
Definition: MaximaResponseReader.cpp:121
Definition: wxMaxima.h:75