É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
Léa Saviot
a5bf4b68fa
[apps/code] Remove duplicate i18n
2020-02-12 15:13:22 +01:00
Léa Saviot
d5a18fcf13
[apps/code] Add time module in the toolbox
2020-02-12 15:13:22 +01:00
Léa Saviot
200e542a96
[apps/code] Add ion module in toolbox
2020-02-12 15:13:22 +01:00
Léa Saviot
8742ea9d25
[apps/code/i18N] Alphabetical rearrangement
2020-02-12 15:13:22 +01:00
Léa Saviot
3d4d46c489
[apps/code/menu_controller] Fix Clear handling in text field
...
The menu controller handled Clear but it clashed with any ongoing
selection.
In fact, eveything handled in textFieldDidReceiveEvent was already
handled in TextFieldWithExtension
2020-02-12 15:13:20 +01:00
Léa Saviot
5a7c03d485
[apps/editor_controller] Fix backspace handling in text area
...
The editor controller handles backspace if it is at the beginning of a
line, to remove multiple spaces to match the indentation, but it should
not do so if there is an ongoing selection
2020-02-12 15:13:20 +01:00
Émilie Feral
5974149162
[escher] Metric: change name TableCellLabelTopMargin to
...
TableCellHorizontalMargin and add TableCellHorizontalMargin
2020-02-12 15:13:20 +01:00
Léa Saviot
8cf13adaf0
[apps/editor_controller] Handle deleted scripts in cleanStorageEmptySpace
2020-02-12 15:13:18 +01:00
Léa Saviot
344ea5a67a
[apps/code] Handle Home event when in the toolbox
...
If editing a script, the empty space at the end of the script should be
moved to the end of the storage.
2020-02-12 15:13:18 +01:00
Léa Saviot
e98b67634d
[escher/text_area] Improve dirty tracking
2020-02-12 15:13:17 +01:00
Léa Saviot
d05a95c87c
[apps/code] Reset selection when leaving script editor
2020-02-12 15:13:17 +01:00
Léa Saviot
1be417e2c4
[apps/code] Code cleaning
2020-02-12 15:13:17 +01:00
Léa Saviot
a2c7e57a77
[apps/python_text_area] Color the white spaces
2020-02-12 15:13:17 +01:00
Léa Saviot
9d9efc985f
[apps/python_text_area] Clean drawLine
2020-02-12 15:13:17 +01:00
Léa Saviot
349b4f8532
[escher/text_area] Fix selection color
2020-02-12 15:13:17 +01:00
Léa Saviot
14cc6ffc59
[escher/text_area] Select and copy
2020-02-12 15:13:17 +01:00
Émilie Feral
4025d75734
[apps/code] Fix number of displayable rows in ConsoleController
2020-02-12 15:13:17 +01:00
Émilie Feral
d64321d116
[apps/code] Remove useless class member in ConsoleController
2020-02-12 15:13:17 +01:00
Léa Saviot
c1b792c23d
[apps/code] Get out of script edition on usb enumeration
...
The storage needs to be in a clean state
2020-02-12 15:13:16 +01:00
Léa Saviot
5853e96947
[apps/code] Remove EditorController::m_areaBuffer
...
This was a very large buffer that took a lot of RAM space (the size of
the storage). Instead of having it, we just move the available space of
the storage at the end of the edited script, and move it back when the
edition finishes.
This is slower but saves a lot of space.
2020-02-12 15:13:16 +01:00
Émilie Feral
3627dc0c0f
[apps/code] Choose editor font size from GlobalPreferences
2020-02-12 15:13:15 +01:00
Émilie Feral
c2dabf6510
[apps/code] Choose console text size from GlobalPreferences
2020-02-12 15:13:15 +01:00
Léa Saviot
9f018eb9d9
[escher/view] setFrame and layoutSubviews can be forced
2020-02-12 15:13:15 +01:00
Ruben Dashyan
7630460424
[apps/code] Add methods on lists to python toolbox catalog
2020-02-12 15:13:15 +01:00
Léa Saviot
0f52335183
[apps/code] Fix syntaxic coloration
...
This fixes the coloration of:
"123\n"+1
"\n\n"+1
For strings, lex->vstr.len gave the wrong value because it had already
translated escaped chars, so "\n" would be one char long.
2020-02-12 15:13:15 +01:00
Léa Saviot
00d28108fb
[apps] Fix i18n to be able to build standalone apps
...
Example failing build: make PLATFORM=simulator EPSILON_APPS=regression
2020-01-06 15:15:49 +01:00
Adrien Bertrand
2ec4bc29e0
[apps] [code] Fix nullptr deref ( fix #1176 )
...
When scrolling up in the python shell history, `selectedCell` could be NULL.
2019-11-04 09:57:45 +01:00
Romain Goyet
758c217120
[ion] ion_main takes const arguments
2019-10-16 10:01:00 +02:00
Émilie Feral
80858d7c82
[apps/code] Fix toolbox messages
2019-09-23 11:10:38 +02:00
Aleks ANDRÉ
45d446face
Update catalog.fr.i18n
...
Terminologie utilisée dans l’enseignement français
2019-09-23 10:44:21 +02:00
Léa Saviot
4caf9f5197
[coding style] Make some methods const
2019-09-09 20:05:14 +02:00
Léa Saviot
d9f650d283
[ion/utf8_helper] HasCodePoint
2019-09-09 13:30:04 +02:00
Émilie Feral
12060e2ae7
[escher] TextField: all text fields use the same draft text buffer
2019-08-13 09:44:00 +02:00
Léa Saviot
5fac7a8cd2
[apps/code] Fix typo
2019-08-08 17:29:10 +02:00
Léa Saviot
c2b4d2b760
[strlcpy] Assertions on len parameter
2019-08-08 17:22:06 +02:00
Émilie Feral
059c596a80
Makefiles: avoid building all sources for each target; introduce more
...
modularity
2019-08-08 17:22:01 +02:00
Léa Saviot
e8be088478
[apps/escher] Factorize TxtArea and Code::EditorCtrlr's k_indentSpaces
2019-08-08 16:22:28 +02:00
Émilie Feral
7a4ee746b2
[escher] TextField: call reinitDraftBuffer after edition is complete to
...
avoid erasing text that is required later.
Fix bug: OK handling on function list in linear mode did not copy the
function expression into the textfield before editing
2019-07-30 11:47:42 +02:00
Léa Saviot
7b84b65502
[apps/code] Fix sandbox and input clash
...
The command "squares()%input()" followed by text, OK, and a backspace
event broke an assertion on the consoleStore number of lines.
2019-07-30 11:31:21 +02:00
Ruben Dashyan
eb6d697927
[apps] Make app accessors static members of App classes
2019-07-19 15:06:25 +02:00
Ruben Dashyan
44809f4b3f
Substitute Escher app() by Container::activeApp()
2019-07-19 15:06:25 +02:00
Ruben Dashyan
0490e3ab81
[apps] Define InputEventHandlerDelegate::inputEventHandlerDelegateApp() directly from ::app()
2019-07-19 15:06:25 +02:00
Romain Goyet
21907fb89a
[apps] Get rid of App casts
2019-07-19 15:06:25 +02:00