Scott Freeman
fb18b639e3
Using wstring::find_last_not_of in CalcManager::NumberFormattingUtils::TrimTrailingZeroes ( #898 )
2020-01-06 13:36:58 -08:00
dovisutu
4846190008
Update build year in Aboutflyout ( #895 )
2020-01-03 02:21:31 -08:00
dovisutu
9e52256196
Fix prefix 0s after deleting decimal point ( #825 )
2020-01-03 02:21:12 -08:00
Scott Freeman
a21b4a2d1a
Using wstring instead of wstringstream where appropriate ( #881 )
2019-12-19 01:50:31 -08:00
Scott Freeman
be4e437f4d
Removing call to stripzeroesnum if no number exists. ( #877 )
2019-12-18 02:02:04 -08:00
Scott Freeman
3c6b5a808e
Cleaning up some UnitConverter code and making some of it more efficient. ( #875 )
2019-12-18 01:19:28 -08:00
Scott Freeman
b6f9634e34
Removing unused serialization code in CalculatorManager ( #858 )
2019-12-10 14:32:00 -08:00
Scott Freeman
06f43ad373
Refactoring LocalizationSettings ( #850 )
2019-12-09 19:28:43 -08:00
Scott Freeman
d0785b2fad
Updating HistoryViewModel::SaveHistory so it ( #819 )
...
Taking a const ref of history items vector in HistoryViewModel::SaveHistory and iterating over those items using a range for loop.
2019-12-01 09:02:34 -08:00
Scott Freeman
369843dd37
Changing CCalcEngine::s_engineStrings to use string_view for keys ( #829 )
2019-12-01 08:59:50 -08:00
Rudy Huyn
25d7a46ac1
Modify how we manage the visibility of the history button ( #821 )
...
* Modify how we manage the visibility of the history button
* rename function
2019-11-22 16:22:53 -08:00
Scott Freeman
6e2b82c8bf
Changing CalculatorManager::GetSavedCommands to return a const ref ( #812 )
2019-11-21 21:50:26 -08:00
Scott Freeman
00346cc5a3
Fixing typo in StandardCalculatorViewModel::UpdatecommandsInRecording… ( #810 )
...
* Fixing typo in StandardCalculatorViewModel::UpdatecommandsInRecordingMode
Removing unnecessary copy of vector in StandardCalculatorViewModel::UpdateCommandsInRecordingMode
Using range-for in StandardCalculatorViewModel::UpdateCommandsInRecordingMode
* Using static_cast instead of safe_cast for unsigned char to Command
2019-11-19 07:08:05 -08:00
Scott Freeman
582e10faed
Updating RemoveUnwantedCharsFromString to be a template ( #808 )
2019-11-18 19:02:45 -08:00
Rudy Huyn
86307f206f
Modify the declaration of some properties of StandardCalculatorViewModel to make them read-only and use macros ( #799 )
2019-11-14 08:08:03 -08:00
Rudy Huyn
1380c7ed83
Use only NumberBase to represent radix in CalcViewModel ( #797 )
2019-11-14 07:09:17 -08:00
Rudy Huyn
b9b0e068cd
Convert CopyPasteManager to runtime class ( #766 )
...
* Convert CopyPasteManager to runtime class
* merge AssertUtils and Helpers.h
* update onpastemanager
2019-11-13 15:15:13 -08:00
Rudy Huyn
61c2d07a89
force a call to m_expressionContainer->Measure in UpdateScrollButtons ( #750 )
2019-11-11 16:23:30 -08:00
Scott Freeman
01299a92cd
Updating code to append a wchar_t instead of const wchar_t ( #778 )
2019-11-11 09:23:34 -08:00
Rudy Huyn
4c81ed83c7
use Command instead of int to represent a command id ( #781 )
2019-11-06 15:45:31 -08:00
Rudy Huyn
5df3016df6
Fully separate Calculator and CalcManager ( #752 )
2019-11-06 15:31:57 -08:00
Scott Freeman
be68e72a9a
Updating StandardCalculatorViewModel to use algorithms ( #776 )
...
- Using default wstring constructor instead of taking empty string literal
- Updated to for range-for where appropriate
- Used std::find for IsOp* code that was doing it by hand
- Used std::count to calculate LengthWithoutPadding
- Used existing wstring constructor to pad a string
2019-11-06 12:07:23 -08:00
Rudy Huyn
caa1c6bb9d
Convert DateCalculatorViewModel to runtime class ( #769 )
2019-11-06 06:58:34 -08:00
Rudy Huyn
577aafb3f4
Migrate TraceLogger to runtime class ( #772 )
2019-11-05 18:59:24 -08:00
Rudy Huyn
8ba7234550
Fix the right arrow button of CalculationResult not disappearing in some cases ( #736 )
2019-11-05 16:51:36 -08:00
Rudy Huyn
613aaebf6f
fix DateDifference::operator== ( #762 )
2019-11-05 16:51:03 -08:00
Rudy Huyn
e38e911bfa
Modify how Calculator manages the visibility of the History button ( #712 )
...
* Modify how Calculator manages the History button + code cleaning
* remove extra include
2019-11-05 15:04:28 -08:00
Rudy Huyn
136ade6aa8
Replace wstring used in public methods by Platform::String in CalcViewModel ( #768 )
2019-11-05 13:57:48 -08:00
Rudy Huyn
049d3f4c6c
Revert "Replace wstring used in public methods by Platform::String in CalcViewModel ( #758 )" ( #767 )
...
This reverts commit 93f1f784bb
.
2019-11-04 17:54:12 -08:00
Rudy Huyn
93f1f784bb
Replace wstring used in public methods by Platform::String in CalcViewModel ( #758 )
2019-11-04 17:16:16 -08:00
Matt Cooley
44e1984f6b
Enable code analysis in the CalcManager project ( #689 )
2019-11-04 07:41:13 -08:00
Yair Aichenbaum
62c45d9d1e
Add KeyboardAccelerators for AlwaysOnTop ( #734 )
2019-11-01 17:24:27 -07:00
Matt Cooley
b36441ba5f
Remove AsyncHelper, Resource and Module.cpp from CalculatorUnitTests project. ( #746 )
2019-11-01 14:08:26 -07:00
Scott Freeman
5e46ceabc8
Making string concatenations more efficent ( #760 )
...
by appending wchar_ts instead of wstrings
2019-10-31 11:44:25 -07:00
Scott Freeman
6366e0c535
Replacing CalculatorVector usage with std::vector ( #756 )
...
* Replacing CalculatorVector usage with std::vector
Assumptions made here are that memory allocations
are not recoverable. If it can be proved that an index
will be in range, then the indexing operation is used.
If not (without manual checks) the std::vector::at function
is used to throw an exception in case of a programmer bug.
* Changes based on PR feedback
Using auto& in CalculatorCollector::UpdateHistoryExpression
so the token.first value is properly updated.
Using range for loop to GenerateExpressions.
Setting isEditable directly to the result of boolean expression.
Using token.second directly instead of creating a
separate tokenCommandIndex variable.
* Fixing issue with generating expressions strings.
A space should not be added before the first item.
2019-10-30 10:55:13 -07:00
Rudy Huyn
25cdca991c
make ControlSizeTrigger works even if the control is already loaded ( #738 )
2019-10-29 15:21:32 -07:00
Rudy Huyn
bc2d2d4e9d
use short date ( #739 )
2019-10-29 11:14:11 -07:00
Matt Cooley
afa144cd16
Remove unnecessary dependencies from UITestFramework project ( #745 )
...
The CalculatorUITestFramework project does not need Microsoft.NET.Test.Sdk or MSTest.TestAdapter. These dependencies are needed only in the project which produces the actual test assembly (in our case, the CalculatorUITests project).
Removing these resolves a build warning, since the test adapter package does not target .NET Standard.
2019-10-28 10:54:26 -07:00
Rudy Huyn
8db4c2b25a
Allow negative numbers without digits before the decimal point ( #743 )
2019-10-28 10:17:02 -07:00
Matt Cooley
d5046e1ffc
Update localized strings 2019-10-21 ( #724 )
2019-10-21 14:47:32 -07:00
Scott Freeman
f6a061c486
Updating CalculatorHistory to use a default destructor. ( #723 )
...
Its memory will be cleaned up by std::vector's destructor.
2019-10-21 12:47:09 -07:00
Mateusz
bfa5f81ef6
Do not hide expression when user presses Enter or = ( #695 )
...
* #653 Do not hide expression on EQU operation
* #653 Clear expression, when user makes an action
* #653 Fixed UI tests
* #653 Review fixes
2019-10-18 13:40:13 -07:00
Rudy Huyn
b97046ad67
Allow users to paste expressions with ^or % ( #682 )
2019-10-18 11:07:51 -07:00
Rudy Huyn
00064fba11
Modify how the Calculator control manages the focus ( #686 )
2019-10-17 14:18:35 -07:00
Rudy Huyn
1a9edff26b
add fallback colors to RevealBrush missing them ( #685 )
2019-10-17 14:10:26 -07:00
Rudy Huyn
05eda81ba2
Add E-notation support to CopyPasteManager for standard mode ( #687 )
...
* Add scientific notation support to CopyPasteManager for standard mode
* improve c_signedDecFloat to ignore '.'
* fix c_signedDecFloat
2019-10-14 10:16:31 -07:00
James Inkster
033f7757e2
fix 505 ( #710 )
...
* fix 505
* Update CalcErr.h
Updated to have line of code changed to be right below the comment referring to line of code. (Line 45-44)
2019-10-13 09:56:19 -07:00
svsrk praveen
51c4845f88
Fix the focus when right-clicking CalculationResult's TextBlock ( #698 )
...
* Fixed issue with focus when right-clicking result
* Using dynamic_cast in place of safe_cast
2019-10-09 07:39:55 -07:00
Stephanie Anderl
16e8e2d89e
Added new dev app icons and update version to 1909 ( #705 )
...
* Added new dev app icons
* Removed VS added page include in calculator.vcsxproj.filters and increased the internal version number and the app version number
2019-10-08 10:44:13 -07:00
Pepe Rivera
55074c2312
Update Calculator keyboard for greater consistency and extensibility ( #688 )
2019-10-03 15:56:44 -07:00