22#ifndef VARIABLESPANE_H
23#define VARIABLESPANE_H
31#include <unordered_map>
46 wxWindowIDRef m_varID_values;
47 wxWindowIDRef m_varID_functions;
48 wxWindowIDRef m_varID_arrays;
49 wxWindowIDRef m_varID_macros;
50 wxWindowIDRef m_varID_labels;
51 wxWindowIDRef m_varID_myoptions;
52 wxWindowIDRef m_varID_rules;
53 wxWindowIDRef m_varID_aliases;
54 wxWindowIDRef m_varID_structs;
55 wxWindowIDRef m_varID_dependencies;
56 wxWindowIDRef m_varID_gradefs;
57 wxWindowIDRef m_varID_prop;
58 wxWindowIDRef m_varID_let_rule_packages;
59 wxWindowIDRef m_varID_delete_row;
60 wxWindowIDRef m_varID_clear;
62 explicit Variablespane(wxWindow *parent, wxWindowID
id = wxID_ANY);
72 void OnKey(wxKeyEvent &event);
74 void OnChar(wxKeyEvent &event);
103 bool m_updateSizeNeeded =
false;
104 static wxString InvertCase(
const wxString &var);
105 typedef std::unordered_map <wxString, int, wxStringHash> IntHash;
112 static int CompareInt(
int *
const int1,
int *
const int2){
return (*int1 < *int2);}
This file declares the class EventIDs that contains unique IDs for many events wxMaxima needs.
A "variables" sidepane.
Definition: VariablesPane.h:44
void OnTextChange(wxGridEvent &event)
Called when a variable name was changed.
Definition: VariablesPane.cpp:248
void OnTextChanging(wxGridEvent &event)
Called after the user has entered a variable name but before it is committed.
Definition: VariablesPane.cpp:239
~Variablespane()
The destructor.
Definition: VariablesPane.cpp:453
void VariableValue(const wxString &var, const wxString &val)
Tell the variables pane about a variable value.
Definition: VariablesPane.cpp:292
void OnChar(wxKeyEvent &event)
Called if a printable char was entered.
Definition: VariablesPane.cpp:83
void AddWatchCode(wxString code)
Add a variable whose name contains all the escapes maxima needs to the variables list.
Definition: VariablesPane.cpp:347
void OnKey(wxKeyEvent &event)
Called on key press.
Definition: VariablesPane.cpp:93
void ResetValues()
Set all variable's contents to "unknown".
Definition: VariablesPane.cpp:436
void VariableUndefined(const wxString &var)
Sets the variable var to "undefined".
Definition: VariablesPane.cpp:304
void AddWatch(wxString watch)
Add a variable without escapes to the list.
Definition: VariablesPane.cpp:362
static bool IsValidVariable(wxString var)
Is this string a valid variable name?
Definition: VariablesPane.cpp:415
void InsertMenu(wxCommandEvent &event)
Called if a right-click menu item was clicked at.
Definition: VariablesPane.cpp:123
void Clear()
Remove all entries from the variables list.
Definition: VariablesPane.cpp:447
std::vector< wxString > GetVarnames()
Returns the variable list in a human-readable format.
Definition: VariablesPane.cpp:323
static wxString EscapeVarname(wxString var)
Convert a human-readable variable name to one maxima understands.
Definition: VariablesPane.cpp:380
void OnRightClick(wxGridEvent &event)
Called on right-clicking the variables list.
Definition: VariablesPane.cpp:175
std::vector< wxString > GetEscapedVarnames()
Returns a list of all variable names in a format maxima understands.
Definition: VariablesPane.cpp:313
static wxString UnescapeVarname(wxString var)
Convert a variable name maxima understands to human-readable.
Definition: VariablesPane.cpp:372