41#ifndef WIZARDCATALOG_H
42#define WIZARDCATALOG_H
70 const wxString &tooltip = {}) {
71 return {label, defaultValue, tooltip,
false};
76 const wxString &tooltip = {}) {
77 return {label, wxString(), tooltip,
true};
89 std::vector<wxWindowID>
ids = {};
99 std::vector<WizardField>
fields = {};
123 std::optional<WizardSpec> FindWizard(wxWindowID
id,
124 const WizardContext &context = {});
131 const wxString &selection);
WizardField Field(const wxString &label, const wxString &defaultValue, const wxString &tooltip={})
A field that starts with the given default value.
Definition: WizardCatalog.h:69
std::vector< WizardField > FieldsWithSelection(const WizardSpec &spec, const wxString &selection)
spec's fields with selection filled into the ones that take it
Definition: WizardCatalog.cpp:1096
std::vector< WizardSpec > WizardCatalog(const WizardContext &context={})
All standard wizards.
Definition: WizardCatalog.cpp:43
WizardField SelectionField(const wxString &label, const wxString &tooltip={})
A field that starts with the expression the wizard is applied to.
Definition: WizardCatalog.h:75
What a wizard's command depends on besides its fields.
Definition: WizardCatalog.h:103
bool fourierLoaded
Whether Maxima has loaded the "fourie" package already.
Definition: WizardCatalog.h:105
wxString integralSign
What the titles of the numerical integration wizards start with.
Definition: WizardCatalog.h:110
One field of a standard wizard.
Definition: WizardCatalog.h:52
wxString defaultValue
What the field contains when the wizard opens.
Definition: WizardCatalog.h:56
wxString tooltip
The field's tooltip; may be empty.
Definition: WizardCatalog.h:58
wxString label
The text in front of the field.
Definition: WizardCatalog.h:54
bool takesSelection
Whether the field starts with the expression the wizard is applied to.
Definition: WizardCatalog.h:65
Everything the generic wizard needs to know about one menu command.
Definition: WizardCatalog.h:87
wxString rule
The Maxima command, with #n# standing for the n-th field.
Definition: WizardCatalog.h:97
std::vector< WizardField > fields
The fields, at most GenWizPanel's 10.
Definition: WizardCatalog.h:99
wxString descriptionTooltip
The tooltip of the "Description" tab; may be empty.
Definition: WizardCatalog.h:95
wxString title
The wizard's caption.
Definition: WizardCatalog.h:91
std::vector< wxWindowID > ids
The menu entries and sidebar buttons that open this wizard.
Definition: WizardCatalog.h:89
wxString description
The text of the wizard's "Description" tab; may be empty.
Definition: WizardCatalog.h:93