Commit Graph

11243 Commits

Author SHA1 Message Date
Émilie Feral
a2059432bd [apps/shared] SumGraphController keeps 2 text buffers for its editable
zone (to be able to abort editing and find back the previous text)
2019-08-13 09:44:00 +02:00
Émilie Feral
fc84b15214 [apps/shared] XYBannerView: enable a large draft text buffer to edit
long abscissa ("1+2+3+...") even if the non-edited text buffer is short
(it keeps a float that size is capped)
2019-08-13 09:44:00 +02:00
Émilie Feral
011142427a [esher] TextField: fix issues:
- when textFieldDidFinishEditing failed ("1+ln(-2)" in a scalar
entry for instance), the previous text was modified even if edition aborted
- The draft buffer was not reinitialized when overriding the draft text
buffer with a text event
2019-08-13 09:44:00 +02:00
Émilie Feral
12060e2ae7 [escher] TextField: all text fields use the same draft text buffer 2019-08-13 09:44:00 +02:00
Léa Saviot
70e3bcd8c1 [poincare/test] Fix print_float test 2019-08-12 10:51:42 +02:00
Léa Saviot
7c9e253506 [poincare] Factorize and clean some Engineering notation methods 2019-08-12 10:51:20 +02:00
Léa Saviot
d22f83c64d [scripts/defaults] -O0 insteage of -0g for DEBUG
Otherwise, we cannot debug properly on simulator/blackbox (missing
symbols)
2019-08-12 10:41:34 +02:00
Léa Saviot
7b8f827f5a [poincare/print_float] No float truncation over numberOfSignDigits 2019-08-09 18:05:57 +02:00
Léa Saviot
56adbaf06e [apps/settings] Engineering mode translation 2019-08-09 17:22:42 +02:00
Léa Saviot
5c6097f647 [apps/settings] Fix the examples for the result format 2019-08-09 17:16:22 +02:00
Léa Saviot
dced33ab24 [poincare/print_float] Add TODO 2019-08-09 15:01:31 +02:00
Léa Saviot
03ef031782 [apps/calc] Fix subview color
Scenario: Enter 0.1, go up twice, the result "0.1" stays grey
2019-08-09 14:34:35 +02:00
Léa Saviot
25b95a59d7 [apps/calc] Fix displayed input when typing 0.1 in Engineering mode 2019-08-09 13:26:01 +02:00
Léa Saviot
7e0e598113 [poincare/print_float] More engineering notation tests 2019-08-09 13:26:01 +02:00
Léa Saviot
52d1a78c41 [poincare/decimal] Engineering notation tests 2019-08-09 13:26:01 +02:00
Léa Saviot
8a6c6a86f0 [poincare/decimal] Engineering notation 2019-08-09 13:26:01 +02:00
Émilie Feral
4052a047ba [poincare] Add test about addMissingParentheses 2019-08-09 13:22:46 +02:00
Émilie Feral
f17051ec94 [poincare] Fix algorithmic mistake in addMissingParentheses 2019-08-09 13:15:22 +02:00
Émilie Feral
36648ee0d8 [poincare] PrintFloat: change name "k_maxFloatBufferLength" -->
"k_maxFloatBufferSize"
2019-08-09 12:04:33 +02:00
Émilie Feral
a2739e08cc [apps/shared] FunctionGoToParameterController update the range version
of the graph controller to avoid reinitializing the cursor position when
graph controller view appears. Otherwise, goto controller would set the
cursor position, update the range consequently and then the graph
controller would reinitialize the cursor position.
2019-08-09 10:27:31 +02:00
Léa Saviot
5fac7a8cd2 [apps/code] Fix typo 2019-08-08 17:29:10 +02:00
Léa Saviot
565f017494 [poincare/print_float] Fix PrintFloat and its tests 2019-08-08 17:29:10 +02:00
Léa Saviot
1f801f9058 [poincare/preferences] m_numberOfSignificantDigits is a uint8_t
Clearer than a char
2019-08-08 17:22:06 +02:00
Léa Saviot
93050b539e [poincare/print_float] Tests 2019-08-08 17:22:06 +02:00
Léa Saviot
e4da77fb91 [poincare/preferences] NbSignifDigits must be > 2 for engineer mode 2019-08-08 17:22:06 +02:00
Léa Saviot
061ea7cd13 [poincare/print_float] Engineering notation 2019-08-08 17:22:06 +02:00
Léa Saviot
ab86fa84de [apps/settings] Engineering notation selection 2019-08-08 17:22:06 +02:00
Émilie Feral
8af50eca90 [poincare] Multiplication operator when layouting: use the dot
multiplication sign before a nth root layout with an index
2019-08-08 17:22:06 +02:00
Émilie Feral
b4ef2cd329 [scripts] Avoid echoing useless information when sending firmware via DFU 2019-08-08 17:22:06 +02:00
Émilie Feral
65b7574533 [poincare] Fix warning 2019-08-08 17:22:06 +02:00
Émilie Feral
664b480e20 [poincare] Improve NthRootLayout 2019-08-08 17:22:06 +02:00
Émilie Feral
0b205edd74 [poincare] Add tests to check Multiplication layouting (that it uses the
right operator)
2019-08-08 17:22:06 +02:00
Émilie Feral
081462ab5e [poincare] Fix tests with Multiplication serialization (it always add
the × operator
2019-08-08 17:22:06 +02:00
Émilie Feral
d1ed886855 [poincare] Multiplication: createLayout can uses 3 different operators
·, × or nothing according to the layout shape on both sides of the
operators.
2019-08-08 17:22:06 +02:00
Léa Saviot
fdafd91da5 [poincare/print_int] Fix for tests 2019-08-08 17:22:06 +02:00
Léa Saviot
a2f1cef60f [poincare/print_float] Fix computations
To fix tests
2019-08-08 17:22:06 +02:00
Léa Saviot
3e71d1d6e4 [poincare/print_float] Truncate the given bufferSize 2019-08-08 17:22:06 +02:00
Léa Saviot
9151df35e0 [poincare/print_float] Fix Long::Long(i) and DivisionByTen 2019-08-08 17:22:06 +02:00
Léa Saviot
601827e790 [poincare/serializ_hlpr] Use SerHlpr::CodePoint, not UTF8Decoder
SerializationHelper::CodePoint puts a null-terminating char
2019-08-08 17:22:06 +02:00
Léa Saviot
c2b4d2b760 [strlcpy] Assertions on len parameter 2019-08-08 17:22:06 +02:00
Léa Saviot
b0b10f184e [poincare/print_float] convertFloatToText -> ConvertFloatToText 2019-08-08 17:22:06 +02:00
Léa Saviot
e75701f0fa [apps] Clean convertFloatToText uses 2019-08-08 17:22:06 +02:00
Léa Saviot
57162fa90c [poincare/print_float] Escape cases when !returnTrueRequiredLength 2019-08-08 17:22:05 +02:00
Léa Saviot
49a508ea62 [poincare] Fix serializations
They should return the number of written chars
2019-08-08 17:22:05 +02:00
Léa Saviot
c2e1210ca2 [poincare/print_float] Remove superfluous temporary buffer 2019-08-08 17:22:05 +02:00
Léa Saviot
d286200ead [poincare/print_float] Use Long, not Integer 2019-08-08 17:22:05 +02:00
Léa Saviot
f7c0dadd43 [poincare/print_int] Returns the wanted length 2019-08-08 17:22:05 +02:00
Émilie Feral
9fbec16db4 [poincare] Merge MultiplicationImplicit and MultiplicationExplicit (they
were required if we wanted to parse into two distincts expression 2π and
2*π but don't)
2019-08-08 17:22:05 +02:00
Émilie Feral
073479b9aa [poincare] MultiplicationImplicit: MultiplicationImplicit(2^3,4)
seriliazes to [2^3]4. Add tests about expression serialization
2019-08-08 17:22:05 +02:00
Émilie Feral
79d7e58ec8 [apps/shared] EditableCellTableViewController: function and sequence
values table cells were to narrow to display
LargeNumberOfSignificantDigits (~16 digits). We adjust the number of
digits authorized before switching to scientific mode to the cell width
2019-08-08 17:22:05 +02:00