|
wxMaxima
|
The configuration dialog. More...
#include <ConfigDialogue.h>
Data Structures | |
| struct | AiProviderUiRecord |
| One entry per configurable provider – the four built-ins (in fixed order) plus any custom ones – kept in memory only for the dialog's lifetime. "None (disabled)" is not one of these; it's a separate, always-first item in m_aiChatProviderChoice with no detail box. More... | |
Public Types | |
| enum | htmlExportFormats { mathJaX_TeX = 0 , bitmap = 1 , mathML_mathJaX = 2 , svg = 3 } |
| The export formats we support for HTML equations. | |
Public Member Functions | |
| ConfigDialogue (wxWindow *parent) | |
| The constructor. | |
| ~ConfigDialogue () | |
| The destructor. | |
| void | OnChangeColor (wxColourPickerEvent &event) |
| Called if the color of an item has been changed. | |
| void | WriteSettings () |
| Stores the settings from the configuration dialog. | |
Protected Member Functions | |
| void | OnImport (wxCommandEvent &event) |
| void | OnReloadAll (wxCommandEvent &event) |
| void | OnReloadStyles (wxCommandEvent &event) |
| void | OnResetAllToDefaults (wxCommandEvent &event) |
| void | OnExportAll (wxCommandEvent &event) |
| void | OnResetStyles (wxCommandEvent &event) |
| void | OnChangeMaximaEnvVar (wxGridEvent &event) |
| void | OnMaximaEnvRightClick (wxGridEvent &event) |
| void | OnMouseMotion_MaximaEnv (wxMouseEvent &event) |
| void | OnNewEnvMenu (wxCommandEvent &event) |
| void | OnClickMaximaEnvVal (int row) |
| void | OnChangeMaximaCellClick (wxGridEvent &event) |
| void | OnTabChange (wxBookCtrlEvent &event) |
| Called if the currently active dialogue sheet is changed. | |
| void | OnStyleToEditChanged (wxCommandEvent &event) |
| Called if the user changes the style that is to be edited. | |
| void | OnAppearanceChanged (wxCommandEvent &event) |
| Light / Dark / Follow-system appearance changed: re-point the style editor. | |
| void | OnAiProviderChoice (wxCommandEvent &event) |
| void | OnAiRemoveCustomProvider (wxCommandEvent &event) |
| void | StashAiProviderUiIntoRecord () |
| Copies the on-screen key/model/(baseUrl/shape for Custom) fields back into m_aiProviderRecords[m_aiActiveProviderRecordIndex], if any – called before switching the displayed record and before saving. | |
| void | LoadAiProviderRecordIntoUi (int index) |
| The inverse: populates the shared detail box from m_aiProviderRecords[index], showing/hiding the Custom-only controls as needed. index == -1 hides the whole detail box ("None (disabled)"). | |
| bool | AddCustomAiProviderDialog () |
| Opens a small modal to create a new custom provider (name/shape/ baseUrl/model); on success appends it to m_aiProviderRecords, rebuilds m_aiChatProviderChoice and selects it. Returns false (and changes nothing) if the user cancels. | |
| void | RebuildAiProviderChoice (int selectIndex) |
Rebuilds m_aiChatProviderChoice's items from m_aiProviderRecords (plus the fixed "None (disabled)" and "Add custom provider..." entries) and selects selectIndex (-1 for "None"). | |
| void | UsesvgChanged (wxCommandEvent &event) |
| Is called when the path to the maxima binary was changed. | |
| void | OnClose (wxCloseEvent &event) |
| Is called when the configuration dialog is closed. | |
| void | OnwxMathMLBrowse (wxCommandEvent &event) |
| void | OnIdle (wxIdleEvent &event) |
| void | OnChangeStyle (wxCommandEvent &event) |
| Called if a new item type that is to be styled is selected. | |
| void | OnChangeWarning (wxCommandEvent &event) |
| A message dialog that appears if a change cannot be applied now. | |
| void | OnCheckbox (wxCommandEvent &event) |
| Called if one of the checkboxes for bold, italic or underlined is toggled. | |
| void | UpdateExample () |
| Sets the style example's style on style changes. | |
| void | OnChangeFontFamily (wxCommandEvent &event) |
| Called if the font family is changed. | |
| void | LoadSave (wxCommandEvent &event) |
| A "export the configuration" dialog. | |
| TextStyle | GetSelectedStyle () const |
| Get the style currently selected in the m_styleFor control. | |
Static Protected Member Functions | |
| static void | CopyConfig (wxConfigBase *src, wxConfigBase *dst, wxString dir=wxS("/")) |
Protected Attributes | |
| wxGrid * | m_maximaEnvVariables |
| wxString | m_startupFileName |
| The name of maxima's startup file. | |
| wxString | m_wxStartupFileName |
| The name of wxMaxima's startup file. | |
| wxStaticText * | m_mp |
| The text "Maxima Program" that can change color. | |
| StringHash | m_maximaEnvDoc |
| wxRadioButton * | m_autodetectMaxima |
| Autodetect the maxima location? | |
| wxRadioButton * | m_noAutodetectMaxima |
| The radio button that is set if m_autodetectMaxima is unset. | |
| wxRadioButton * | m_autodetectHelpBrowser |
| wxRadioButton * | m_noAutodetectHelpBrowser |
| wxRadioButton * | m_internalHelpBrowser |
| wxCheckBox * | m_singlePageManual |
| wxRadioButton * | m_maximaUsesInternalHelp |
| wxRadioButton * | m_maximaUsesHtmlHelp |
| wxRadioButton * | m_maximaUsesWxmaximaHelp |
| wxRadioButton * | m_autodetectMathJaX |
| Autodetect the mathJaX location? | |
| wxRadioButton * | m_noAutodetectMathJaX |
| The radio button that is set if m_autodetectMathJaX is unset. | |
| wxRadioButton * | m_useGnuplot |
| wxRadioButton * | m_useWgnuplot |
| wxTextCtrl * | m_startupCommands |
| A textbox containing maxima's startup commands. | |
| wxTextCtrl * | m_wxStartupCommands |
| A textbox containing wxMaxima's startup commands. | |
| BinaryNameCtrl * | m_maximaUserLocation |
| BinaryNameCtrl * | m_helpBrowserUserLocation |
| wxTextCtrl * | m_documentclass |
| wxTextCtrl * | m_documentclassOptions |
| wxTextCtrl * | m_texPreamble |
| wxCheckBox * | m_autoSave |
| wxButton * | m_wxMathMLBrowse |
| wxTextCtrl * | m_additionalParameters |
| wxTextCtrl * | m_mathJaxURL |
| wxChoice * | m_language |
| wxTextCtrl * | m_symbolPaneAdditionalChars |
| wxCheckBox * | m_abortOnError |
| wxCheckBox * | m_offerKnownAnswers |
| wxCheckBox * | m_restartOnReEvaluation |
| wxCheckBox * | m_wrapLatexMath |
| wxCheckBox * | m_usesvg |
| wxCheckBox * | m_antialiasLines |
| wxSpinCtrlDouble * | m_defaultFramerate |
| wxSpinCtrl * | m_defaultPlotWidth |
| wxSpinCtrl * | m_defaultPlotHeight |
| wxSpinCtrl * | m_displayedDigits |
| wxSpinCtrl * | m_printMargin_Top |
| wxSpinCtrl * | m_printMargin_Bot |
| wxSpinCtrl * | m_printMargin_Left |
| wxSpinCtrl * | m_printMargin_Right |
| wxRadioButton * | m_displayNDigits |
| wxRadioButton * | m_displayAllDigits |
| wxRadioButton * | m_linebreaksInLongNums |
| wxSpinCtrl * | m_maxClipbrdBitmapMegabytes |
| wxCheckBox * | m_TeXExponentsAfterSubscript |
| A checkbox that asks if TeX should put the exponents above or after the subscripts. | |
| wxCheckBox * | m_usePartialForDiff |
| A checkbox that asks if TeX should use the \partial symbol for representing diff() | |
| wxCheckBox * | m_exportContainsWXMX |
| A checkbox that asks if all newlines in text cells have to be passed to HTML. | |
| wxCheckBox * | m_printBrackets |
| wxChoice * | m_exportWithMathJAX |
| wxCheckBox * | m_matchParens |
| wxCheckBox * | m_showMatchingParens |
| wxChoice * | m_showLength |
| wxChoice * | m_autosubscript |
| wxRadioBox * | m_layoutStrategy |
| wxRadioButton * | m_enterEvaluates |
| wxRadioButton * | m_ctrlEnterEvaluates |
| wxCheckBox * | m_numpadEnterEvaluates |
| wxCheckBox * | m_saveImgFileName |
| wxCheckBox * | m_saveUntitled |
| wxCheckBox * | m_openHCaret |
| wxCheckBox * | m_insertAns |
| wxCheckBox * | m_autoIndent |
| wxCheckBox * | m_cursorJump |
| wxCheckBox * | m_hideBrackets |
| wxCheckBox * | m_indentMaths |
| wxChoice * | m_autoWrap |
| wxSpinCtrl * | m_labelWidth |
| wxSpinCtrl * | m_recentItems |
| wxSpinCtrl * | m_bitmapScale |
| wxSpinCtrlDouble * | m_printScale |
| wxCheckBox * | m_fixReorderedIndices |
| wxCheckBox * | m_incrementalSearch |
| wxCheckBox * | m_notifyIfIdle |
| wxCheckBox * | m_findDialogDockable |
| wxCheckBox * | m_mcpServerEnabled |
| wxSpinCtrl * | m_mcpServerPort |
| std::vector< AiProviderUiRecord > | m_aiProviderRecords |
| int | m_aiActiveProviderRecordIndex = -1 |
| Index into m_aiProviderRecords of whichever one m_aiKeyCtrl/ m_aiModelCtrl/... currently display, or -1 while "None (disabled)" is selected. Needed because switching the choice has to flush the outgoing record's edits before loading the incoming one. | |
| wxChoice * | m_aiChatProviderChoice |
| wxStaticBoxSizer * | m_aiProviderDetailBox |
| One reusable box showing whichever provider is currently selected, rather than all of them stacked at once – repopulated by OnAiProviderChoice() every time the selection changes. | |
| wxStaticText * | m_aiBaseUrlLabel |
| wxTextCtrl * | m_aiBaseUrlCtrl |
| Editable only for a Custom record; shows (read-only, via Disable()) the fixed URL for a built-in one, so its value is still visible. | |
| wxStaticText * | m_aiShapeLabel |
| wxChoice * | m_aiShapeChoice |
| wxTextCtrl * | m_aiKeyCtrl |
| wxTextCtrl * | m_aiModelCtrl |
| wxHyperlinkCtrl * | m_aiApiKeyLink |
| wxHyperlinkCtrl * | m_aiModelListLink |
| wxButton * | m_aiRemoveCustomProviderButton |
| Shown only for a Custom record; deletes it (and its stored API key) outright rather than just clearing its fields. | |
| wxChoice * | m_showUserDefinedLabels |
| wxButton * | m_getStyleFont |
| wxChoice * | m_appearanceChoice |
| Light / Dark / Follow-system selector (also picks which set the editor edits). | |
| wxListBox * | m_styleFor |
| wxColourPickerCtrl * | m_styleColor |
| An example rectangle with the font color. | |
| wxCheckBox * | m_boldCB |
| wxCheckBox * | m_italicCB |
| wxCheckBox * | m_slantedCB |
| wxCheckBox * | m_strikethroughCB |
| wxCheckBox * | m_underlinedCB |
| wxCheckBox * | m_fixedFontInTC |
| wxCheckBox * | m_unixCopy |
| wxCheckBox * | m_changeAsterisk |
| wxCheckBox * | m_hidemultiplicationSign |
| wxCheckBox * | m_latin2Greek |
| wxCheckBox * | m_useUnicodeMaths |
| wxCheckBox * | m_keepPercentWithSpecials |
| wxBookCtrlBase * | m_notebook |
| wxButton * | m_saveStyle |
| wxButton * | m_loadStyle |
| wxSpinCtrl * | m_defaultPort |
| ExamplePanel * | m_examplePanel |
| wxSpinCtrl * | m_maxGnuplotMegabytes |
| wxSpinCtrl * | m_autosaveMinutes |
| wxSpinCtrl * | m_maxLayoutTime |
| wxTextCtrl * | m_autoMathJaxURL |
| int | m_maximaEmvRightClickRow = 0 |
| int | m_fontSize |
| The size of the text font. | |
| int | m_mathFontSize |
| The size of the maths font. | |
| std::unique_ptr< wxImageList > | m_imageList |
| A list containing the pictograms for the tabs. | |
The configuration dialog.
This class draws and handles the configuration dialog.
Code that needs to know the value of the preferences that are set here reads them directly using config->Read , instead.
| void ConfigDialogue::WriteSettings | ( | ) |
Stores the settings from the configuration dialog.
wxWidgets knows how to store the settings to gconf, the registry or wherever the current system expects settings to be saved to.