From 1c9755d38a78e54d2b84870629a9db9785df4fda Mon Sep 17 00:00:00 2001 From: "Wei (Waley) Zhang" Date: Fri, 16 Aug 2019 16:11:43 -0700 Subject: [PATCH] Adds zoom buttons to graph controls (#637) --- src/Calculator/Resources/en-US/Resources.resw | 36 +++++ .../GraphingCalculator.xaml | 143 +++++++++++++++++- .../GraphingCalculator.xaml.cpp | 15 ++ .../GraphingCalculator.xaml.h | 10 ++ src/GraphControl/Control/Grapher.cpp | 19 +++ src/GraphControl/Control/Grapher.h | 2 + 6 files changed, 223 insertions(+), 2 deletions(-) diff --git a/src/Calculator/Resources/en-US/Resources.resw b/src/Calculator/Resources/en-US/Resources.resw index 2502d4a..13476ed 100644 --- a/src/Calculator/Resources/en-US/Resources.resw +++ b/src/Calculator/Resources/en-US/Resources.resw @@ -3435,6 +3435,42 @@ ^ {Locked}This is the character that should trigger this button. Note that it is a character and not a key, so it does not come from the Windows::System::VirtualKey enum. + + Home + {Locked}This is the shortcut for the zoom reset button. + + + Reset View + This is the tool tip automation name for the Calculator zoom reset button. + + + Reset View + Screen reader prompt for the reset zoom button. + + + Add + {Locked}This is the shortcut for the zoom in button. + + + Zoom In + This is the tool tip automation name for the Calculator zoom in button. + + + Zoom In + Screen reader prompt for the zoom in button. + + + Subtract + {Locked}This is the shortcut for the zoom out button. + + + Zoom Out + This is the tool tip automation name for the Calculator zoom out button. + + + Zoom Out + Screen reader prompt for the zoom out button. + Add Equation Placeholder text for the equation input button diff --git a/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml b/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml index 1c7e9aa..67ce13b 100644 --- a/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml +++ b/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml @@ -12,6 +12,22 @@ mc:Ignorable="d"> + + @@ -30,8 +46,7 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +