Léa Saviot
fd3a2c3cbc
[apps/code] Use a special char to position the cursor in Python commands
...
Change-Id: I7ae3d6098160212d8683a671c78d3bdb937fb701
2018-04-23 17:18:56 +02:00
Léa Saviot
13ae1d2545
[apps/escher/toolbox] handleEventWithText for all responders.
...
This makes the code in the various toolbox more generic. The arguments
of the text to insert are each replaced by a Ion::Charset::Empty.
These Empty chars are used to create layouts in ExpressionLayoutFields,
and to compute the position of the cursor in other fields, before being
removed.
Change-Id: Ie81c1e394b06fef2ab801ccff919d6550f70ec30
2018-04-23 17:18:48 +02:00
Léa Saviot
e90b3fd1cd
Merge branch 'SaisieJolieMerge10Apr' into SaisieJolieMerge11Apr (master)
...
Change-Id: I06732115ee37ffd9a037a8412e1c57751dfb3e0f
2018-04-12 09:58:09 +02:00
Léa Saviot
88aaab64ba
[apps] Fix obsolete code in Code and Shared
...
Change-Id: Ie6ce0f753bf05cb5f6dd5ed974db2a715b21624e
2018-04-11 17:10:09 +02:00
Léa Saviot
6ae9361b6e
[apps/code] Fix all scripts deletion.
...
Change-Id: I802673f3d6a8ec6643e11c221bb6dbd5c8ab2ef2
2018-04-11 10:04:18 +02:00
Romain Goyet
382537ccfe
Merge branch 'github-master'
2018-04-10 18:28:15 +02:00
Émilie Feral
92d2c42ff8
[apps] Code: allocate the indentation buffer instead of using an
...
arbitrary value
2018-04-10 17:39:34 +02:00
Léa Saviot
c4b5d4cf40
Merge branch 'SaisieJolieRebase1201' into SaisieJolieMerge10Apr
...
Change-Id: I802dbb9f7c0eebf75a1b6cd21ddd194e89b53752
2018-04-10 17:21:54 +02:00
Romain Goyet
628992680b
[ion] Ion::Storage is not a global variable anymore
2018-04-10 15:09:30 +02:00
Romain Goyet
b691d3d6ed
Merge branch 'usb'
2018-04-09 14:48:18 +02:00
Émilie Feral
31f79c702a
[apps] Code: when updating a script name, handle the event 'clear' to
...
keep '.py'
2018-04-09 14:42:45 +02:00
Émilie Feral
b714d9242e
[apps] Code: when in input loop, handle 'up' event
2018-04-09 14:42:26 +02:00
Léa Saviot
3059f27c00
[apps/code] Remove un-necessary dependency.
...
Change-Id: I65a7b81b44aa1be6ff064e8fde0af23760fb5d7d
2018-04-06 14:31:49 +02:00
Émilie Feral
9289928fff
[apps] Code: abort script name editing if MenuController exits responder
...
chain
2018-04-06 10:14:13 +02:00
Émilie Feral
9cadc49264
[apps] Code: Fix autoImportScript to avoid corrupting stack
2018-03-28 10:03:36 +02:00
Émilie Feral
f1ddf1dbf4
Valgrind: uninitialized value, memory leak
2018-03-28 10:02:09 +02:00
Émilie Feral
ae086adfcf
Clean
2018-03-22 14:01:38 +01:00
Émilie Feral
845fc7c979
[ion] Typo: NoEnough -> NotEnough
2018-03-22 14:01:38 +01:00
Émilie Feral
291b0541bc
[apps] In code I18n: change message for uncompliant script names
2018-03-22 14:01:38 +01:00
Émilie Feral
b0ede47d55
[ion] Change Storage design (former kallax)
2018-03-22 14:01:38 +01:00
Émilie Feral
1f351ddbd6
[i18n] Add messages (warnings when setting a script name)
2018-03-22 14:01:38 +01:00
Émilie Feral
f9656fd94f
[ion] Namespace Record and 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
19ca0f0640
[apps] Code: use the FileSystem to store the scripts instead of an
...
accordion
2018-03-22 14:01:38 +01:00
Émilie Feral
3db86a8111
[apps] Code: merge actions for text input in ConsoleController and
...
EditorController
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
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
c5e525ddb7
Enable to give options at run-time
2018-03-22 11:58:56 +01:00
Romain Goyet
06bfaafb3b
[python] Add "input()" to the catalog
2018-02-01 14:10:26 +01:00
Romain Goyet
fd7516f8ac
[python] "input" now displays the provided prompt
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
Romain Goyet
651d5715e4
[python] Adding mp_hal_input
2018-02-01 14:10:26 +01:00
Léa Saviot
a2c0eaa20b
[apps/escher] Remove textFieldDidAbortEditing const char * argument.
...
Also removed the same argument in scrollableExpressionViewWithCursorDidAbortEditing.
Change-Id: Iadc6b708cfc0fab44b9fd4edb980cb759d41e8d0
2018-01-23 10:28:02 +01:00
Léa Saviot
f3e6b10410
[apps/math_toolbox] Handle const char * when selecting a leaf.
...
Else, there would be a problem with sequence_toolbox, where not all
toolbox leaves are message trees.
Change-Id: Ib4968aad37f6a835b1ea4d77efac2ae1bd19c7ce
2018-01-19 17:04:41 +01:00
Léa Saviot
d8803c610c
[apps] "New Matrix" item in math toolbox.
...
Change-Id: Iec01ffa96ec64f42d2cbc4b15b14eea7cfe4eaa4
2018-01-17 14:26:50 +01:00
Émilie Feral
5c23003e50
[apps] Python: Refining random module
2018-01-16 13:19:27 +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
MaxBzh
4011290e7a
Add Urandom module in Python
2018-01-05 14:28:25 +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
077a95197e
[escher] SelectableTableView handles setting the ccell as first
...
responder if needed
2017-12-20 17:17:41 +01:00
Émilie Feral
7686412266
[apps] In code: add single quote (') in the catalog
2017-12-18 16:53:12 +01:00
Léa Saviot
27d6f8e7cc
[code] Added line feeds after some Python Toolbox commands.
...
Change-Id: I0d6ab5beecfa02fec64ca904f50c7b2a4022ff96
2017-12-05 12:08:24 +01:00
Léa Saviot
dcd5d05537
[code] Fixed selection bug in the console history.
...
When clearing the console history, the previously selected cell was not
unhighlighted. This sometimes caused a random cell to be highlighted when
adding new commands.
Change-Id: I393446527fc06d7ae075c21124cb78e09d63ef99
2017-12-05 11:28:23 +01:00
Léa Saviot
f8e64c1ba4
[code] Fixed Toolbox messages typos.
...
Change-Id: If9db652250c1a075530e8ce213f37af4d46e457b
2017-12-04 18:02:24 +01:00
Léa Saviot
71bfcbf5d7
[code] Cleaned the prevention of ".py" edition.
...
Now the MenuController changes the cursor location if needed once the
Textfield has handled the event.
Change-Id: I1ad3202402623dfa9a683866fef90ca33ddd6be0
2017-12-04 17:18:37 +01:00
Léa Saviot
fd33930301
[code] Prevent adding text in a script name when the textfield is full.
...
Change-Id: I31968f9fa62a7cf9904ed1f64f2833760510317a
2017-12-04 14:52:21 +01:00
Léa Saviot
56ac5071f2
[code] Fixed table reload when executing one script.
...
Before, the history would not redraw itself properly when selecting
"Execute Script" from a script's options.
Change-Id: Ibefd920eb038165a81ddb464dbf889047ad1f370
2017-12-04 13:51:38 +01:00
Léa Saviot
b27551ce4f
[code] Fixed bug when importing scripts that draw on screen.
...
The drawing should happen after the ConsoleController is pushed on the
screen. This means that the importation of scripts should be done at the
ConsoleController's viewWillAppear.
Change-Id: I756ac9de30f339dc4f6aa8d3995abea0a46d03b5
2017-12-04 12:11:00 +01:00
Léa Saviot
ff22bc05b8
[code] Fixed bug in script_node_cell.
...
Change-Id: I588a7a25a0042efd34701bb5dc3d091a232ba55d
2017-12-04 10:46:27 +01:00