35#include "BuildConfig.h"
38#include "WXMXformat.h"
39#include "Configuration.h"
52#include <wx/process.h>
55#include <wx/txtstrm.h>
56#include <wx/sckstrm.h>
60#include <wx/debugrpt.h>
67#include <unordered_map>
70#define MAXIMAPOLLMSECS 2000
74namespace wxm {
struct WizardSpec; }
83 wxMaxima(wxWindow *parent,
int id,
const wxString &title,
84 const wxString &filename = wxEmptyString,
85 const wxString &initialWorksheetContents = wxEmptyString,
86 const wxPoint pos = wxDefaultPosition,
const wxSize size = wxDefaultSize);
89 wxString EscapeFilenameForShell(wxString name);
115 static void RepairFileAssociations();
142#ifdef wxHAS_POWER_EVENTS
143 void OnPowerEvent(wxPowerEvent &event);
170 m_evalOnStartup = eval;
194 {
return m_fileSaved; }
198 { GetWorksheet()->
OpenHCaret(file, GC_TYPE_IMAGE); }
205 long Major()
const {
return m_major;}
206 long Minor()
const {
return m_minor;}
207 long Patchlevel()
const {
return m_patchlevel;}
212 long m_patchlevel = -1;
217 {maxima_command_line_filename = filename;}
250 static int GetExitCode(){
return m_exitCode;}
261 m_screenshotFile = file;
262 m_screenshotScene = scene;
267 static wxString m_screenshotFile;
271 bool m_screenshotStarted =
false;
273 std::unique_ptr<wxTimer> m_screenshotTimer;
275 void StartScreenshot();
277 void TakeScreenshot(wxWindow *window, wxDialog *dialog);
279 static wxString maxima_command_line_filename;
281 bool m_maximaAuthenticated =
false;
283 bool m_discardAllData =
false;
285 wxString m_maximaAuthString;
290 static bool m_exitOnError;
294 bool m_exitOnErrorArmed =
true;
296 static wxString m_extraMaximaArgs;
298 std::vector<wxString> m_varNamesToQuery;
301 bool m_openInitialFileError =
false;
303 wxString EscapeForLisp(wxString str);
305 long long m_maximaJiffies_old = 0;
307 long long m_cpuTotalJiffies_old = 0;
310 wxString m_configCommands;
312 static wxRegEx m_gnuplotErrorRegex;
314 wxString m_oldFindString;
316 int m_oldFindFlags = 0;
318 bool m_hasEvaluatedCells =
false;
320 long m_outputCellsFromCurrentCommand = 0;
322 long m_maxOutputCellsPerCommand = 0;
329 int m_unsuccessfulConnectionAttempts = 11;
333 bool m_evalOnStartup =
false;
335 bool m_exitAfterEval =
false;
337 bool m_ready =
false;
343 wxString GetUnmatchedParenthesisState(wxString text, std::size_t &index);
345 wxMemoryBuffer m_uncompletedChars;
350 const wxString &description,
const wxString &description_tooltip,
351 const wxString &commandRule,
352 const wxString& label1,
const wxString& defaultval1,
const wxString& tooltip1 = {},
353 const wxString& label2 = {},
const wxString& defaultval2 = {},
const wxString& tooltip2 = {},
354 const wxString& label3 = {},
const wxString& defaultval3 = {},
const wxString& tooltip3 = {},
355 const wxString& label4 = {},
const wxString& defaultval4 = {},
const wxString& tooltip4 = {},
356 const wxString& label5 = {},
const wxString& defaultval5 = {},
const wxString& tooltip5 = {},
357 const wxString& label6 = {},
const wxString& defaultval6 = {},
const wxString& tooltip6 = {},
358 const wxString& label7 = {},
const wxString& defaultval7 = {},
const wxString& tooltip7 = {},
359 const wxString& label8 = {},
const wxString& defaultval8 = {},
const wxString& tooltip8 = {},
360 const wxString& label9 = {},
const wxString& defaultval9 = {},
const wxString& tooltip9 = {},
361 const wxString& label10 = {},
const wxString& defaultval10 = {},
const wxString& tooltip10 = {}
403 void OnFocus(wxFocusEvent &event);
418 void OnFollow(wxCommandEvent &event);
419 void OnWizardAbort(wxCommandEvent &event);
420 void OnWizardOK(wxCommandEvent &event);
421 void OnWizardInsert(wxCommandEvent &event);
422 void OnWizardHelpButton(wxCommandEvent &event);
439 void ShowHelp(
const wxString &keyword);
441 void CheckForUpdates(
bool reportUpToDate =
false);
443 void OnRecentDocument(wxCommandEvent &event);
444 void OnRecentPackage (wxCommandEvent &event);
445 void OnUnsavedDocument(wxCommandEvent &event);
447 void OnChar(wxKeyEvent &event);
448 void OnKeyDown(wxKeyEvent &event);
476 void OnIdle(wxIdleEvent &event);
477 bool m_dataFromMaximaIs =
false;
499 const wxString &documentclass,
500 const wxString &documentclassOptions,
501 bool embedWorksheet);
511 void RegisterWxmxDiffTool();
521 void ShowPane(wxCommandEvent &event);
529 void OnFind(wxFindDialogEvent &event);
532 void OnReplace(wxFindDialogEvent &event);
558 void SliderEvent(wxScrollEvent &event);
567#ifdef WXM_USE_AI_TOOLS
570 void AiStatusClick(wxMouseEvent &ev);
573 void AiStatusDClick(wxMouseEvent &ev);
576 void AiStatusRightClick(wxMouseEvent &ev);
585 void OnInspectorEvent(wxCommandEvent &ev);
587 void DumpProcessOutput();
590 void TryUpdateInspector();
592 bool UpdateDrawPane();
594 wxString GetDefaultEntry();
596 void OnClose(wxCloseEvent &event);
606 void ReadMaximaIPC(
const wxString &data){m_ipc.
ReadInputData(data);}
608 wxString m_maximaVariable_display2d;
609 wxString m_maximaVariable_altdisplay2d;
610 wxString m_maximaVariable_engineeringFormat;
611 bool m_readMaximaVariables =
false;
612 bool m_updateAutocompletion =
true;
643 void ResetTitle(
bool saved,
bool force =
false);
646 std::unique_ptr<GroupCell>
CreateTreeFromXMLNode(wxXmlNode *xmlcells,
const wxString &wxmxfilename = {});
661 void SetCWD(wxString file);
669 std::unique_ptr<Maxima> m_client;
683 void operator()(wxSocketServer* server)
const {
693 std::unique_ptr<wxSocketServer, ServerDeleter>
m_server;
695 wxProcess *m_maximaProcess =
nullptr;
725 void QuestionAnswered(){
if(GetWorksheet()) GetWorksheet()->
QuestionAnswered();}
735 wxWindowIDRef m_gnuplot_process_id;
736 wxWindowIDRef m_maxima_process_id;
737 wxString m_lastPrompt;
738 wxString m_firstPromptBuffer;
740 std::unique_ptr<wxPrintData> m_printData;
748 wxString m_maximaHtmlDir;
749 bool m_fileSaved =
true;
750 static int m_exitCode;
758 wxString m_gnuplotcommand_commandline;
760 long m_commandIndex = -1;
762 static wxRegEx m_funRegEx;
763 static wxRegEx m_varRegEx;
764 static wxRegEx m_blankStatementRegEx;
765 static wxRegEx m_sbclCompilationRegEx;
767 bool m_maximaBusy =
true;
768 bool m_maximaError =
false;
770 wxString m_fileToOpen;
771 bool m_fourierLoaded =
false;
773#if wxUSE_DRAG_AND_DROP
775 friend class MyDropTarget;
813 wxTimer m_autoSaveTimer;
820 wxTimer m_fastResponseTimer;
823 void StartAutoSaveTimer();
872 bool logImmediately =
true);
874#if wxUSE_DRAG_AND_DROP
877class MyApp :
public wxApp
881 int OnRun()
override;
882 int OnExit()
override;
897#if wxUSE_ON_FATAL_EXCEPTION && wxUSE_DEBUGREPORT
898 void OnFatalException ()
override;
911 void OnAssertFailure(
const wxChar *file,
int line,
const wxChar *
func,
912 const wxChar *cond,
const wxChar *msg)
override;
926 static void NewWindow(
const wxString &file = {},
bool evalOnStartup =
false,
bool exitAfterEval =
false,
unsigned char *wxmData =
nullptr, std::size_t wxmLen = 0);
928 void OnFileMenu(wxCommandEvent &ev);
938 static std::vector<wxString> OpenableFiles(
const std::vector<wxString> &files);
953 void DisableConsoleQuickEdit();
955 void RestoreConsoleMode();
959 void MacNewFile()
override;
960 void MacOpenFile(
const wxString &file)
override;
964 static wxLogWindow *m_logWindow;
973 static std::unique_ptr<wxLogChain> m_logChain;
974 static std::vector<wxProcess *> m_wxMaximaProcesses;
976#if wxUSE_ON_FATAL_EXCEPTION && wxUSE_DEBUGREPORT
977 void GenerateDebugReport(wxDebugReport::Context ctx);
980 std::unique_ptr<wxLocale> m_locale;
981 std::unique_ptr<wxTranslations> m_translations;
984 unsigned long m_consoleModeToRestore = 0;
986 bool m_consoleModeChanged =
false;
989 wxString m_configFileName;
991 static bool m_allWindowsInOneProcess;
992 std::unique_ptr<Configuration> m_configuration;
995class MyDropTarget :
public wxFileDropTarget
998 explicit MyDropTarget(
wxMaxima *wxmax)
1001 bool OnDropFiles(wxCoord x, wxCoord y,
const wxArrayString &files)
override;
This file declares the class DirStructure.
The header file for the xml cell parser.
The menu/toolbar command handlers wxMaxima binds to the "insert a Maxima command" menu and button eve...
Drives the evaluation of the worksheet: it pulls cells off the evaluation queue, sends their commands...
Loads and saves worksheet files (.wxmx, .wxm, .mac/.out, .xml) for wxMaxima.
Declares MaximaInterruptChannel, the connection wxMaxima interrupts Maxima through.
Appends Maxima's (and wxMaxima's own) output to the worksheet.
The wxMaxima-side owner of the Maxima process and its control socket.
The handlers that turn a chunk of data Maxima sent into a change to wxMaxima's state and worksheet.
Declares PdfExport, which writes a worksheet to a tagged (accessible) PDF.
Screenshots for the manual, made by wxMaxima itself (–screenshot).
Appearance
How wxMaxima chooses between the light and the dark style set.
Definition: Configuration.h:1174
An object that represents the directory structure wxMaxima is installed in.
Definition: Dirstructure.h:50
Definition: FindReplacePane.h:51
This class handles parsing the xml representation of a cell tree.
Definition: MathParser.h:56
The menu-command handlers extracted from the wxMaxima god class.
Definition: MaximaCommandMenus.h:49
The evaluation-queue driver / command protocol extracted from wxMaxima.
Definition: MaximaEvaluator.h:51
The worksheet file loaders/savers extracted from the wxMaxima god class.
Definition: MaximaFileIO.h:49
Handles the "<ipc>" tag from Maxima.
Definition: MaximaIPC.h:41
void ReadInputData(const wxString &data)
Reads the interprocess communications tag, used in test scripts, etc.
Definition: MaximaIPC.cpp:90
Definition: MaximaOutputAppender.h:43
The Maxima process/socket lifecycle extracted from the wxMaxima god class.
Definition: MaximaProcessManager.h:56
The Maxima-response handlers extracted from the wxMaxima god class.
Definition: MaximaResponseReader.h:58
Interface to the Maxima process.
Definition: Maxima.h:66
Definition: test_ImgCell.cpp:354
bool OnInit() override
Definition: test_ImgCell.cpp:367
void OpenHCaret(const wxString &txt={})
Place the cursor into a new cell where the horizontal cursor is.
Definition: Worksheet.h:1890
void QuestionAnswered()
Mark the current question from maxima as "answered"..
Definition: Worksheet.cpp:3564
The frame containing the menu and the sidebars.
Definition: wxMaximaFrame.h:75
A version number that can be compared using "<" and ">".
Definition: wxMaxima.h:202
Definition: wxMaxima.h:81
void OnIdle(wxIdleEvent &event)
The idle task that refreshes the gui (worksheet, menus, title line,...)
Definition: wxMaxima.cpp:1852
void StatusMsgDClick(wxMouseEvent &ev)
Issued on double click on the status message in the status bar.
Definition: wxMaxima.cpp:3592
int m_port
The port the actual maxima process (not its wrapper script) runs at.
Definition: wxMaxima.h:709
wxOutputStream * m_maximaStdin
The stdin of the maxima process. Normally unused (commands go over the socket), but sbcl's low-level ...
Definition: wxMaxima.h:703
bool m_dispReadOut
what is displayed in statusbar
Definition: wxMaxima.h:734
bool m_scheduleUpdateToc
True = schedule an update of the table of contents.
Definition: wxMaxima.h:724
void ShowTip(bool force)
Definition: wxMaxima.cpp:1610
void OnActivate(wxActivateEvent &event)
Called when this window is activated or deactivated.
Definition: wxMaxima.cpp:3883
static wxRegEx m_xmlOpeningTag
Looks if this opening tag is actually complete.
Definition: wxMaxima.h:371
bool IsInteractive() const
Is this an interactive session (as opposed to a batch run that will exit)?
Definition: wxMaxima.h:184
static wxString m_promptPrefix
The marker for the start of a input prompt.
Definition: wxMaxima.h:715
void OnMinimize(wxIconizeEvent &event)
Called when this window is minimized.
Definition: wxMaxima.cpp:3895
static const wxString Get_Maxima_Commandline_Filename()
The maxima command, if we use the –maxima=<str> command. If empty we use the configured path,...
Definition: wxMaxima.h:219
void ChangeCellStyle(wxCommandEvent &event)
Is triggered when the textstyle drop-down box's value is changed.
Definition: wxMaxima.cpp:3934
static wxString ExtraMaximaArgs()
Which additional maxima arguments did we get from the command line?
Definition: wxMaxima.h:127
bool m_isActive
Is this window active?
Definition: wxMaxima.h:401
void NetworkDClick(wxMouseEvent &ev)
Issued on double click on the network status.
Definition: wxMaxima.cpp:3584
void OnReplace(wxFindDialogEvent &event)
Is triggered when the "Replace" button in the search dialog is pressed.
Definition: wxMaxima.cpp:2943
int SaveDocumentP()
Tries or offers to save the document.
Definition: wxMaxima.cpp:3825
void AddDrawParameter(wxString cmd, int dimensionsOfNewDrawCommand=2)
Add a parameter to a draw command.
Definition: wxMaxima.cpp:3015
void ShowHelp(const wxString &keyword)
Try to determine if help is needed for maxima or wxMaxima and show this help.
Definition: wxMaxima.cpp:1803
static void ExtraMaximaArgs(const wxString &args)
Additional maxima arguments from the command line.
Definition: wxMaxima.h:125
void EvalOnStartup(bool eval)
Do we want to evaluate the document on startup?
Definition: wxMaxima.h:168
static void ExitOnError()
Exit if we encounter an error.
Definition: wxMaxima.h:91
void OnUpdateTOCEvent(wxCommandEvent &event)
Is called when something requests an update of the table of contents.
Definition: wxMaxima.cpp:2675
void UpdateMenus()
Enables and disables the Right menu buttons.
Definition: wxMaxima.cpp:2460
wxInputStream * m_maximaStdout
The stdout of the maxima process.
Definition: wxMaxima.h:697
void VarReadEvent(wxCommandEvent &event)
Spawn the "configure" menu.
Definition: wxMaxima.cpp:3351
static bool GetEnableIPC()
Do we allow maxima to click buttons in wxMaxima?
Definition: wxMaxima.h:123
std::unique_ptr< wxSocketServer, ServerDeleter > m_server
The server maxima connects to as client.
Definition: wxMaxima.h:693
wxTimer m_maximaStdoutPollTimer
A timer that polls for output from the maxima process.
Definition: wxMaxima.h:150
void OnFollow(wxCommandEvent &event)
Called when the "Scroll to currently evaluated" button is pressed.
Definition: wxMaxima.cpp:3681
bool DocumentSaved()
Does this document need saving?
Definition: wxMaxima.h:193
static void Set_Maxima_Commandline_Filename(const wxString &filename)
Use this maxima command (from a command line option) instead of the configured path.
Definition: wxMaxima.h:216
long long GetMaximaCpuTime()
How much CPU time has maxima used till now? Used by GetMaximaCPUPercentage.
Definition: wxMaxima.cpp:2719
void ReplaceSuggestion(wxCommandEvent &event)
Processes clicks on suggestions Make the menu item, toolbars and panes visible that should be visible...
Definition: wxMaxima.cpp:3463
void SetCWD(wxString file)
Set the current working directory file I/O from maxima is relative to.
Definition: wxMaxima.cpp:1415
static wxRegEx m_xmlOpeningTagName
Finds the name of an opening tag.
Definition: wxMaxima.h:369
void LoadImage(const wxString &file)
Load an image from a file into the worksheet.
Definition: wxMaxima.h:197
static void EnableIPC()
Allow maxima to click buttons in wxMaxima.
Definition: wxMaxima.h:121
void UpdateToolBar()
Enables and disables the Right toolbar buttons.
Definition: wxMaxima.cpp:2529
void ExportWorksheetToHtml(const wxString &filename, const wxString &flavor, bool embedWxmx)
Export the current worksheet to an HTML file (driven by wxworksheettohtml).
Definition: wxMaxima.cpp:2344
void HistoryDClick(wxCommandEvent &event)
Issued on double click on a history item.
Definition: wxMaxima.cpp:3658
void OnNewDemoFiles(wxCommandEvent &event)
Is called when we get a new list of demo files Is called when we get a new list of demo files.
Definition: wxMaxima.cpp:1081
wxString GetCommand(bool params=true)
returns the command to start maxima The Maxima program GetCommand() runs, without asking the user any...
Definition: wxMaxima.cpp:1540
static wxString m_mathPrefix1
A marker for the start of maths.
Definition: wxMaxima.h:711
void OnFind(wxFindDialogEvent &event)
Is triggered when the "Find" button in the search dialog is pressed.
Definition: wxMaxima.cpp:2914
void OnSymbolAdd(wxCommandEvent &event)
Sends a new char to the symbols sidebar.
Definition: wxMaxima.cpp:3000
void LaunchHelpBrowser(const wxString &uri)
Launches the help browser on the uri passed as an argument.
Definition: wxMaxima.cpp:1626
void CommandWiz(const wxString &title, const wxString &description, const wxString &description_tooltip, const wxString &commandRule, const wxString &label1, const wxString &defaultval1, const wxString &tooltip1={}, const wxString &label2={}, const wxString &defaultval2={}, const wxString &tooltip2={}, const wxString &label3={}, const wxString &defaultval3={}, const wxString &tooltip3={}, const wxString &label4={}, const wxString &defaultval4={}, const wxString &tooltip4={}, const wxString &label5={}, const wxString &defaultval5={}, const wxString &tooltip5={}, const wxString &label6={}, const wxString &defaultval6={}, const wxString &tooltip6={}, const wxString &label7={}, const wxString &defaultval7={}, const wxString &tooltip7={}, const wxString &label8={}, const wxString &defaultval8={}, const wxString &tooltip8={}, const wxString &label9={}, const wxString &defaultval9={}, const wxString &tooltip9={}, const wxString &label10={}, const wxString &defaultval10={}, const wxString &tooltip10={})
Invoke our standard wizard that generates maxima commands.
Definition: wxMaxima.cpp:3049
wxInputStream * m_maximaStderr
The stderr of the maxima process.
Definition: wxMaxima.h:699
void ShowWxMaximaHelp(const wxString &anchor=wxEmptyString)
Show the help for wxMaxima.
Definition: wxMaxima.cpp:1710
bool ExitOnErrorArmed() const
Is THIS worksheet still set to exit on a Maxima error?
Definition: wxMaxima.h:104
void OnTextFormat(wxCommandEvent &event)
A character formatting button of the toolbar (bold, ...) was pressed.
Definition: wxMaxima.cpp:3902
bool m_maximaConnectWatchdogWarningShown
Have we already shown the "Maxima hasn't connected" warning this run?
Definition: wxMaxima.h:164
void VarAddAllEvent(wxCommandEvent &event)
Trigger adding all variables to the variables sidebar.
Definition: wxMaxima.cpp:3342
static bool GetExitOnError()
Do we exit if we encounter an error?
Definition: wxMaxima.h:93
ExitCode
Dedicated exit codes for a –batch/–exit-on-error run that aborted (GH #2276): every reason used to sh...
Definition: wxMaxima.h:231
@ EXIT_FILE_OPEN_FAILED
The file named on the command line could not be opened.
Definition: wxMaxima.h:238
@ EXIT_MAXIMA_ERROR
A cell reported a Maxima error and –exit-on-error is active.
Definition: wxMaxima.h:233
@ EXIT_UNANSWERED_QUESTION
Maxima asked an interactive question with no scripted answer available ("Halts on questions",...
Definition: wxMaxima.h:236
@ EXIT_FILE_SAVE_FAILED
Saving the worksheet (on exit, or a –batch run's own final save) failed.
Definition: wxMaxima.h:241
@ EXIT_SCREENSHOT_FAILED
–screenshot could not show or save what it was asked for
Definition: wxMaxima.h:247
@ EXIT_IMAGE_LOAD_FAILED
An embedded image's data could not be loaded at all (GH #2178).
Definition: wxMaxima.h:243
@ EXIT_IMAGE_DECODE_FAILED
An embedded image failed to decode/render (GH #2178, –debug only).
Definition: wxMaxima.h:245
void OnTimerEvent(wxTimerEvent &event)
Is triggered when a timer this class is responsible for requires.
Definition: wxMaxima.cpp:2811
void PassKeyboardFocus()
Forwards the keyboard focus to a text control that might need it.
Definition: wxMaxima.cpp:3871
double GetMaximaCPUPercentage()
How much CPU horsepower is maxima using currently?
Definition: wxMaxima.cpp:2783
static void RequestScreenshot(const wxString &file, const wxm::ScreenshotScene &scene)
Make this session's window save a screenshot and exit (–screenshot)
Definition: wxMaxima.h:258
bool m_closing
Did we tell maxima to close?
Definition: wxMaxima.h:745
void ResetTitle(bool saved, bool force=false)
Update the title.
Definition: wxMaxima.cpp:3475
void OnJumpToError(wxCommandEvent &event)
Called when the "Scroll to last error" button is pressed.
wxString m_maximaTempDir
The directory with maxima's temp files.
Definition: wxMaxima.h:747
void OnReplaceAll(wxFindDialogEvent &event)
Is triggered when the "Replace All" button in the search dialog is pressed.
Definition: wxMaxima.cpp:2976
void MaximaDClick(wxMouseEvent &ev)
Issued on double click on the Maxima status icon.
Definition: wxMaxima.cpp:3588
wxProcess * m_gnuplotProcess
The gnuplot process info.
Definition: wxMaxima.h:373
void OnFocus(wxFocusEvent &event)
Called when this window is focussed or defocussed.
Definition: wxMaxima.cpp:3865
TimerIDs
An enum of individual IDs for all timers this class handles.
Definition: wxMaxima.h:131
@ KEYBOARD_INACTIVITY_TIMER_ID
The keyboard was inactive long enough that we can attempt an auto-save.
Definition: wxMaxima.h:133
@ AUTO_SAVE_TIMER_ID
The time between two auto-saves has elapsed.
Definition: wxMaxima.h:135
@ MAXIMA_CONNECT_WATCHDOG_ID
Maxima's process was started; has it connected back to us by now?
Definition: wxMaxima.h:139
@ MAXIMA_STDOUT_POLL_ID
We look if we got new data from maxima's stdout.
Definition: wxMaxima.h:137
void OnClose(wxCloseEvent &event)
close wxMaxima window
Definition: wxMaxima.cpp:3247
bool SaveNecessary()
Does this file contain anything worth saving?
Definition: wxMaxima.cpp:3326
wxProcess * m_gnuplotTerminalQueryProcess
Info about the gnuplot process we start for querying the terminals it supports.
Definition: wxMaxima.h:375
void StripLispComments(wxString &s)
Remove empty statements.
Definition: wxMaxima.cpp:1364
void MenuCommand(const wxString &cmd)
Inserts command cmd into the worksheet.
Definition: wxMaxima.cpp:2316
bool m_inLDB
True while sbcl is stopped in its low-level debugger (LDB). Set from the LDB banner on the process's ...
Definition: wxMaxima.h:707
static const wxString m_promptSuffix
The marker for the end of a input prompt.
Definition: wxMaxima.h:718
void ShowMaximaHelp(wxString={})
Show the help for Maxima.
Definition: wxMaxima.cpp:1819
wxString m_gnuplotProbedCommand
The gnuplot command whose terminal support we already probed.
Definition: wxMaxima.h:399
std::unique_ptr< MaximaInterruptChannel > m_interruptChannel
The second connection Maxima's Lisp opens so we can interrupt it.
Definition: wxMaxima.h:676
wxString GetCWD()
Get the current working directory file I/O from maxima is relative to.
Definition: wxMaxima.h:664
std::unique_ptr< GroupCell > CreateTreeFromXMLNode(wxXmlNode *xmlcells, const wxString &wxmxfilename={})
Loads a wxmx description.
Definition: wxMaxima.cpp:1473
void ShowPane(wxCommandEvent &event)
Toggle the visibility of a pane.
Definition: wxMaxima.cpp:3558
void ShowMaximaHelpWithoutAnchor()
Show the help for Maxima (without handling of anchors).
Definition: wxMaxima.cpp:1761
long long GetTotalCpuTime()
How much CPU time has been used by the system until now? Used by GetMaximaCPUPercentage.
Definition: wxMaxima.cpp:2684
wxString MaximaCommandArguments(bool params=true) const
What GetCommand() puts after the Maxima program: parameters and extra arguments.
Definition: wxMaxima.cpp:1530
wxString MaximaExecutable() const
Definition: wxMaxima.cpp:1516
void ShowTroubleshootingDialog()
Opens Help > Troubleshooting (GH #2559)
Definition: wxMaxima.cpp:1570
void ExitAfterEval(bool exitaftereval)
Do we want to exit the program after evaluation?
Definition: wxMaxima.cpp:1489
wxProcess * m_gnuplotPopoutCheckProcess
A second, hidden, headless gnuplot invocation of the same "Pop out interactively" script,...
Definition: wxMaxima.h:387
wxString m_gnuplotcommand
Maxima's idea about gnuplot's location.
Definition: wxMaxima.h:752
static wxString m_mathPrefix2
A marker for the start of maths.
Definition: wxMaxima.h:713
void UpdateSlider()
Updates the slider to show the right frame.
Definition: wxMaxima.cpp:3530
void TableOfContentsSelection(wxListEvent &event)
Issued on double click on a table of contents item.
Definition: wxMaxima.cpp:3664
void ConfigChanged()
Is called on start and whenever the configuration changes.
Definition: wxMaxima.cpp:233
wxTimer m_maximaConnectWatchdogTimer
Fires once, a few seconds after Maxima's process is started.
Definition: wxMaxima.h:162
wxString m_gnuplotPopoutCheckFile
The temp file m_gnuplotPopoutCheckProcess reads its script from; removed once OnGnuplotPopoutCheckClo...
Definition: wxMaxima.h:390
void ExportWorksheetToPdf(const wxString &filename, const PdfExport::Options &options)
Export the worksheet to a tagged PDF file, for wxworksheettopdf()
Definition: wxMaxima.cpp:2391
static wxString m_firstPrompt
The first prompt maxima will output.
Definition: wxMaxima.h:733
bool SaveOnClose()
Try to save the file before closing it - or return false.
Definition: wxMaxima.cpp:3213
void ExportWorksheetToTex(const wxString &filename, const wxString &documentclass, const wxString &documentclassOptions, bool embedWorksheet)
Export the current worksheet to a LaTeX file (driven by wxworksheettotex).
Definition: wxMaxima.cpp:2414
void func()
function in group 1
Definition: group.cpp:13
What goes into the PDF besides the worksheet.
Definition: PdfExport.h:66
The Right Way to delete a wxSocketServer.
Definition: wxMaxima.h:682
Everything a scene's [Screenshot] group asks for.
Definition: Screenshot.h:68
Everything the generic wizard needs to know about one menu command.
Definition: WizardCatalog.h:87
This file declares the class wxMaximaFrame.
wxString ApplyAppearanceToApp(Configuration::Appearance appearance, bool logImmediately=true)
Apply the chosen light/dark appearance to the native application chrome (menus, toolbars,...
Definition: wxMaxima.cpp:178