![]() |
wxMaxima
|
#include <wxMaximaFrame.h>
Public Types | |
enum | Event { menu_pane_hideall = wxID_HIGHEST + 2500, menu_pane_math, menu_pane_history, menu_pane_structure, menu_pane_xmlInspector, menu_pane_format, menu_pane_greek, menu_pane_unicode, menu_pane_log, menu_pane_variables, menu_pane_draw, menu_pane_symbols, menu_pane_stats, menu_pane_dockAll, input_line_id, refresh_id, menu_batch_id, menu_load_id, menu_sconsole_id, menu_interrupt_id, menu_solve, menu_solve_to_poly, menu_solve_num, menu_allroots, menu_bfallroots, menu_realroots, menu_solve_lin, menu_solve_algsys, menu_eliminate, menu_solve_ode, menu_ivp_1, menu_ivp_2, menu_bvp, menu_gen_mat, menu_gen_mat_lambda, menu_enter_mat, menu_csv2mat, menu_mat2csv, menu_csv2list, menu_list2csv, menu_matrix_row, menu_matrix_col, menu_matrix_row_list, menu_matrix_col_list, menu_submatrix, menu_matrix_multiply, menu_matrix_exponent, menu_matrix_hadamard_product, menu_matrix_hadamard_exponent, menu_invert_mat, menu_cpoly, menu_determinant, menu_rank, menu_eigen, menu_eigvect, menu_fun_def, menu_adjoint_mat, menu_transpose, menu_map_mat, menu_ratsimp, menu_radsimp, menu_factor, menu_gfactor, menu_expand, menu_talg, menu_tellrat, menu_modulus, menu_trigsimp, menu_trigreduce, menu_trigexpand, menu_trigrat, menu_rectform, menu_polarform, menu_demoivre, menu_exponentialize, menu_num_out, menu_stringdisp, menu_to_float, menu_to_bfloat, menu_to_numer, menu_num_domain, menu_set_precision, menu_set_displayprecision, menu_engineeringFormat, menu_engineeringFormatSetup, menu_functions, menu_variables, menu_clear_var, menu_clear_fun, menu_integrate, menu_risch, menu_laplace, menu_ilt, menu_continued_fraction, menu_gcd, menu_lcm, menu_divide, menu_partfrac, menu_sum, menu_limit, menu_lbfgs, menu_series, menu_pade, menu_map, menu_diff, menu_solve_de, menu_atvalue, menu_lhs, menu_rhs, menu_wxmaximahelp, menu_maximahelp, menu_example, menu_apropos, menu_product, menu_make_list, menu_apply, menu_time, menu_factsimp, menu_factcomb, menu_realpart, menu_imagpart, menu_subst, menu_jumptoerror, menu_math_as_1D_ASCII, menu_math_as_2D_ASCII, menu_math_as_graphics, menu_noAutosubscript, menu_defaultAutosubscript, menu_alwaysAutosubscript, menu_autosubscriptIndividual, menu_declareAutosubscript, menu_noAutosubscriptIndividual, menu_roundedMatrixParens, menu_squareMatrixParens, menu_straightMatrixParens, menu_angledMatrixParens, menu_noMatrixParens, menu_draw_2d, menu_draw_3d, menu_draw_explicit, menu_draw_implicit, menu_draw_parametric, menu_draw_points, menu_draw_fgcolor, menu_draw_fillcolor, menu_draw_title, menu_draw_key, menu_draw_grid, menu_draw_axis, menu_draw_accuracy, menu_draw_contour, menu_license, button_factor_id, button_solve, button_solve_ode, button_limit, button_taylor, button_expand, button_ratsimp, button_radcan, button_trigsimp, button_trigexpand, button_trigreduce, button_trigrat, button_integrate, button_diff, button_sum, button_product, button_button_constant, button_factor, button_subst, button_plot2, button_plot3, button_rectform, button_map, gp_plot2, gp_plot3, menu_animationautostart, menu_animationframerate, menu_display, menu_soft_restart, menu_plot_format, menu_build_info, menu_bug_report, menu_add_path, menu_evaluate_all_visible, menu_evaluate_all, menu_show_tip, menu_copy_matlab_from_worksheet, menu_copy_tex_from_worksheet, menu_copy_text_from_worksheet, menu_logcontract, menu_logexpand, menu_to_fact, menu_to_gamma, menu_texform, menu_debugmode, menu_debugmode_off, menu_debugmode_lisp, menu_debugmode_all, button_enter, menu_zoom_80, menu_zoom_120, menu_zoom_150, menu_zoom_200, menu_zoom_300, menu_copy_as_bitmap, menu_copy_as_svg, menu_save_as_svg, menu_copy_as_emf, menu_save_as_emf, menu_copy_as_rtf, menu_copy_to_file, menu_export_html, menu_change_var, menu_nouns, menu_evaluate, menu_convert_to_code, menu_add_comment, menu_convert_to_comment, menu_add_subsubsection, menu_add_heading5, menu_add_heading6, menu_convert_to_subsubsection, menu_convert_to_heading5, menu_convert_to_heading6, menu_add_subsection, menu_convert_to_subsection, menu_add_section, menu_convert_to_section, menu_add_title, menu_convert_to_title, menu_add_pagebreak, menu_fold_all_cells, menu_unfold_all_cells, menu_insert_input, menu_insert_previous_input, menu_insert_previous_output, menu_autocomplete, menu_autocomplete_templates, menu_paste_input, menu_fullscreen, menu_remove_output, menu_list_create_from_elements, menu_list_create_from_rule, menu_list_create_from_list, menu_list_create_from_args, menu_list_list2matrix, menu_list_matrix2list, menu_list_actual_values_storage, menu_list_sort, menu_list_remove_duplicates, menu_list_length, menu_list_push, menu_list_pop, menu_list_reverse, menu_list_first, menu_list_last, menu_list_lastn, menu_list_rest, menu_list_restN, menu_list_nth, menu_list_map, menu_list_use_actual_values, menu_list_extract_value, menu_list_as_function_arguments, menu_list_do_for_each_element, menu_list_remove_element, menu_list_append_item_start, menu_list_append_item_end, menu_list_append_list, menu_list_interleave, menu_recent_packages, menu_recent_package_0, menu_recent_package_1, menu_recent_package_2, menu_recent_package_3, menu_recent_package_4, menu_recent_package_5, menu_recent_package_6, menu_recent_package_7, menu_recent_package_8, menu_recent_package_9, menu_recent_package_10, menu_recent_package_11, menu_recent_package_12, menu_recent_package_13, menu_recent_package_14, menu_recent_package_15, menu_recent_package_16, menu_recent_package_17, menu_recent_package_18, menu_recent_package_19, menu_recent_package_20, menu_recent_package_21, menu_recent_package_22, menu_recent_package_23, menu_recent_package_24, menu_recent_package_25, menu_recent_package_26, menu_recent_package_27, menu_recent_package_28, menu_recent_package_29, menu_recent_documents, menu_recent_document_0, menu_recent_document_1, menu_recent_document_2, menu_recent_document_3, menu_recent_document_4, menu_recent_document_5, menu_recent_document_6, menu_recent_document_7, menu_recent_document_8, menu_recent_document_9, menu_recent_document_10, menu_recent_document_11, menu_recent_document_12, menu_recent_document_13, menu_recent_document_14, menu_recent_document_15, menu_recent_document_16, menu_recent_document_17, menu_recent_document_18, menu_recent_document_19, menu_recent_document_20, menu_recent_document_21, menu_recent_document_22, menu_recent_document_23, menu_recent_document_24, menu_recent_document_25, menu_recent_document_26, menu_recent_document_27, menu_recent_document_28, menu_recent_document_29, menu_recent_document_separator, menu_unsaved_document_0, menu_unsaved_document_1, menu_unsaved_document_2, menu_unsaved_document_3, menu_unsaved_document_4, menu_unsaved_document_5, menu_unsaved_document_6, menu_unsaved_document_7, menu_unsaved_document_8, menu_unsaved_document_9, menu_unsaved_document_10, menu_unsaved_document_11, menu_unsaved_document_12, menu_unsaved_document_13, menu_unsaved_document_14, menu_unsaved_document_15, menu_unsaved_document_16, menu_unsaved_document_17, menu_unsaved_document_18, menu_unsaved_document_19, menu_unsaved_document_20, menu_unsaved_document_21, menu_unsaved_document_22, menu_unsaved_document_23, menu_unsaved_document_24, menu_unsaved_document_25, menu_unsaved_document_26, menu_unsaved_document_27, menu_unsaved_document_28, menu_unsaved_document_29, menu_insert_image, menu_stats_mean, menu_stats_median, menu_stats_var, menu_stats_dev, menu_stats_tt1, menu_stats_tt2, menu_stats_tnorm, menu_stats_linreg, menu_stats_lsquares, menu_stats_histogram, menu_stats_scatterplot, menu_stats_barsplot, menu_stats_piechart, menu_stats_boxplot, menu_stats_readm, menu_stats_enterm, menu_stats_subsample, menu_format_code, menu_format_text, menu_format_heading6, menu_format_heading5, menu_format_subsubsection, menu_format_subsection, menu_format_section, menu_format_title, menu_format_image, menu_format_pagebreak, menu_help_tutorials, menu_help_tutorials_start, menu_help_solving, menu_help_diffequations, menu_help_numberformats, menu_help_tolerances, menu_help_listaccess, menu_help_memoizing, menu_help_3d, menu_help_varnames, menu_help_fittingData, menu_help_tutorials_end, menu_show_toolbar, menu_history_previous, menu_history_next, menu_check_updates, socket_client_id, socket_server_id, maxima_process_id, gnuplot_query_terminals_id, gnuplot_process_id, menu_additionalSymbols, enable_unicodePane, menu_showLatinGreekLookalikes, menu_showGreekMu, menu_invertWorksheetBackground } |
enum | ToolbarStatus { wait_for_start, process_wont_start, sending, waiting, calculating, parsing, transferring, userinput, disconnected } |
Public Member Functions | |
wxMaximaFrame (wxWindow *parent, int id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxSYSTEM_MENU|wxCAPTION, bool becomeLogTarget=true) | |
virtual | ~wxMaximaFrame () |
void | ShowToolBar (bool show) |
void | UpdateRecentDocuments () |
bool | IsPaneDisplayed (Event id) |
void | ShowPane (Event id, bool show=true) |
void | AddToHistory (const wxString &cmd) |
Adds a command to the list of recently used maxima commands. | |
void | EvaluationQueueLength (int length, int numberOfCommands=-1) |
void | StatusMaximaBusy (ToolbarStatus status) |
void | UpdateStatusMaximaBusy () |
void | StatusSaveStart () |
Set the status to "Maxima is saving". | |
void | StatusSaveFinished () |
Set the status to "Maxima has finished saving". | |
void | StatusSaveFailed () |
Set the status to "Saving has failed". | |
void | StatusExportStart () |
Set the status to "Maxima is exporting". | |
void | StatusExportFinished () |
Set the status to "Maxima has finished exporting". | |
void | StatusExportFailed () |
Set the status to "Exporting has failed". | |
void | LeftStatusText (const wxString &text, bool saveInLog=true) |
void | RightStatusText (const wxString &text, bool saveInLog=true) |
Public Attributes | |
ToolbarStatus | m_StatusMaximaBusy |
True=Maxima is currently busy. | |
ToolbarStatus | m_StatusMaximaBusy_next |
Protected Member Functions | |
void | OnNotificationClose (wxCommandEvent WXUNUSED(&event)) |
Issued if a notification is closed. | |
void | RemoveTempAutosavefile () |
Remove an eventual temporary autosave file. | |
void | ReReadConfig () |
Re-read the configuration. | |
void | RegisterAutoSaveFile () |
Remember a temporary autosave file name. | |
void | DockAllSidebars (wxCommandEvent &ev) |
virtual wxSize | DoGetBestClientSize () const |
The default size for the window. | |
bool | ToolbarIsShown () |
Protected Attributes | |
long | m_bytesFromMaxima |
How many bytes did maxima send us until now? | |
long | m_pid |
The process id of maxima. Is determined by ReadFirstPrompt. | |
wxString | m_tempfileName |
The last name GetTempAutosavefileName() has returned. | |
StatusBar * | m_statusBar |
The status bar. | |
MainMenuBar * | m_MenuBar |
The menu bar. | |
wxMenu * | m_FileMenu |
The file menu. | |
wxMenu * | m_EditMenu |
The edit menu. | |
wxMenu * | m_CellMenu |
The cell menu. | |
wxMenu * | m_Edit_Zoom_Sub |
The zoom submenu. | |
wxMenu * | m_Maxima_Panes_Sub |
The panes submenu. | |
wxMenu * | m_EquationsMenu |
The equations menu. | |
wxMenu * | m_MaximaMenu |
The maxima menu. | |
wxMenu * | m_Algebra_Menu |
The algebra menu. | |
wxMenu * | m_SimplifyMenu |
The simplify menu. | |
wxMenu * | m_Simplify_Gamma_Sub |
The factorials and gamma submenu. | |
wxMenu * | m_debugTypeMenu |
Contains the menu for the debugger trigger settingxc. | |
wxMenu * | m_Simplify_Trig_Sub |
The trigonometric submenu. | |
wxMenu * | m_Simplify_Complex_Sub |
The complex submenu. | |
wxMenu * | m_CalculusMenu |
The calculus menu. | |
wxMenu * | m_PlotMenu |
The plot menu. | |
wxMenu * | m_listMenu |
The list menu. | |
wxMenu * | m_NumericMenu |
The numeric menu. | |
wxMenu * | m_HelpMenu |
The help menu. | |
long | m_drawDimensions_last |
Are we inside a 2d or 3d draw command? | |
bool | m_newRightStatusText |
Do we have new text to output in the Right half of the Status Bar? | |
bool | m_newLeftStatusText |
Do we have new text to output in the Left half of the Status Bar? | |
wxString | m_rightStatusText |
The text for the Right half of the Status Bar. | |
wxString | m_leftStatusText |
The text for the Left half of the Status Bar. | |
DrawPane * | m_drawPane |
The sidebar with the draw commands. | |
bool | m_historyVisible |
bool | m_xmlMonitorVisible |
SymbolsPane * | m_symbolsPane |
int | m_EvaluationQueueLength |
The current length of the evaluation queue of commands we still need to send to maxima. | |
bool | m_updateEvaluationQueueLengthDisplay |
Do we need to update the display showing the evaluation queue length? | |
int | m_commandsLeftInCurrentCell |
The number of commands left in the current of the evaluation queue item. | |
bool | m_first |
Do we expect the 1st prompt from maxima to appear? | |
wxAuiManager | m_manager |
The manager for dynamic screen layouts. | |
XmlInspector * | m_xmlInspector |
A XmlInspector-like xml monitor. | |
bool | m_forceStatusbarUpdate |
true=force an update of the status bar at the next call of StatusMaximaBusy() | |
LogPane * | m_logPane |
The panel the log and debug messages will appear on. | |
Worksheet * | m_worksheet |
The worksheet itself. | |
History * | m_history |
The history pane. | |
RecentDocuments | m_recentDocuments |
RecentDocuments | m_unsavedDocuments |
RecentDocuments | m_recentPackages |
wxMenu * | m_recentDocumentsMenu |
wxMenu * | m_recentPackagesMenu |
wxMenu * | m_autoSubscriptMenu |
wxMenu * | m_equationTypeMenuMenu |
wxMenu * | m_roundedMatrixParensMenu |
The frame containing the menu and the sidebars
enum wxMaximaFrame::Event |
A list of all events the maxima frame can receive
This list serves several purposes:
|
virtual |
The destructor
|
protected |
An instant single-window mode
A last resort if https://trac.wxwidgets.org/ticket/18815 hinders one from re-docking windows.
void wxMaximaFrame::EvaluationQueueLength | ( | int | length, |
int | numberOfCommands = -1 |
||
) |
Inform the user about the length of the evaluation queue.
bool wxMaximaFrame::IsPaneDisplayed | ( | Event | id | ) |
true, if a Pane is currently enabled
id | The event that toggles the visibility of the pane that is to be queried |
void wxMaximaFrame::ShowPane | ( | Event | id, |
bool | show = true |
||
) |
Show or hide a sidebar
id | The type of the sidebar to show/hide |
show |
|
void wxMaximaFrame::ShowToolBar | ( | bool | show | ) |
Shows or hides the toolbar
show |
|
|
inline |
void wxMaximaFrame::UpdateRecentDocuments | ( | ) |
Update the recent documents list
Copies the string array containing the list of recent documents to the recent documents menu.