Key graph features (#704)
* Added IGraphAnalyzer * Key Graph Features called and getting returned to the client. To do put all strings into the Equation object * Updated UpdateKeyGraphFeatures to add function analysis data to all properties in Equation object * Update KGF when variables are updated * Key graph features ui started * Added MathRichEditBox and started hooking up key graph features to the UI * Updated EquationViewModel to include parity and periodicity * Updated key graph features to update the EquationViewModel * updated key graph features to display more values * Key graph features populating uing MathRichEdit mode * moved KeyGraphFeatures control to GraphingCalculator.xaml * Use MathML formatting instead of MathRichEdit for strings passed back from the engine * cleaned up project targeting and equation.h comments * Updated equation edit box to populate for KeyGraphFeatures * Fixed vcxproj files to have the correct targeting and certificates. KGF Title strings moved to x:Uid instead of the code behind * Updated per PR feedback * Update MathRichEditBox to detect if the string is a mathml string and use the appropriate set method to set the text * fixed the issue where parity, periodicity and monotonicity could be set with an old value if the next one is empty * KGF control UI adjustments and error handling * Error control updates * Error handling added when analysis fails * fixed alignment on rich edit boxes * Add monotonicity direction into the mathml string and only have 1 richeditbox * Set hover state on KGF EquationEditBox to change button opacity and fixed spacing in Monotonicity RichEditBox * remove sideload package certificate info VS added * updated logic for setting error strings to be in the viewmodel * Updated KeyGraphFeatures to populate dynamically using a ListView and TemplateSelector * Update periodicity to not show if it isn't supported * Fixed issue where y-intercept was using the x-intercept value * Remove ItemsControl ItemsContainerStyle * Updated per pr feedback. Fixed bug where analysis error would not reset * Update MathRichEdit box to remove selection when focus is lost * Updated mathrichedit to get LAF access for Dev, Release and Graphing projects * Remove OnLostFocus in MathRichEdit, Change KGF ItemsControl back to ListView * Clean up styles for KGF and ensure the match the comps * Moved formatoptions logic to the Grapher constructor and reverted LineColor.Text resource that was mistakenly taken out * Add copyright header to KGF Files * fixed issue where asymptote values were not populating * Disable KGF button when there is no equation. Fixed issue where equation populated in a new equationtextbox after the previous one was deleted * Removed formatoptions testing lines used for debugging
This commit is contained in:
@@ -549,11 +549,11 @@
|
||||
<value>%1, value %2</value>
|
||||
<comment>{Locked="%1","%2"}. String used in automation name for each bit in bit flip. %1 will be replaced by the position of the bit (1st bit, 3rd bit), %2 by a binary value (1 or 0)</comment>
|
||||
</data>
|
||||
<data name="BitPosition" xml:space="preserve">
|
||||
<data name="BitPosition" xml:space="preserve">
|
||||
<value>%1 bit</value>
|
||||
<comment>{Locked="%1"}. Sub-string used to indicate the position of a bit (e.g. 1st bit, 2nd bit...)</comment>
|
||||
</data>
|
||||
<data name="63" xml:space="preserve">
|
||||
<data name="63" xml:space="preserve">
|
||||
<value>63rd</value>
|
||||
<comment>Sub-string used in automation name for 63 bit in bit flip</comment>
|
||||
</data>
|
||||
@@ -3531,4 +3531,163 @@
|
||||
<value>Line Color</value>
|
||||
<comment>Label for the Line Color section of the style picker</comment>
|
||||
</data>
|
||||
<data name="KeyGraphFeaturesLabel.Text" xml:space="preserve">
|
||||
<value>Key Graph Features</value>
|
||||
<comment>Title for KeyGraphFeatures Control</comment>
|
||||
</data>
|
||||
<data name="KGFHorizontalAsymptotesNone" xml:space="preserve">
|
||||
<value>The function does not have any horizontal asymptotes.</value>
|
||||
<comment>Message displayed when the graph does not have any horizontal asymptotes</comment>
|
||||
</data>
|
||||
<data name="KGFInflectionPointsNone" xml:space="preserve">
|
||||
<value>The function does not have any inflection points.</value>
|
||||
<comment>Message displayed when the graph does not have any inflection points</comment>
|
||||
</data>
|
||||
<data name="KGFMaximaNone" xml:space="preserve">
|
||||
<value>The function does not have any maxima points.</value>
|
||||
<comment>Message displayed when the graph does not have any maxima</comment>
|
||||
</data>
|
||||
<data name="KGFMinimaNone" xml:space="preserve">
|
||||
<value>The function does not have any minima points.</value>
|
||||
<comment>Message displayed when the graph does not have any minima</comment>
|
||||
</data>
|
||||
<data name="KGFMonotonicityConstant" xml:space="preserve">
|
||||
<value>Constant</value>
|
||||
<comment>String describing constant monotonicity of a function</comment>
|
||||
</data>
|
||||
<data name="KGFMonotonicityDecreasing" xml:space="preserve">
|
||||
<value>Decreasing</value>
|
||||
<comment>String describing decreasing monotonicity of a function</comment>
|
||||
</data>
|
||||
<data name="KGFMonotonicityError" xml:space="preserve">
|
||||
<value>Unable to determine the monotonicity of the function.</value>
|
||||
<comment>Error displayed when monotonicity cannot be determined</comment>
|
||||
</data>
|
||||
<data name="KGFMonotonicityIncreasing" xml:space="preserve">
|
||||
<value>Increasing</value>
|
||||
<comment>String describing increasing monotonicity of a function</comment>
|
||||
</data>
|
||||
<data name="KGFMonotonicityUnknown" xml:space="preserve">
|
||||
<value>The monotonicity of the function is unknown.</value>
|
||||
<comment>Error displayed when monotonicity is unknown</comment>
|
||||
</data>
|
||||
<data name="KGFObliqueAsymptotesNone" xml:space="preserve">
|
||||
<value>The function does not have any oblique aysmptotes.</value>
|
||||
<comment>Message displayed when the graph does not have any oblique asymptotes</comment>
|
||||
</data>
|
||||
<data name="KGFParityError" xml:space="preserve">
|
||||
<value>Unable to determine the parity of the function.</value>
|
||||
<comment>Error displayed when parity is cannot be determined</comment>
|
||||
</data>
|
||||
<data name="KGFParityEven" xml:space="preserve">
|
||||
<value>The function is even.</value>
|
||||
<comment>Message displayed with the function parity is even</comment>
|
||||
</data>
|
||||
<data name="KGFParityNeither" xml:space="preserve">
|
||||
<value>The function is neither even nor odd.</value>
|
||||
<comment>Message displayed with the function parity is neither even nor odd</comment>
|
||||
</data>
|
||||
<data name="KGFParityOdd" xml:space="preserve">
|
||||
<value>The function is odd.</value>
|
||||
<comment>Message displayed with the function parity is odd</comment>
|
||||
</data>
|
||||
<data name="KGFParityUnknown" xml:space="preserve">
|
||||
<value>The function parity is unknown.</value>
|
||||
<comment>Error displayed when parity is unknown</comment>
|
||||
</data>
|
||||
<data name="KGFPeriodicityError" xml:space="preserve">
|
||||
<value>Periodicity is not supported for this function.</value>
|
||||
<comment>Error displayed when periodicity is not supported</comment>
|
||||
</data>
|
||||
<data name="KGFPeriodicityNotPeriodic" xml:space="preserve">
|
||||
<value>The function is not periodic.</value>
|
||||
<comment>Message displayed with the function periodicity is not periodic</comment>
|
||||
</data>
|
||||
<data name="KGFPeriodicityUnknown" xml:space="preserve">
|
||||
<value>The function periodicity is unknown.</value>
|
||||
<comment>Message displayed with the function periodicity is unknown</comment>
|
||||
</data>
|
||||
<data name="KGFTooComplexFeaturesError" xml:space="preserve">
|
||||
<value>These features are too complex for Calculator to calculate:</value>
|
||||
<comment>Error displayed when analysis features cannot be calculated</comment>
|
||||
</data>
|
||||
<data name="KGFVerticalAsymptotesNone" xml:space="preserve">
|
||||
<value>The function does not have any vertical asymptotes.</value>
|
||||
<comment>Message displayed when the graph does not have any vertical asymptotes</comment>
|
||||
</data>
|
||||
<data name="KGFXInterceptNone" xml:space="preserve">
|
||||
<value>The function does not have any x-intercepts.</value>
|
||||
<comment>Message displayed when the graph does not have any x-intercepts</comment>
|
||||
</data>
|
||||
<data name="KGFYInterceptNone" xml:space="preserve">
|
||||
<value>The function does not have any y-intercepts.</value>
|
||||
<comment>Message displayed when the graph does not have any y-intercepts</comment>
|
||||
</data>
|
||||
<data name="Domain" xml:space="preserve">
|
||||
<value>Domain</value>
|
||||
<comment>Title for KeyGraphFeatures Domain Property</comment>
|
||||
</data>
|
||||
<data name="HorizontalAsymptotes" xml:space="preserve">
|
||||
<value>Horizontal Asymptotes</value>
|
||||
<comment>Title for KeyGraphFeatures Horizontal Aysmptotes Property</comment>
|
||||
</data>
|
||||
<data name="InflectionPoints" xml:space="preserve">
|
||||
<value>Inflection Points</value>
|
||||
<comment>Title for KeyGraphFeatures Inflection Points Property</comment>
|
||||
</data>
|
||||
<data name="KGFAnalysisNotSupported" xml:space="preserve">
|
||||
<value>Analysis is not supported for this function.</value>
|
||||
<comment>Error displayed when graph analysis is not supported or had an error.</comment>
|
||||
</data>
|
||||
<data name="Maxima" xml:space="preserve">
|
||||
<value>Maxima</value>
|
||||
<comment>Title for KeyGraphFeatures Maxima Property</comment>
|
||||
</data>
|
||||
<data name="Minima" xml:space="preserve">
|
||||
<value>Minima</value>
|
||||
<comment>Title for KeyGraphFeatures Minima Property</comment>
|
||||
</data>
|
||||
<data name="Monotonicity" xml:space="preserve">
|
||||
<value>Monotonicity</value>
|
||||
<comment>Title for KeyGraphFeatures Monotonicity Property</comment>
|
||||
</data>
|
||||
<data name="ObliqueAsymptotes" xml:space="preserve">
|
||||
<value>Oblique Asymptotes</value>
|
||||
<comment>Title for KeyGraphFeatures Oblique Asymptotes Property</comment>
|
||||
</data>
|
||||
<data name="Parity" xml:space="preserve">
|
||||
<value>Parity</value>
|
||||
<comment>Title for KeyGraphFeatures Parity Property</comment>
|
||||
</data>
|
||||
<data name="Periodicity" xml:space="preserve">
|
||||
<value>Period</value>
|
||||
<comment>Title for KeyGraphFeatures Periodicity Property</comment>
|
||||
</data>
|
||||
<data name="Range" xml:space="preserve">
|
||||
<value>Range</value>
|
||||
<comment>Title for KeyGraphFeatures Range Property</comment>
|
||||
</data>
|
||||
<data name="VerticalAsymptotes" xml:space="preserve">
|
||||
<value>Vertical Asymptotes</value>
|
||||
<comment>Title for KeyGraphFeatures Vertical Asymptotes Property</comment>
|
||||
</data>
|
||||
<data name="XIntercept" xml:space="preserve">
|
||||
<value>X Intercept</value>
|
||||
<comment>Title for KeyGraphFeatures XIntercept Property</comment>
|
||||
</data>
|
||||
<data name="YIntercept" xml:space="preserve">
|
||||
<value>Y Intercept</value>
|
||||
<comment>Title for KeyGraphFeatures YIntercept Property</comment>
|
||||
</data>
|
||||
<data name="KGFAnalysisCouldNotBePerformed" xml:space="preserve">
|
||||
<value>Analysis could not be performed for the function.</value>
|
||||
</data>
|
||||
<data name="KGFDomainNone" xml:space="preserve">
|
||||
<value>Unable to calculate the domain for this function.</value>
|
||||
<comment>Error displayed when Domain is not returned from the analyzer.</comment>
|
||||
</data>
|
||||
<data name="KGFRangeNone" xml:space="preserve">
|
||||
<value>Unable to calculate the range for this function.</value>
|
||||
<comment>Error displayed when Range is not returned from the analyzer.</comment>
|
||||
</data>
|
||||
</root>
|
||||
|
Reference in New Issue
Block a user