Commit Graph

626 Commits

Author SHA1 Message Date
Léa Saviot
de25105f4a [usb] Handle the usb Plugged detection in getEvent.
Change-Id: Idfba5925a7c79c722b0aad3a1c24799b31d88298
2018-04-06 14:31:48 +02:00
Léa Saviot
6a2f300c67 [usb] Share values between MessageController and USBConnectedController
Change-Id: I1f1f7f147adb7fe92baab3df42bb623e6a61893e
2018-04-06 14:31:48 +02:00
Léa Saviot
5e07048bb6 [usb] To exit USB, scan if the usb is plugged or the Back key pressed
Change-Id: If92c0db8be6d07a91582c4a2d4ed0c3927020e43
2018-04-06 14:31:46 +02:00
Léa Saviot
b7829a0937 [usb] Change apps and relocate usb stack on ram.
When the device is plugged to a USB host.

Change-Id: I5d7ae3c86cacce509b6ccca2746984f7e806cb49
2018-04-06 14:31:45 +02:00
Émilie Feral
06ace4369c Clean warnings (comparison signed and unsigned) 2018-03-28 10:01:21 +02:00
Émilie Feral
b0ede47d55 [ion] Change Storage design (former kallax) 2018-03-22 14:01:38 +01:00
Émilie Feral
aa984bca74 [escher][ion] Move Record and Kallax in Ion/ 2018-03-22 14:01:38 +01:00
Émilie Feral
b9a852a9d1 [escher] Change name: File --> Record, FileSystem --> Kallax 2018-03-22 14:01:38 +01:00
Émilie Feral
338ee4e0b0 [escher] Indicate the address of the file system in the header section
of the flash
2018-03-22 14:01:38 +01:00
Émilie Feral
19ca0f0640 [apps] Code: use the FileSystem to store the scripts instead of an
accordion
2018-03-22 14:01:38 +01:00
Émilie Feral
c37696133d [escher] Create class File and FileSystem 2018-03-22 14:01:38 +01:00
Émilie Feral
4c796d404f [escher] TextField: prevent from inserting text with \n 2018-03-22 13:12:12 +01:00
Émilie Feral
aade7cb2fe [escher] Create a class TextInput (from which derived TextField,
TextArea)
2018-03-22 13:12:12 +01:00
Émilie Feral
c50e57029b [escher] TextInputHelper: special case for 'random()' and handle
parenthesis already completed (ie 'u(n)')
2018-03-22 13:12:12 +01:00
Émilie Feral
576caa039f [apps][escher] Add methods 'handleEventWithText' in TextField and
TextArea to fix bug in probability (adding a toolbox text from the
calculations controller)
2018-03-22 13:12:12 +01:00
Émilie Feral
7fcf77ce23 [escher] Fix bugs in TextField:
1. The cursor size is counted twice in minimalSizeForOptimalDisplay (bug
in regression table for instance)
2. Avoid layouting twice after scrolling by enabling overscroll
2018-03-22 13:12:12 +01:00
Émilie Feral
c5e525ddb7 Enable to give options at run-time 2018-03-22 11:58:56 +01:00
Émilie Feral
2b0b40d6d6 [escher] TextField: force layout after scroll reload when the content
size of scrollview might have changed
2018-03-22 10:22:18 +01:00
Émilie Feral
4af6e71e21 [escher] Fix bugs in TextField:
1. The cursor size is counted twice in minimalSizeForOptimalDisplay (bug
in regression table for instance)
2. Avoid layouting twice after scrolling by enabling overscroll
2018-03-22 10:22:18 +01:00
Émilie Feral
9dd637f7c3 [apps] Settings: clean number of rows 2018-03-22 10:19:15 +01:00
Émilie Feral
2f5f94ade0 [escher] Toolbox: back event on toolbox with no page depth is handled by
the modal view controller
2018-02-14 12:04:18 +01:00
Romain Goyet
489b26e813 Re-organize and re-prefix the Makefile variables 2018-02-02 14:30:35 +01:00
Émilie Feral
612a436bf6 [escher] Revert 'Clean useless reload' 2018-02-01 14:13:26 +01:00
Romain Goyet
67f082f4e8 [emscripten] Use emterpreter
This allows us to control the runloop
2018-02-01 14:10:26 +01:00
Romain Goyet
314fde955a [escher] Add a PointerTextView class 2018-02-01 14:10:26 +01:00
Romain Goyet
0682d21a32 [python] Implement ExecutionEnvironment::input
By using a re-entrant RunLoop call
2018-02-01 14:10:26 +01:00
Émilie Feral
bce658052c [escher] Fix uninitialized read 2018-02-01 12:19:33 +01:00
Émilie Feral
8c32a61bb1 [escher] TextField: markAsDirty the previous text when setting a new
text
2018-01-30 18:19:27 +01:00
Émilie Feral
2a207e59ac [apps] Probability: fix scrolling in calculation cells 2018-01-30 18:09:59 +01:00
Émilie Feral
5d8256435e [apps] Probability: fix bug; in calculation controller, when reloading cells after editing textfield, do not reload selection (it corrupts the responder chain if the first reponder was a modal view for ex) 2018-01-30 18:09:59 +01:00
Émilie Feral
126212e25b [escher] SelectableTableView: add an option when reloading data 2018-01-30 18:09:59 +01:00
Émilie Feral
f97cbd6d20 [escher] Clean useless reloadData 2018-01-30 18:09:59 +01:00
Jean-Baptiste Boric
56c6c17b57 [escher] Fix Valgrind uninitialized read 2018-01-23 11:36:27 +01:00
Émilie Feral
be59ec0bfd [escher] Fix stack view title layout: re-add a grey line below stack
titles
2018-01-16 13:21:02 +01:00
Émilie Feral
1912ad0379 [escher] Bug in dirty tracking in text field: the cursor width was
forgotten
2018-01-16 13:20:31 +01:00
Émilie Feral
4a3b935e7b [apps] Python: in the menu controller, the editable cells holding the
script names are not responder as long as they are not set as first
responder manually by renameSelectedScript for instance
2018-01-16 13:18:20 +01:00
Émilie Feral
a8b3fbbe5e [escher] Fix error in list view data source 2018-01-04 15:48:06 +01:00
Émilie Feral
faac0d7a58 [escher] Change TableView::size() to
TableView::minimalSizeForOptimalDisplay()
2018-01-04 15:48:06 +01:00
Émilie Feral
26bbfa85ec [apps] Probability: fix bug in layout (the textfield was moving when
adding characters)
2018-01-04 15:48:06 +01:00
Émilie Feral
fd06d428e5 [apps] Redesign Probability Calculation page 2018-01-04 15:48:06 +01:00
Émilie Feral
e8793c429c [escher] In textfield: when calling textFieldDidHandleEvent, precise if
there was any modification in the text
2018-01-04 15:48:06 +01:00
Émilie Feral
66ba406093 [escher] In table view: change the order of the layout: reload the data
BEFORE resizing and layouting cells
2018-01-04 15:48:06 +01:00
Émilie Feral
870994e11d [escher] Add a getter for the modal view in app 2018-01-04 15:48:06 +01:00
Émilie Feral
bc78a0b19e [escher] Add a method in view: relativePointForPointInView 2018-01-04 15:48:06 +01:00
Émilie Feral
e41ca318c7 [escher] TextField: change the method to get the optimal size for display 2018-01-04 15:48:06 +01:00
Émilie Feral
077a95197e [escher] SelectableTableView handles setting the ccell as first
responder if needed
2017-12-20 17:17:41 +01:00
Émilie Feral
975f54c7b2 [ion] Change events name: Origin->ShiftLeft, End->ShiftRight 2017-12-07 17:42:39 +01:00
Émilie Feral
15610064fa Coverity: fix unitialized pointer fields, out of bounds reads ...
Change-Id: Iae0656ffe667692dfb3bebf9bb7913b5872175c6
2017-12-06 14:50:26 +01:00
Léa Saviot
53c8b2215f [escher] Added textFieldDidHandleEvent to TextFieldDelegate.
Change-Id: Iad2ea114dd75632a0204c081b2345aeea8131798
2017-12-04 17:01:48 +01:00
Léa Saviot
b8a856dd27 [escher] Layout a Textfield's subviews when the cursor location changes.
Change-Id: If38e6d0a3034de491bff2cd622e13b3203ca82b8
2017-12-04 16:11:19 +01:00