Commit Graph

405 Commits

Author SHA1 Message Date
Romain Goyet
ada205b1a7 [build] Use variants
- Move helpers functions into build/helpers.mak
- Move official warning into official targets only
2020-04-03 22:26:55 -04:00
Émilie Feral
ffb8f8f953 [python] Test: add all template scripts 2020-04-01 16:39:59 +02:00
Léa Saviot
11ac25e935 [apps/code] Fix toolbox comment 2020-04-01 13:42:44 +02:00
Léa Saviot
92c62ce3dc [apps/code] Remove superfluous spaces in toolbox 2020-04-01 13:42:44 +02:00
Léa Saviot
511a96f464 [apps/code] Add matplotlib.pyplot functions to the toolbox catalog
Not just in the modules submenu
2020-04-01 10:18:09 +02:00
Émilie Feral
642a7c7f61 [apps/code] Increase python heap to 32k 2020-04-01 10:18:09 +02:00
Émilie Feral
d247843da6 [apps/code] Clean ConsoleController::reloadData (always returns true) 2020-04-01 10:18:09 +02:00
Émilie Feral
81284120af [apps/code] ConsoleController: refreshOutput is now done only when the
console is active
2020-04-01 10:18:09 +02:00
Léa Saviot
2f4064d92b [apps/code] Fix axis() command without arguments
It inserted axis(,,,) instead of axis()
2020-04-01 10:18:09 +02:00
Léa Saviot
2ac1396dd2 [apps/code] Put back the polynomial script 2020-04-01 10:18:09 +02:00
Léa Saviot
b2c95bcbbf [apps/code] Parabola script 2020-04-01 10:18:09 +02:00
Léa Saviot
399cfffc83 [apps/code] Fix toolbox texts 2020-04-01 10:18:09 +02:00
Léa Saviot
89ef6ec71b [apps/code] Add MatplotlibPyplot in the toolbox 2020-04-01 10:18:09 +02:00
Léa Saviot
f5e69395ee [apps/code] Reorder toolbox modules 2020-04-01 10:18:09 +02:00
Émilie Feral
fb3f6ab6f3 [apps/code][python] ConsoleController doesn't keep any pointer/boolean to know
if the sandbox/matplotlib view controller is displayed. Its state won't be
always right; instead, use the StackViewController depth.

This fixes the following bug: when popping the sandbox/matplotlib view
controller, the first responder token was not given to the console
controller!
2020-04-01 10:18:09 +02:00
Émilie Feral
89b54d424e [apps/code] ConsoleController: when becoming first responder, check if a
controller is displayed and switch the first responder accordingly
2020-04-01 10:18:09 +02:00
Émilie Feral
7d48d4e7c4 [apps/code] Console controller: display only one ExecutionViewController
at a time
2020-04-01 10:18:08 +02:00
Émilie Feral
53ec023ea0 [apps/code] ConsoleController: factorize code to reload the table 2020-04-01 10:18:08 +02:00
Émilie Feral
659da1dff8 [apps][python] ExecutionEnvironment handles hide sand display of sandbox
and plot controller the same way
2020-04-01 10:18:08 +02:00
Émilie Feral
51da01aa11 [apps/code] Remove 'm_preventEdition' from ConsoleController, it was
always used with m_preventEdition = true.
2020-04-01 10:18:08 +02:00
Romain Goyet
d71ad9b288 [wip] Convenience to test matplotlib 2020-04-01 10:18:08 +02:00
Romain Goyet
3df8018943 [apps/code] Remove useless code 2020-04-01 10:18:08 +02:00
Romain Goyet
2b73c4c9aa [apps/code] Quick hacks to allow pushing a view controller 2020-04-01 10:18:08 +02:00
Romain Goyet
131df18b00 [python] A module can now ask to present a view controller 2020-04-01 10:18:08 +02:00
Léa Saviot
4f76e4418f [apps/console_edit_cell] Fix input result copying 2020-03-02 17:24:54 +01:00
Léa Saviot
f12c53b3f2 [apps/code] printText should not be asynchronous in emscripten
Otherwise, we need to put in the whitelist all methods that might call
printText, which are a lot.
2020-02-27 11:32:26 +01:00
Léa Saviot
02e79ad595 [apps/code] Do not refresh the print if the sandbox is displayed
Otherwise the first responder becomes the console edit line, and events
(such as Toolbox) are not intercepted by the sandbox anymore.
2020-02-25 15:31:25 +01:00
Neven Sajko
f5e53e03e3 [apps/code] Deduplicate definitions of pi and e
Merge the language-specific definitions of these mathematical constants
into one definition. Note that the definitions were in fact inconsistent
across languages.
2020-02-21 15:36:21 +01:00
Léa Saviot
9bc0776a6a [apps/code] Allow interruption of infinite print loops
while (True):
  print("hello")
is now interruptible when the user presses Back
2020-02-20 10:59:01 +01:00
Léa Saviot
cf37e5c45a [apps/code] Fix input(), that did not return the input 2020-02-20 10:52:19 +01:00
Léa Saviot
baba9a4ff0 [apps/code] Regroup the "list.*" methods in the toolbox 2020-02-18 10:07:33 +01:00
Romain Goyet
a187f39094 [apps] Report telemetry events 2020-02-17 10:31:24 -05:00
Romain Goyet
5dee4a8166 [apps] Add screen telemetry identification 2020-02-17 10:31:24 -05:00
Romain Goyet
7f43b73049 [apps] Don't forget to call viewWillAppear
At the moment ViewController::viewWillAppear doesn't do anything, so
there is no real impact. But if we want to use it it needs to be called
from subclasses.
2020-02-17 10:31:24 -05:00
Léa Saviot
bbee8945b3 [apps/code/toolbox] Remove too long i18n 2020-02-12 15:46:32 +01:00
Léa Saviot
6dced2d157 [python/test] Do not use such a big python heap 2020-02-12 15:13:27 +01:00
Léa Saviot
5309610b01 [apps/code/toolbox] Fix z.real and z.imag cursor position 2020-02-12 15:13:27 +01:00
Léa Saviot
6711b96ed9 [apps/code/Toolbox] No conjugation in English 2020-02-12 15:13:27 +01:00
Léa Saviot
faee99b51b [apps/code] Fix list items of the toolbox 2020-02-12 15:13:27 +01:00
Léa Saviot
cefaf878d0 [apps/code/toolbox] Fix messages
Too long + wrong code point for the signle quotation mark
2020-02-12 15:13:27 +01:00
Ruben Dashyan
179ce5d5d5 [ion/unicode/codepoint] Rename is[(Lower|Upper)Case]Letter to isLatin[(Small|Capital)]Letter
to conform with unicode terminology
2020-02-12 15:13:23 +01:00
Ruben Dashyan
575b911da9 [ion/unicode] Split isDigit into isDecimalDigit, isBinaryDigit, isHexadecimalDigit 2020-02-12 15:13:23 +01:00
Ruben Dashyan
9b0b4e3096 [ion/unicode] Define and use CodePoint const methods
isLowerCaseLetter
isUpperCaseLetter
isLetter
isDigit

Remove similar ones from UTF8Helper and from Poincare::Tokenizer.
2020-02-12 15:13:23 +01:00
Émilie Feral
b56cd8b012 [escher] Metric: add EllipsisCellWidth. This will be soon used by
Calculation::HistoryCell
2020-02-12 15:13:22 +01:00
Léa Saviot
b7e177865a [apps/code] Fix prompt after input 2020-02-12 15:13:22 +01:00
Léa Saviot
3dcb40b5d4 [apps/code] Do not call interrupt in printText 2020-02-12 15:13:22 +01:00
Léa Saviot
1dacd71acb [apps/code] Remove unneeded arguments 2020-02-12 15:13:22 +01:00
Léa Saviot
c6c3e3f340 [apps/code] Hide prompt when running script 2020-02-12 15:13:22 +01:00
Léa Saviot
f47f1f0543 [apps/code] Refresh view in printText 2020-02-12 15:13:22 +01:00
Léa Saviot
f20bb1fcf2 [apps/code] Display the console before running auto-imported script 2020-02-12 15:13:22 +01:00