 |
wxMaxima
|
Go to the documentation of this file.
30 #ifndef WXMAXIMAFRAME_H
31 #define WXMAXIMAFRAME_H
36 #include <wx/dirctrl.h>
37 #include <wx/filehistory.h>
38 #include <wx/listbox.h>
39 #include <wx/bmpbuttn.h>
40 #include <wx/arrstr.h>
41 #include <wx/aui/aui.h>
42 #include <wx/notifmsg.h>
43 #include <wx/wrapsizer.h>
62 wxMaximaFrame(wxWindow *parent,
int id,
const wxString &title,
63 const wxPoint &pos = wxDefaultPosition,
64 const wxSize &size = wxDefaultSize,
65 long style = wxDEFAULT_FRAME_STYLE | wxSYSTEM_MENU | wxCAPTION,
bool becomeLogTarget =
true);
148 menu_matrix_row_list,
149 menu_matrix_col_list,
151 menu_matrix_multiply,
152 menu_matrix_exponent,
153 menu_matrix_hadamard_product,
154 menu_matrix_hadamard_exponent,
188 menu_set_displayprecision,
189 menu_engineeringFormat,
190 menu_engineeringFormatSetup,
199 menu_continued_fraction,
229 menu_math_as_1D_ASCII,
230 menu_math_as_2D_ASCII,
231 menu_math_as_graphics,
232 menu_noAutosubscript,
233 menu_defaultAutosubscript,
234 menu_alwaysAutosubscript,
235 menu_autosubscriptIndividual,
236 menu_declareAutosubscript,
237 menu_noAutosubscriptIndividual,
238 menu_roundedMatrixParens,
239 menu_squareMatrixParens,
240 menu_straightMatrixParens,
241 menu_angledMatrixParens,
247 menu_draw_parametric,
274 button_button_constant,
283 menu_animationautostart,
284 menu_animationframerate,
291 menu_evaluate_all_visible,
294 menu_copy_matlab_from_worksheet,
295 menu_copy_tex_from_worksheet,
296 menu_copy_text_from_worksheet,
324 menu_convert_to_code,
326 menu_convert_to_comment,
327 menu_add_subsubsection,
330 menu_convert_to_subsubsection,
331 menu_convert_to_heading5,
332 menu_convert_to_heading6,
334 menu_convert_to_subsection,
336 menu_convert_to_section,
338 menu_convert_to_title,
341 menu_unfold_all_cells,
343 menu_insert_previous_input,
344 menu_insert_previous_output,
346 menu_autocomplete_templates,
350 menu_list_create_from_elements,
351 menu_list_create_from_rule,
352 menu_list_create_from_list,
353 menu_list_create_from_args,
354 menu_list_list2matrix,
355 menu_list_matrix2list,
356 menu_list_actual_values_storage,
358 menu_list_remove_duplicates,
370 menu_list_use_actual_values,
371 menu_list_extract_value,
372 menu_list_as_function_arguments,
373 menu_list_do_for_each_element,
374 menu_list_remove_element,
375 menu_list_append_item_start,
376 menu_list_append_item_end,
377 menu_list_append_list,
378 menu_list_interleave,
379 menu_recent_packages,
380 menu_recent_package_0,
381 menu_recent_package_1,
382 menu_recent_package_2,
383 menu_recent_package_3,
384 menu_recent_package_4,
385 menu_recent_package_5,
386 menu_recent_package_6,
387 menu_recent_package_7,
388 menu_recent_package_8,
389 menu_recent_package_9,
390 menu_recent_package_10,
391 menu_recent_package_11,
392 menu_recent_package_12,
393 menu_recent_package_13,
394 menu_recent_package_14,
395 menu_recent_package_15,
396 menu_recent_package_16,
397 menu_recent_package_17,
398 menu_recent_package_18,
399 menu_recent_package_19,
400 menu_recent_package_20,
401 menu_recent_package_21,
402 menu_recent_package_22,
403 menu_recent_package_23,
404 menu_recent_package_24,
405 menu_recent_package_25,
406 menu_recent_package_26,
407 menu_recent_package_27,
408 menu_recent_package_28,
409 menu_recent_package_29,
410 menu_recent_documents,
411 menu_recent_document_0,
412 menu_recent_document_1,
413 menu_recent_document_2,
414 menu_recent_document_3,
415 menu_recent_document_4,
416 menu_recent_document_5,
417 menu_recent_document_6,
418 menu_recent_document_7,
419 menu_recent_document_8,
420 menu_recent_document_9,
421 menu_recent_document_10,
422 menu_recent_document_11,
423 menu_recent_document_12,
424 menu_recent_document_13,
425 menu_recent_document_14,
426 menu_recent_document_15,
427 menu_recent_document_16,
428 menu_recent_document_17,
429 menu_recent_document_18,
430 menu_recent_document_19,
431 menu_recent_document_20,
432 menu_recent_document_21,
433 menu_recent_document_22,
434 menu_recent_document_23,
435 menu_recent_document_24,
436 menu_recent_document_25,
437 menu_recent_document_26,
438 menu_recent_document_27,
439 menu_recent_document_28,
440 menu_recent_document_29,
441 menu_recent_document_separator,
442 menu_unsaved_document_0,
443 menu_unsaved_document_1,
444 menu_unsaved_document_2,
445 menu_unsaved_document_3,
446 menu_unsaved_document_4,
447 menu_unsaved_document_5,
448 menu_unsaved_document_6,
449 menu_unsaved_document_7,
450 menu_unsaved_document_8,
451 menu_unsaved_document_9,
452 menu_unsaved_document_10,
453 menu_unsaved_document_11,
454 menu_unsaved_document_12,
455 menu_unsaved_document_13,
456 menu_unsaved_document_14,
457 menu_unsaved_document_15,
458 menu_unsaved_document_16,
459 menu_unsaved_document_17,
460 menu_unsaved_document_18,
461 menu_unsaved_document_19,
462 menu_unsaved_document_20,
463 menu_unsaved_document_21,
464 menu_unsaved_document_22,
465 menu_unsaved_document_23,
466 menu_unsaved_document_24,
467 menu_unsaved_document_25,
468 menu_unsaved_document_26,
469 menu_unsaved_document_27,
470 menu_unsaved_document_28,
471 menu_unsaved_document_29,
482 menu_stats_histogram,
483 menu_stats_scatterplot,
489 menu_stats_subsample,
492 menu_format_heading6,
493 menu_format_heading5,
494 menu_format_subsubsection,
495 menu_format_subsection,
499 menu_format_pagebreak,
501 menu_help_tutorials_start,
503 menu_help_diffequations,
504 menu_help_numberformats,
505 menu_help_tolerances,
506 menu_help_listaccess,
510 menu_help_fittingData,
511 menu_help_tutorials_end,
513 menu_history_previous,
519 gnuplot_query_terminals_id,
521 menu_additionalSymbols,
523 menu_showLatinGreekLookalikes,
525 menu_invertWorksheetBackground
580 void UpdateStatusMaximaBusy();
585 ToolbarStatus m_StatusMaximaBusy_next;
669 long m_bytesFromMaxima_last;
670 wxTimer m_bytesReadDisplayTimer;
681 wxWindow *CreateStatPane();
683 wxWindow *CreateMathPane();
685 wxWindow *CreateFormatPane();
691 explicit DrawPane(wxWindow *parent,
int id = wxID_ANY);
699 void SetDimensions(
int dimensions);
700 int GetDimensions() {
return m_dimensions; }
702 void OnSize(wxSizeEvent &event);
705 wxButton *m_draw_setup2d;
706 wxButton *m_draw_setup3d;
707 wxButton *m_draw_explicit;
708 wxButton *m_draw_implicit;
709 wxButton *m_draw_parametric;
710 wxButton *m_draw_points;
711 wxButton *m_draw_fgcolor;
712 wxButton *m_draw_fillcolor;
713 wxButton *m_draw_title;
714 wxButton *m_draw_key;
715 wxButton *m_draw_grid;
716 wxButton *m_draw_axis;
717 wxButton *m_draw_contour;
718 wxButton *m_draw_accuracy;
722 void LeftStatusText(
const wxString &text,
bool saveInLog =
true)
724 void RightStatusText(
const wxString &text,
bool saveInLog =
true)
747 void UpdateSymbols();
748 void OnMouseRightDown(wxMouseEvent &event);
749 void OnMenu(wxCommandEvent &event);
750 void OnSize(wxSizeEvent &event);
753 wxSizer *m_lowercaseSizer;
754 wxSizer *m_uppercaseSizer;
758 class SymbolsPane :
public wxScrolled<wxPanel>
763 void UpdateUserSymbols();
765 void OnMouseRightDown(wxMouseEvent &event);
766 void OnMenu(wxCommandEvent &event);
767 void OnSize(wxSizeEvent &event);
770 wxPanel *m_userSymbols;
772 std::list<wxWindow *> m_userSymbolButtons;
773 wxSizer *m_userSymbolsSizer;
778 wxPanel *CreateSymbolsPane();
781 bool m_historyVisible;
782 bool m_xmlMonitorVisible;
783 SymbolsPane *m_symbolsPane;
794 bool ToolbarIsShown();
810 wxMenu *m_recentDocumentsMenu;
811 wxMenu *m_recentPackagesMenu;
812 wxMenu *m_autoSubscriptMenu;
813 wxMenu *m_equationTypeMenuMenu;
814 wxMenu *m_roundedMatrixParensMenu;
817 #endif // WXMAXIMAFRAME_H
int m_commandsLeftInCurrentCell
The number of commands left in the current of the evaluation queue item.
Definition: wxMaximaFrame.h:789
@ menu_pane_structure
Both the "toggle the structure pane" command and the structure.
Definition: wxMaximaFrame.h:104
void UpdateRecentDocuments()
Definition: wxMaximaFrame.cpp:1462
@ menu_pane_format
Both the "toggle the format pane" command and the format pane.
Definition: wxMaximaFrame.h:106
bool IsPaneDisplayed(Event id)
Definition: wxMaximaFrame.cpp:1606
bool m_updateEvaluationQueueLengthDisplay
Do we need to update the display showing the evaluation queue length?
Definition: wxMaximaFrame.h:787
Worksheet * m_worksheet
The worksheet itself.
Definition: wxMaximaFrame.h:804
long m_bytesFromMaxima
How many bytes did maxima send us until now?
Definition: wxMaximaFrame.h:607
wxMenu * m_NumericMenu
The numeric menu.
Definition: wxMaximaFrame.h:651
LogPane * m_logPane
The panel the log and debug messages will appear on.
Definition: wxMaximaFrame.h:802
wxMenu * m_SimplifyMenu
The simplify menu.
Definition: wxMaximaFrame.h:635
Event
Definition: wxMaximaFrame.h:88
void StatusSaveFinished()
Set the status to "Maxima has finished saving".
Definition: wxMaximaFrame.cpp:587
MainMenuBar * m_MenuBar
The menu bar.
Definition: wxMaximaFrame.h:617
void StatusExportFailed()
Set the status to "Exporting has failed".
Definition: wxMaximaFrame.cpp:621
wxMenu * m_listMenu
The list menu.
Definition: wxMaximaFrame.h:649
wxMenu * m_CalculusMenu
The calculus menu.
Definition: wxMaximaFrame.h:645
@ menu_pane_log
Both the "toggle the log pane" command and the "log" pane.
Definition: wxMaximaFrame.h:109
wxString m_tempfileName
The last name GetTempAutosavefileName() has returned.
Definition: wxMaximaFrame.h:611
wxMenu * m_CellMenu
The cell menu.
Definition: wxMaximaFrame.h:623
StatusBar * m_statusBar
The status bar.
Definition: wxMaximaFrame.h:615
bool m_newLeftStatusText
Do we have new text to output in the Left half of the Status Bar?
Definition: wxMaximaFrame.h:732
wxMenu * m_PlotMenu
The plot menu.
Definition: wxMaximaFrame.h:647
void RemoveTempAutosavefile()
Remove an eventual temporary autosave file.
Definition: wxMaximaFrame.cpp:1591
long m_pid
The process id of maxima. Is determined by ReadFirstPrompt.
Definition: wxMaximaFrame.h:609
wxMenu * m_HelpMenu
The help menu.
Definition: wxMaximaFrame.h:653
void AddToHistory(const wxString &cmd)
Add a file to the recently opened files list.
Definition: History.cpp:221
void StatusMaximaBusy(ToolbarStatus status)
Definition: wxMaximaFrame.h:579
wxMenu * m_Simplify_Gamma_Sub
The factorials and gamma submenu.
Definition: wxMaximaFrame.h:637
wxString m_rightStatusText
The text for the Right half of the Status Bar.
Definition: wxMaximaFrame.h:734
void EvaluationQueueLength(int length, int numberOfCommands=-1)
Definition: wxMaximaFrame.cpp:492
bool m_first
Do we expect the 1st prompt from maxima to appear?
Definition: wxMaximaFrame.h:792
void StatusExportStart()
Set the status to "Maxima is exporting".
Definition: wxMaximaFrame.cpp:597
@ menu_pane_hideall
Definition: wxMaximaFrame.h:96
@ menu_pane_unicode
Both the "toggle the unicode pane" command and the "unicode" pane.
Definition: wxMaximaFrame.h:108
void OnNotificationClose(wxCommandEvent WXUNUSED(&event))
Issued if a notification is closed.
Definition: StatusBar.h:42
void DockAllSidebars(wxCommandEvent &ev)
Definition: wxMaximaFrame.cpp:1656
wxMenu * m_EditMenu
The edit menu.
Definition: wxMaximaFrame.h:621
wxMenu * m_Maxima_Panes_Sub
The panes submenu.
Definition: wxMaximaFrame.h:627
XmlInspector * m_xmlInspector
A XmlInspector-like xml monitor.
Definition: wxMaximaFrame.h:798
@ menu_pane_xmlInspector
Both the "toggle the xml monitor" command and the monitor pane.
Definition: wxMaximaFrame.h:105
wxMenu * m_FileMenu
The file menu.
Definition: wxMaximaFrame.h:619
wxMenu * m_debugTypeMenu
Contains the menu for the debugger trigger settingxc.
Definition: wxMaximaFrame.h:639
virtual ~wxMaximaFrame()
Definition: wxMaximaFrame.cpp:628
@ menu_pane_history
Both the "toggle the history pane" command and the history pane.
Definition: wxMaximaFrame.h:103
@ menu_pane_variables
Both the "toggle the variables pane" command and the "variables" pane.
Definition: wxMaximaFrame.h:110
void StatusSaveFailed()
Set the status to "Saving has failed".
Definition: wxMaximaFrame.cpp:614
virtual wxSize DoGetBestClientSize() const
The default size for the window.
Definition: wxMaximaFrame.cpp:482
wxString m_leftStatusText
The text for the Left half of the Status Bar.
Definition: wxMaximaFrame.h:736
@ menu_pane_symbols
Both the "toggle the symbols pane" command for the "symbols" pane.
Definition: wxMaximaFrame.h:112
wxMenu * m_Simplify_Complex_Sub
The complex submenu.
Definition: wxMaximaFrame.h:643
wxMenu * m_Edit_Zoom_Sub
The zoom submenu.
Definition: wxMaximaFrame.h:625
void RegisterAutoSaveFile()
Remember a temporary autosave file name.
Definition: wxMaximaFrame.cpp:1581
void StatusExportFinished()
Set the status to "Maxima has finished exporting".
Definition: wxMaximaFrame.cpp:604
long m_drawDimensions_last
Are we inside a 2d or 3d draw command?
Definition: wxMaximaFrame.h:728
bool m_newRightStatusText
Do we have new text to output in the Right half of the Status Bar?
Definition: wxMaximaFrame.h:730
wxAuiManager m_manager
The manager for dynamic screen layouts.
Definition: wxMaximaFrame.h:796
Definition: Configuration.h:83
@ menu_pane_math
Definition: wxMaximaFrame.h:102
@ menu_pane_greek
Both the "toggle the greek pane" command and the "greek" pane.
Definition: wxMaximaFrame.h:107
wxMenu * m_MaximaMenu
The maxima menu.
Definition: wxMaximaFrame.h:631
Definition: MainMenuBar.h:36
History * m_history
The history pane.
Definition: wxMaximaFrame.h:806
wxMenu * m_Algebra_Menu
The algebra menu.
Definition: wxMaximaFrame.h:633
Definition: wxMaximaFrame.h:59
Definition: Worksheet.h:86
Definition: XmlInspector.h:39
ToolbarStatus m_StatusMaximaBusy
True=Maxima is currently busy.
Definition: wxMaximaFrame.h:583
void ShowToolBar(bool show)
Definition: wxMaximaFrame.cpp:2326
void StatusSaveStart()
Set the status to "Maxima is saving".
Definition: wxMaximaFrame.cpp:580
@ menu_show_toolbar
End of bundled tutorials.
Definition: wxMaximaFrame.h:512
bool m_forceStatusbarUpdate
true=force an update of the status bar at the next call of StatusMaximaBusy()
Definition: wxMaximaFrame.h:800
void AddToHistory(const wxString &cmd)
Adds a command to the list of recently used maxima commands.
Definition: wxMaximaFrame.h:552
void ShowPane(Event id, bool show=true)
Definition: wxMaximaFrame.cpp:1673
int m_EvaluationQueueLength
The current length of the evaluation queue of commands we still need to send to maxima.
Definition: wxMaximaFrame.h:785
wxMenu * m_EquationsMenu
The equations menu.
Definition: wxMaximaFrame.h:629
@ menu_pane_stats
Definition: wxMaximaFrame.h:118
void ReReadConfig()
Re-read the configuration.
Definition: wxMaximaFrame.cpp:1547
A class that maintains a list of recent documents.
Definition: RecentDocuments.h:41
DrawPane * m_drawPane
The sidebar with the draw commands.
Definition: wxMaximaFrame.h:740
@ menu_pane_draw
Both the "toggle the draw pane" command for the "draw" pane.
Definition: wxMaximaFrame.h:111
wxMenu * m_Simplify_Trig_Sub
The trigonometric submenu.
Definition: wxMaximaFrame.h:641
@ menu_help_solving
Start of bundled tutorials.
Definition: wxMaximaFrame.h:502