Commit Graph

16 Commits

Author SHA1 Message Date
Mateusz Piesta
08f4d90356 [MOS-530] Various calculator app fixes
* Fixed issue with subtract operation triggering unusal behavior.
* Unified handling of the add,sub,mul,div operations.
* Updated and verified existing unit tests and added new ones covering
unhandled cases.
* Added basic requirements/readme.
2023-02-09 09:51:18 +01:00
Marcin Smoczyński
bd90e57516 [BH-907] Split utils module into components
Split module-utils into smaller components for better dependency
management. Fix many dependencies throughout the project.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-23 15:14:40 +02:00
Bartosz Cichocki
3228cf7904 [EGD-7021] Fix calculator comma crash
There was a crash when system separator was set as a comma -
replace function was throwing out-of-range error while converting
from full-stop to comma
2021-08-02 13:23:56 +02:00
Paweł Joński
8e0f008a63 [BH-379] Librarize application-calculator
Librarize application-calculator
2021-06-28 18:58:58 +02:00
Pawel.Paprocki
b969442853 [BH-365] Move TPLIB (tinyexpr) to separate directory
Move library, amend CMAKE files
2021-05-28 13:05:32 +02:00
Artur Śleszyński
ef12b04748 [EGD-5849] Make calculator compute previous operations
Modify calculator behavior according to PO input:
* Compute existing equation before entering next operation
* Limit digit input to 7 digits
* Start each number input from empty input
2021-04-23 13:02:56 +02:00
Adam Dobrowolski
940989833f [EGD-6527] Internationalization API unification
Single api to rule i18n
all calls to localistaion in cpp files unified
cut off ass many dependencies in i18n header as possible
2021-04-20 20:07:44 +02:00
Artur Śleszyński
a702bbd17c [EGD-6561] Make calculator input testable
I got sick of manually testing calculator like a troglodyte.
2021-04-20 13:17:54 +02:00
Artur Śleszyński
eac3d23626 [EGD-6498] Do not perform calculations on empty input
We do not produce an error when user calculates empty input.
2021-04-14 15:42:09 +02:00
KacperLewandowski
c2cd94a6f2 [EGD-4417] Fix operations in calculator
1. Fix possibility to write illogical operations.
2. Fix possibility to write multiple '0' when it is not needed.
3. Add scientific notation when result do not fit on screen.
2021-01-20 21:57:09 +01:00
jimmorrisson
14918dc4f9 [EGD-4925] Change new filesystem handling implementation in module-gui. (#1193)
Due to vfs deprecation there is need to remove all vfs calls from code. This PR covers module gui. There are some modifications in other modules included which are necessary because of build system issues.
2020-12-16 15:23:11 +01:00
Krzysztof Mozdzynski
0ef0d615f3 [EGD-4150] Change filename i18 to i18n (#1108)
Change filename of internationalization files from i18 to i18n.

I18n should stand for internationalization, not i18. That's why I changed in 'module-utils' name of the folder 'i18' and both .cpp and .hpp files to 'i18n'.
2020-11-27 18:31:00 +01:00
Marcin Smoczyński
486d21af0e [EGD-4288] refactor global data (#959)
Reduce firmware size by refactoring global data defined in public
headers.

Each global variable which require runtime initialization adds
initialization code to every translation unit which includes the header
where the variable is defined and declared.
2020-11-04 18:24:39 +01:00
KacperLewandowski
f0fb9f51ef [EGD-4103] Fix phone hanging when pressing '=' in calculator (#891)
Crush was caused when using std::to_string() on rt1051 to convert double (result from equation) to string.
Other methods f.e. using std::stringstream, sprintf also do not work.
Add own floating point converter to string.
2020-11-04 13:02:09 +01:00
Radoslaw Wicik
2276ceed67 [EGD-3743] Update copyrights in fies 2020-10-20 12:55:10 +02:00
KacperLewandowski
ad626ebc93 [EGD-3857] Create calculator application 2020-10-15 14:57:57 +02:00