Commit Graph

7625 Commits

Author SHA1 Message Date
Émilie Feral
31801ac20c [poincare] Power: do no simplify Power whose result is too big (fix bug
1.00666666666667^60 = undef)
2018-05-15 11:03:11 +02:00
Léa Saviot
48d1d248ea [poincare] Fix cursor position in 2D when inserting "random()"
Change-Id: I3851e79cd7b0a1f2b1b13c4cf7c604ad0d95d6d3
2018-05-15 11:03:07 +02:00
Émilie Feral
0bc2594489 [ion] Storage: deferencing nullptr? 2018-05-15 11:02:35 +02:00
Léa Saviot
0c7cd1fe6b [poincare] Coding style
Change-Id: Ie08fa0fa4eb6098d089e0919b35cc1dcd7a86409
2018-05-15 10:37:56 +02:00
Léa Saviot
2c16a57ef7 [poincare] Fix PowerLayout::privateCreateLayout
A HorizontalLayout should not have a HorizontalLayout child

Change-Id: I300e71103a1f72f8ab8293adfb0d1a0b86059f7a
2018-05-15 10:37:09 +02:00
Léa Saviot
87194941da [poincare] Comment: HorizontalLayout should not have Horizontal children
Change-Id: I35186fe09d169ff9aeadc9b903f16d2f046f27a0
2018-05-15 10:24:20 +02:00
Léa Saviot
678a0db4e4 Merge with current GitHub master branch
Change-Id: Ie1b83cfabdee1369eb66f53c01314324d5d88a74
2018-05-14 17:03:12 +02:00
Léa Saviot
9a94cbe934 [poincare] Scroll to show whole layout inserted from toolbox
Change-Id: If3e39659bdfc36b5e52a29845dfd213424233ab4
2018-05-14 16:57:08 +02:00
Léa Saviot
2f55660ce4 [escher] Fix addding Grey Squares when adding matrix from toolbox
Change-Id: Ie96122033de7ae80ddf5378f0f3fe07d52c3453e
2018-05-14 15:14:30 +02:00
Léa Saviot
de799a1323 [escher] Remove superfluous code
Change-Id: I5d0718195592c6223795c94069da7a3c345b242d
2018-05-14 14:58:57 +02:00
Léa Saviot
83024c43a8 [apps/math_toolbox] Fix cursor position in new matrix in 1D
This also fixes the creation of a matrix in 2D, when selecting the new
matrix toolbox item

Change-Id: I3ace2e78450b86d924c875de015a5a24c12a6374
2018-05-14 14:31:08 +02:00
Léa Saviot
4c0273fcd2 [poincare] Coding style
Change-Id: Ia3d073038503fde758c5cc67aa485a53aafe5816
2018-05-14 14:22:14 +02:00
Léa Saviot
7d484dbd7f [poincare] Fraction layout: backspace caused memory leak
Empty numerator/denominator was detached from the fraction, not added to
the new juxtaposition of layouts, and neither deleted. Hence, when the
fraction layout was deleted, it did not delete the empty
numerator/denominator.

Change-Id: I453c7bb42c392fff3efa2a2fbd5f1eeeb53dad7e
2018-05-14 14:17:52 +02:00
Émilie Feral
d49f5e8f3a [poincare] Fix potential deferencing nullptr 2018-05-14 13:39:04 +02:00
Émilie Feral
203311f81b [escher] Fix reading garbage memory in TextField 2018-05-14 13:38:28 +02:00
Émilie Feral
aa13e7bc95 [poincare] Fraction layout: removing a fraction layout triggered bug
when cursor pointed to Empty layout which where then deleted.
2018-05-14 10:36:21 +02:00
Émilie Feral
db38f027d4 [poincare] Fix memory leak: parsed expression must be delete 2018-05-11 17:58:18 +02:00
Émilie Feral
246afc26da [poincare] Fix infinite loop: when adding a sibling between 2
VerticalOffsets
2018-05-11 17:18:01 +02:00
Émilie Feral
e16f24f69e [poincare] Fix bug: O^O|^x --'Backspace' --> O|^x with O = Empty Layout 2018-05-11 17:17:50 +02:00
Romain Goyet
4718fbe64e [ion/device] Fix the flasher bridge 2018-05-11 16:43:16 +02:00
Romain Goyet
6b31f47a08 [travis] Run the integration tests on blackbox 2018-05-11 16:43:04 +02:00
Romain Goyet
1496ec3a72 [blackbox] add a make epsilon_fuzz target 2018-05-11 16:43:04 +02:00
Romain Goyet
a92f44b666 [blackbox] Add the option to run all the integration tests 2018-05-11 16:43:04 +02:00
Romain Goyet
f8f9cee082 [tests] Add some integration scenarios 2018-05-11 16:43:04 +02:00
Émilie Feral
3a97776c83 [poincare] Fix bug: removing a fraction layout inside a matrix should
not set the cursor outside of the matrix

Example: 'Backspace' with cursor to the left of 2 (O = empty char)
 ------------------          ------------------
|   O              |        |                  |
|  ---         O   |        |  |2         O    |
|  |2              |------> |                  |
|                  |        |                  |
|                  |        |   O         O    |
|   O          O   |        |                  |
 ------------------          ------------------

instead of -------->  | [2] (with bug on the grey rectangle!)
2018-05-11 14:18:32 +02:00
Émilie Feral
8276e99b1e [calculation] Conditional jump on uninitialized boolean 2018-05-11 14:12:40 +02:00
Léa Saviot
69414998e8 [poincare] Fix FractionLayout::deleteBeforeCursor
Change-Id: I4e09fe1203df1c67e3146912f3f3907088674f1f
2018-05-09 18:22:33 +02:00
Romain Goyet
a38369aa98 [ion] Revert blackbox's object list 2018-05-09 18:11:45 +02:00
Romain Goyet
0f02483a36 [ion] Build libepsilon as an object file 2018-05-09 18:11:45 +02:00
Romain Goyet
aad95380f5 [ion] Multithreaded framebuffer comparison 2018-05-09 18:11:45 +02:00
Romain Goyet
806b87ef36 [ion] Add the ability to build blackbox as a shared library 2018-05-09 18:11:45 +02:00
Léa Saviot
31dae66dfb [poincare] DynLayout: Do not detach children needing to be deleted
Change-Id: Id46afd541c8090268e7f48f09a07e6cb6240f445
2018-05-09 18:03:30 +02:00
Romain Goyet
49e1b0e373 [ion/device] Give an opportunity to slow down the whole machine 2018-05-09 17:52:09 +02:00
Romain Goyet
324ff8277b [ion/device/display] Always use send_data/send_command functions
Wrap all accesses to DataAddress and CommandAddress into 3 functions
2018-05-09 17:52:09 +02:00
Romain Goyet
c091d1f59d [apps/code] Add an EditorView that has a gutter 2018-05-09 17:46:09 +02:00
Romain Goyet
daee2998c5 [escher] Add a ScrollViewDelegate 2018-05-09 17:46:09 +02:00
Léa Saviot
a5d65deb3e [poincare] Remove empty base of VerticalOffset in addChildrenAtIndexLayout
Change-Id: I5bd3763df7452b6994bc1d7f7471d342964e86a9
2018-05-09 17:39:43 +02:00
Léa Saviot
eaca1d7028 [poincare] Code cleaning
Change-Id: I4b11c119938eeee9c9dd6ded370ef5f458faaa15
2018-05-09 17:09:18 +02:00
Léa Saviot
f75fdbda12 [poincare] Fix Exp SquarePower SquarePower
Change-Id: I2c378728fe99096497d396dd6ae526867326ace5
2018-05-09 16:37:54 +02:00
Léa Saviot
68b1ddf058 [poincare] Code cleaning
Change-Id: Icc60c8ec81fbe8ed01ed3afc776b60d760975d63
2018-05-09 16:09:32 +02:00
Léa Saviot
d63ad7e42d [poincare] Handle pressing "Divide" when the cursor is (^2|)
Change-Id: If05116852e037bd22c91725e8ced9b2958da33a8
2018-05-09 16:03:58 +02:00
Léa Saviot
c9c216c071 [poincare] Fix HorizontalLayout::privateAddSibling
Change-Id: I0cebcaedc4d36749f79293c8bd8acc289522dbc2
2018-05-09 15:26:44 +02:00
Léa Saviot
31af7f9e12 [poincare] Fix HorizontalLayout::privateAddSibling
If an OffsetLayout is added on the right of an HorizontalLayout whose
last child is Empty, this empty child should not be removed.

Change-Id: I72ae2fe52385fa65b8c5fb43ca519a2049c9fe1b
2018-05-09 15:04:07 +02:00
Léa Saviot
8e6b1f4c45 [poincare] Fix ExpressionLayoutCursor::baseForNewPowerLayout
If the cursor is on the left of an empty layout, move it to its right
and this empty layout will be the base of the new power layout.

Change-Id: I81be3787ca1d279fc370fcbe86e558ec078b7b44
2018-05-09 14:54:59 +02:00
Léa Saviot
029e46ce39 [poincare] Fix bug in EmptyLayout::cursorVerticalOf
Change-Id: I1f95fa90641f90edbc751c5a36c139f55f3c42c4
2018-05-09 14:10:32 +02:00
Léa Saviot
c1fbaab452 [coding style] Remove white line
Change-Id: I1c5baffdbe0727eb814158a872db3cbb9ac131bf
2018-05-09 13:56:22 +02:00
Léa Saviot
a09c671cc5 [poincare] EmptyLayout reorganization.
Change-Id: Ie575bd4f022058316ba18504666b70c10786d1a7
2018-05-09 13:55:12 +02:00
Léa Saviot
790c9c7be3 [poincare] Clean EmptyLayout
Change-Id: I880a66c79c440912ff6bbcc86c6f22d3bdb8a5ad
2018-05-09 13:50:35 +02:00
Léa Saviot
30007a3574 [poincare] Handle Matrix GreySquares on ShiftLeft/Right events.
Change-Id: Id0b0b6c99c683808d3b21123e208da8b6e8e1175
2018-05-09 13:43:00 +02:00
Léa Saviot
695e189836 [poincare] Add method removeGreySquaresFromAllMatrixAncestors
Change-Id: I1351138fde688be3cba57b8f7ba1cd7b3010b0bc
2018-05-09 13:42:31 +02:00