Commit Graph

7312 Commits

Author SHA1 Message Date
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
Émilie Feral
71b972ceb1 [sequence] Decrease sequence graph resolution (2 dots per pixel instead
of 5)
2018-05-08 14:45:23 +02:00
Émilie Feral
8a6c06367e [home] Fix number of rows instead of fixing number of columns 2018-05-08 14:44:54 +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
Léa Saviot
f660c7750c [ion] Fix linear mode cursor position when pressing "cos" for instance
Change-Id: I7a39f875cc85eedc336818fcfe5b125c74a8960c
2018-05-07 14:14:02 +02:00
Émilie Feral
67cfb93987 [poincare] PrintFloat: fix error due to float/double prevision
floor(abs(100000))*pow(10,-5)= 0.9999999 instead of 1
2018-05-04 17:32:23 +02:00
Romain Goyet
a29c775663 [ion] Encode the serial number in Base64
Also, expose serialNumber() in Ion and keep "copySerialNumber" in
Ion::Device. This allows the DFU bootloader to remain .bss-free.
2018-05-04 17:31:41 +02:00
Émilie Feral
11ae2da6c5 [poincare] Fix tests: randint(a,b) might return b 2018-05-04 17:28:27 +02:00
Romain Goyet
5d9f66df28 [hardware_test] Get rid of the USB step 2018-05-04 17:04:24 +02:00
Romain Goyet
aa776be032 [hardware_test] Get rid of the reset step 2018-05-04 17:04:24 +02:00
Romain Goyet
339ec330c1 [apps] Don't SU prompt in the hardware test 2018-05-04 17:04:24 +02:00
Romain Goyet
71f9ce3b67 [hardware test] Use a BankViewController
And add a SerialNumberController
2018-05-04 17:04:24 +02:00
Romain Goyet
69545b9cf9 [apps] Handle Ion::Events::USBPlug in processEvent
This gives apps a chance to catch this event. This is used in the
hardware test.
2018-05-04 17:04:24 +02:00
Romain Goyet
29aca1a7dc [escher] Add a BankViewController 2018-05-04 17:04:24 +02:00
Léa Saviot
4576b88f81 [escher] Fix cursor display in ELField, when the cursor is on the right
Change-Id: I44e9bc53440b4ce7b074a94b733a636d3582ac3c
2018-05-02 14:46:10 +02:00
Léa Saviot
7ea0ddb2a7 [escher] OnFinishEditing, clear the layout.
The layout should never be deleted + this fixes the ELField size that
might stay big once emptied (e.g. 1 / 2 OK would leave an empty ELField,
but with a big vertical size).

Change-Id: I3971115d3bad48ce36a449e01bd12d5d8229ca4c
2018-05-02 11:05:08 +02:00
Léa Saviot
21f083d926 [escher] Fix Graph/Sequence cursor display in 2D edition.
When inserting a layout, the ELField was not put in Edition mode and the
cursor did not appear.

Change-Id: I47154829bda4a51201a4b1417ce86cae4099c1b9
2018-05-02 10:56:32 +02:00
Léa Saviot
951f31e951 [escher] Fix bug in CursorIndexInCommand (when bufferSize = 0)
Change-Id: I3494ce7faeb6925e7ed6c7b532d34172420c4620
2018-05-02 10:16:52 +02:00
Léa Saviot
80d50d2a79 [escher] Fix horizontal scroll in ELField
Change-Id: Id2502f84514a1aeb76c84f7648dea110b0676ee4
2018-04-30 18:10:44 +02:00
Léa Saviot
c8a95b6acd [escher] ELField size should take into account the cursor.
Else, when it is on the extrema, it does not appear.

Change-Id: I2a8620ef38773e51d2087f842ec2dade2d8e0bac
2018-04-30 18:10:03 +02:00
Léa Saviot
bc40c21f68 [poincare] Fix Fraction layout navigation.
Change-Id: I22bf36367c68c8b457bd224f02a6106f53da0146
2018-04-27 09:47:26 +02:00
Léa Saviot
acf79de1d4 [escher] Better cursor scroll (scroll to see the cursor baseline)
Change-Id: I4ddd1818d783d6f5f22c8b6f1e17ad09aea77527
2018-04-26 18:11:10 +02:00
Léa Saviot
8801b9f383 [apps/code] Fix cursor position when inserting Python commands
Change-Id: I2f5cdc72220cc61b0c8830d746c63f705a7c928e
2018-04-26 17:52:11 +02:00
Léa Saviot
87becaa854 [escher] The layout should not change if ELField cannot handle event.
Change-Id: Ie3a59400a054680aa8cc42ab755708aa2fa19e2d
2018-04-26 17:34:48 +02:00
Léa Saviot
7244eabd51 [poincare] Fix cursorAbove/Under in EmptyLayout.
Change-Id: I9e5ac6eb557d07644310e391d5cc7bc75408c628
2018-04-26 17:21:19 +02:00
Léa Saviot
4b79bd544e [escher/poincare] Insert ".10^()" in ELField on EE event.
Change-Id: Ic30016c7cb7d2186b6e1b6f0ef1d676f1a512714
2018-04-26 16:43:49 +02:00
Léa Saviot
19d5115eaa [escher] Add margins in ExpressionField
Change-Id: I51272682246403f0449be19ff6cc75fd5544ad9c
2018-04-26 16:31:09 +02:00
Léa Saviot
30bffac99b [escher] Move settings to initializer list
Change-Id: I2e915e6290d2fc8a219898ab5369290d220f217d
2018-04-26 11:53:51 +02:00
Léa Saviot
49c17f743a [escher] Fix ExpressionLayoutFieldScrolling
Change-Id: I6f8a265e01bce454732e53affa9ddd01f0e78f08
2018-04-26 11:49:05 +02:00
Léa Saviot
7ce8b567ea [poincare] Change EmptyLayout height to prevent view jumps.
When inserting 1 on an EmptyLayout, the view does not change its height
now.

Change-Id: I3f5c7ba13c6269f89d069f2ea60cf09abd8a496f
2018-04-26 10:37:48 +02:00