mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-13 18:16:49 -07:00
Add error handling to graph and equations (#827)
* add error handling * Handle regraphing on certain errors * Fix high contrast * Hide KGF button in error state
This commit is contained in:
parent
3ca4f4ffa7
commit
89c3fc3e4d
14 changed files with 397 additions and 202 deletions
|
@ -171,12 +171,13 @@ public
|
|||
void OnDependencyPropertyChanged(Windows::UI::Xaml::DependencyObject ^ obj, Windows::UI::Xaml::DependencyProperty ^ p);
|
||||
|
||||
void OnEquationsChanged(Windows::UI::Xaml::DependencyPropertyChangedEventArgs ^ args);
|
||||
void OnEquationChanged();
|
||||
void OnEquationStyleChanged();
|
||||
void OnEquationLineEnabledChanged();
|
||||
void UpdateGraph();
|
||||
void OnEquationChanged(GraphControl::Equation ^ equation);
|
||||
void OnEquationStyleChanged(GraphControl::Equation ^ equation);
|
||||
void OnEquationLineEnabledChanged(GraphControl::Equation ^ equation);
|
||||
bool TryUpdateGraph();
|
||||
void TryPlotGraph(bool shouldRetry);
|
||||
void UpdateGraphOptions(Graphing::IGraphingOptions& options, const std::vector<Equation ^>& validEqs);
|
||||
std::vector<Equation ^> GetValidEquations();
|
||||
std::vector<Equation ^> GetGraphableEquations();
|
||||
void SetGraphArgs();
|
||||
std::shared_ptr<Graphing::IGraph> GetGraph(GraphControl::Equation ^ equation);
|
||||
void UpdateVariables();
|
||||
|
@ -194,6 +195,9 @@ public
|
|||
void HandleTracingMovementTick(Object ^ sender, Object ^ e);
|
||||
void HandleKey(bool keyDown, Windows::System::VirtualKey key);
|
||||
|
||||
void SetEquationsAsValid();
|
||||
void SetEquationErrors();
|
||||
|
||||
Windows::Foundation::Collections::IObservableVector<Platform::String ^> ^ ConvertWStringVector(std::vector<std::wstring> inVector);
|
||||
Windows::Foundation::Collections::IObservableMap<Platform::String ^, Platform::String ^> ^ ConvertWStringIntMap(std::map<std::wstring, int> inMap);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue