É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
É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
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
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
Léa Saviot
b5f4a7b3f0
[poincare] Simplify MatrixLayout code
...
Change-Id: I4bfcf3da94296b8314ff47a1a71dbc79150a4027
2018-05-09 13:32:27 +02:00
Léa Saviot
7e9bbe3aea
[ion] Add event names for Shift+Up/Down/Left/Right
...
Change-Id: I03cd5707ea2d9e460ed925009442e15d38572798
2018-05-09 12:17:30 +02:00
Léa Saviot
dcc75dbc7d
[poincare] Remove overriding method in Matrix.
...
Adding GreySquares when moving the cursor inside a matrix is already
handled by ExpressionLayout.
Change-Id: I6e8b4b5dab54c5f6f3528509fd52e9694991e3fb
2018-05-09 12:01:34 +02:00
Léa Saviot
4692f0a6f4
[poincare] Fix collapsing layout bug.
...
Change-Id: I6b1763e54e44645ab83c8be82ed6d5fcfc29fc91
2018-05-09 11:35:58 +02:00
Léa Saviot
0ea3d488f1
[escher] Clean code in expression_layout_field.cpp
...
Change-Id: I80a7d8445209efece8c0f293d5761b04d087b884
2018-05-09 11:12:30 +02:00
Léa Saviot
d56f94224f
[escher] Fix cursor position when copy pasting in ELField
...
Change-Id: I7408e89ceb6ef6e7bce7e47dc6b3d2a4945cfdbf
2018-05-09 11:10:35 +02:00
Léa Saviot
9af3d378d1
[apps] Fix CondensedSumLayout created with a nullptr child
...
Change-Id: Ie6d4c6408a45a9cdf617b8cba988667c17f4cc36
2018-05-09 09:55:58 +02:00
Léa Saviot
4de2ae5353
[poincare] Fix virtualty of ScrollView::setBackgroundColor and TopMargin
...
Change-Id: Id15d2b233b0a0f11435ab8f41a142eeca4fcec05
2018-05-08 17:52:54 +02:00
Léa Saviot
1e78f02ffc
[poincare] Fix blackbox bug about variable initialization
...
Change-Id: I8538ce9aa75ecee5f9e7f572be13fc590c994db7
2018-05-08 17:48:47 +02:00
Léa Saviot
7b6fdf6a1c
[escher] Fix ScrollableView content view size.
...
Change-Id: I531236e7527b3922dac81067d41024e0c5d6bf88
2018-05-08 17:32:55 +02:00
Léa Saviot
3aeb5b9eef
[poincare] Fix Layout Field vertical margins.
...
Change-Id: I36c90574aca915d0f1cb803948b8c85cd28852ab
2018-05-08 16:24:13 +02:00
Léa Saviot
2fd332fba5
[poincare] Fix background fill in ExpressionField.
...
Change-Id: If12a043525cafe7b98015df88ad144057a5ffdcb
2018-05-08 15:43:41 +02:00
Léa Saviot
3b582a2e46
Merge branch 'SaisieJolie30Apr' into SaisieJolie8May
...
Change-Id: Ia4196119fc56c5bc3423aea752b49f3f7ba39499
2018-05-08 15:17:51 +02:00
Romain Goyet
1785288e19
[ion] Clean an unused file
2018-05-08 14:31:35 +02:00
Romain Goyet
bc3c517084
[ion] Discard useless small file
2018-05-08 14:31:35 +02:00
Romain Goyet
f4c5e4b701
[ion] Remove unneeded files
2018-05-08 14:31:35 +02:00
Romain Goyet
6d214a79b4
[ion] Sort the device/usb folder
2018-05-08 14:31:35 +02:00
Romain Goyet
3e57d75a71
[ion] Add a VBLANK command to the bench
2018-05-08 14:16:18 +02:00
Romain Goyet
a6cc87183e
[ion] Tell when on the bench
2018-05-08 14:16:18 +02:00
Léa Saviot
4d259442b5
[build/ion] Remove code used for debug.
...
Change-Id: I41802f79e7103204991edf38dff94b1c0a3a23ea
2018-05-08 14:13:34 +02:00
Léa Saviot
9b1d0e67c0
[poincare] Clearer ExpressionLayout::indexOfChild
...
Change-Id: Ibe7f1b616ccd3b7951e6334682d28116d3234f77
2018-05-08 12:04:31 +02:00
Léa Saviot
8d5c83fef3
[poincare] Fix/add assertions
...
Change-Id: I642bf20ae2bb75ea5a65898e11390f5337363b3b
2018-05-08 12:03:55 +02:00
Léa Saviot
bf3b26439d
[poincare] Coding style
...
Change-Id: I0de1e558b3b9483456ccca5b8d42b6d0b9f2e30e
2018-05-08 12:03:33 +02:00
Léa Saviot
3fcfbcf833
[poincare] Fix DynamicLayoutHierarchy::mergeChildrenAtIndex
...
Change-Id: I579d3daf9791e06474a66071b2b2be0908a8cf02
2018-05-08 12:02:21 +02:00
Léa Saviot
4a0fe345e2
[ion/dfu_interface] De-activate Flash Programming after write operations
...
Change-Id: I2a9395a4f7f6e70f0d7981ed07684f230678c212
2018-05-08 10:55:40 +02:00
Léa Saviot
c59778a01e
[ion/dfu_interface] Check BSY bit before each CR register access
...
Change-Id: I4999906c694fed30e6101c8c5e1f33f1957db397
2018-05-08 10:55:40 +02:00
Jean-Baptiste Boric
92b9fc53f3
Use saner default debug flags
2018-05-07 21:05:30 +02:00
Léa Saviot
66d2eb0e7a
[poincare] Handle MultiplicationSign in ExpressionLayoutCursor::insertText
...
Change-Id: Ie2dd1c48cedbb3f80eac4db1ff9ffeeefb1ede71
2018-05-07 14:24:44 +02:00
Léa Saviot
6e409cace6
[poincare] Handle Charset::Empty during 2D text insertion
...
Change-Id: Ie3aee986045d0e4eced06b909ab3bcf22f31ec59
2018-05-07 14:22:34 +02:00