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
É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
Léa Saviot
277771c243
[code] Fixed selection bug in VariableBoxController.
...
Change-Id: I8fcbdd6e181453bb8fbee7b4efc8573ca112c6a2
2017-12-04 10:44:35 +01:00
Léa Saviot
ac42d910f5
[code] Fixed minimalSizeForOptimalDisplay in ScriptNodeCell.
...
Change-Id: I6c5b9d5ec0e1973112a56086123c92c6dedf8456
2017-12-01 17:07:52 +01:00
Léa Saviot
32953c10d8
[code] VarBoxController::ContentViewController is a SimpleListView.
...
Change-Id: I3a5d9e0803e33b4a75bffe4a2d05d74492d50a9b
2017-12-01 16:18:36 +01:00
Léa Saviot
85a039c524
[code] Fixed long console line storing.
...
Change-Id: I33785d2766bb59a6324c850d5ac915a48a9fda35
2017-12-01 16:18:36 +01:00
Léa Saviot
09d6e3da53
[code] Changed the base scripts: polynomial.py instead of fibonacci.py.
...
Change-Id: If80b20681dc04c5556c9b90bda230c7c3bee58a5
2017-12-01 16:18:36 +01:00
Léa Saviot
d05ca726b6
[code] Delete specific lines in the console history with backspace.
...
Change-Id: I9ed4709937f35c67aea0b958fabbad145b8c0c80
2017-12-01 16:18:34 +01:00
Léa Saviot
62fe441b7a
[code] Add parentheses after function names in Var.
...
Change-Id: I7e3e993d07139c40c6bd59fd5879b3ee091f5127
2017-12-01 16:11:31 +01:00
Léa Saviot
9805f7570e
[code] "Functions and variables" translation.
...
Change-Id: I8f368a0c5e7e6bbb0aebc6a1112d3bdb2d76d34d
2017-12-01 16:11:31 +01:00
Léa Saviot
7c4e5ec583
[code] Color the console history in grey when unloading Python.
...
Change-Id: I7f802ee5858e6a9944fd3f2455fac58106e2adeb
2017-12-01 16:11:31 +01:00
Léa Saviot
ed2a17ad31
[code] The console history can be colored in grey.
...
Change-Id: If3da306140d4f80d1abd014c5bf0e1989e3a252d
2017-12-01 16:11:29 +01:00
Léa Saviot
1de30cbe06
[code] Fixed loop condition bug in ConsoleStore.
...
Change-Id: Ia6a46fe04614afcdace4ab3396282b3c5a6c308c
2017-12-01 13:46:31 +01:00
Léa Saviot
d732bce90f
[code] The user can clear the console history.
...
Change-Id: Ice8143f9c424764f6729feab0d73d39d91f896fd
2017-12-01 13:46:31 +01:00
Léa Saviot
38ec9429aa
[code] User defined functions and variables are in the same menu.
...
Change-Id: I420df64cac76407f8d964db680e753f01e20e78c
2017-12-01 13:46:29 +01:00
Léa Saviot
99411838bd
[code] Fixed buffer length bug in Code::PythonToolbox.
...
Change-Id: I50432b210936fce0aa0817e3598f4cea38b62bbd
2017-12-01 13:19:30 +01:00
Léa Saviot
53d2ae2c46
[code] Rename Code::Toolbox in Code::PythonToolbox for more clarity.
...
Change-Id: I3729fedd8a26531edcd17105ed5fc177c06a8fcb
2017-12-01 13:19:30 +01:00
Léa Saviot
dd1fe77832
[code] Fixed Execute Script bug.
...
When disabling a script auto-import parameter, it would not import
itself when executing it from its script parameters menu.
Change-Id: If58f6fe1be4792b551ad3b462f1f43e8b82e8148
2017-12-01 13:19:30 +01:00
Léa Saviot
6ab9a36472
[code] The console history is not emptied when reloading Python.
...
Change-Id: I5dedcfc8279f5f4fe9846419f6861c7d7cb3f973
2017-12-01 13:19:30 +01:00
Léa Saviot
e43bbd38f2
[escher] Fixed TextField bug.
...
The Statistics apps crashed when navigating the Data table.
-> Check that the textfield is editing before calling
textFieldShouldFinishEditing.
-> Changed textLength() to draftTextLength().
Change-Id: Id373a7cd50438303f470abc5bcee7a795c33926a
2017-12-01 13:19:30 +01:00
Léa Saviot
4659d27c80
[code] Added spaces after some Toolbox commands.
...
Change-Id: I15c0a9b593e39123694c38ad3d6201e0319f24f4
2017-12-01 13:19:30 +01:00
Léa Saviot
1ce6f36651
[code] Fixed the wait for user input after drawing using Python.
...
A SandboxController is now pushed on the StackViewController and sets the
KDIonContext::sharedContext before drawing, sets a white background and handles
user input after the Python computation to dismiss the drawing screen.
Change-Id: I51b0474365a85e845227379a16d090541fa8ded7
2017-12-01 13:19:28 +01:00
Léa Saviot
a78bd0db88
[apps/escher] Harmonize Toolbox and VariableBoxController row heights.
...
Change-Id: I8e6c5543d46480a1129f3812ca40c29e4407eac1
2017-12-01 12:06:05 +01:00
Léa Saviot
e6b4d07cb6
[code] Dynamic toolbox that displays script functions and variables.
...
Change-Id: Id1494580b3832540633d3aefaf04710d21e0a44c
2017-12-01 12:06:05 +01:00
Léa Saviot
2015bcce89
[code] Created DoubleBufferTextView for functions/variables toolbox.
...
Change-Id: I8fb8d12463de44f244230eca36d4b0404343f57d
2017-12-01 12:06:05 +01:00
Léa Saviot
bc4d2768d0
[escher/code] Cleaned Toolbox rowHeight().
...
Now it is set in escher/toolbox.h, with value 40 and no differentiation Node/Leaf.
Change-Id: I0809d87a5df5b8bffe201c9faf72ff901430cbe5
2017-12-01 12:06:05 +01:00
Léa Saviot
1c25848139
[code] Modified mandelbrot script template.
...
Change-Id: Iee1ad23bf37f71564cdf5f23203c12149ed7fda8
2017-12-01 12:06:05 +01:00
Léa Saviot
37a2def2f1
[code] The maximal number of scripts is stored in the ScriptStore.
...
It was in the MenuController before.
Change-Id: I5f48465d92b53079dc358feec7a4b713875c7e2d
2017-12-01 12:06:05 +01:00
Léa Saviot
9d82804ff3
[code/emscripten] On emscripten, fixed waiting after a Python drawing.
...
The user can now push OK or Back to remove a Python drawing.
Change-Id: I293064a9458f8c0c6d0da5351500600fd9e82706
2017-12-01 12:06:05 +01:00
Léa Saviot
8dfeaa1f63
[code] Fixed bug in Accordion.
...
The last edited buffer was not properly computed.
Change-Id: I7aadbc6e3ea41b3b0e344276933dca14c505ee71
2017-12-01 12:06:03 +01:00
Léa Saviot
9d57d7f173
[code] Cleaned MenuController.
...
Change-Id: I499fcaf728a4f60557475b64e371a97e362b558d
2017-11-28 10:27:33 +01:00
Léa Saviot
2ce26f2625
[code] Fixed assertion bug in MenuController.
...
The assert should take into account the fact that there might not be any
script.
Change-Id: I68f0e5071ffd011fc5bb1dacc035d2127bdd8176
2017-11-28 10:27:12 +01:00
Léa Saviot
07bc7672e8
[code] Fixed cursor bug when inserting text in editor.
...
Now the cursor moves only if the insterion was successful.
Change-Id: If2f74307aecd4b9b86183a3437a53fd8875c1751
2017-11-21 17:37:48 +01:00
Léa Saviot
711f78f837
[code] Added Kandinsky module and other functions in Toolbox.
...
Change-Id: I81a1323993c91990b13e81cbf4ea2af1ace8ef11
2017-11-21 17:37:48 +01:00