Émilie Feral
0e5d29950a
[code] Get rid of unused member variable in VariableBoxController
2019-04-12 15:16:52 +02:00
Léa Saviot
06269d5349
[unicode] Fix portuguese literals
2019-04-12 15:16:52 +02:00
Léa Saviot
7b5636f298
[unicode] Clean decoder use
2019-04-12 15:16:52 +02:00
Léo Solé
e4526124f9
[unicode] Fix Spanish literals
2019-04-12 15:16:52 +02:00
Léo Solé
387cf996c0
[unicode] Add accents in french litterals
2019-04-12 15:16:52 +02:00
Léa Saviot
a214bbdc5a
[unicode] Use unicode when dealing with chars - Part 2
2019-04-12 15:16:51 +02:00
Léa Saviot
8403eb4704
[apps] In consexpr char *, empty layouts should be inserted using /x11
2019-04-12 15:16:51 +02:00
Léa Saviot
646931b3b5
[text_area] Fix Text::Position use with unicode
...
A glyph offset is not equivalent to a code point offset since a code
point can be several glyphs long.
2019-04-12 15:16:51 +02:00
Léa Saviot
eb80005bde
[apps] Calling draftTextLength should be done only if text field is editing
2019-04-12 15:16:51 +02:00
Léa Saviot
7020ecef57
[apps/escher] Rename cursorTextLocation as cursorLocation
2019-04-12 15:16:51 +02:00
Léa Saviot
43031928c3
Remove max/min inline from KDCoordinate header
2019-04-12 15:16:51 +02:00
Léa Saviot
f43170e7cf
[apps] Remove compilation warning about unused variable
2019-04-12 15:16:51 +02:00
Léa Saviot
b6eb663f53
[ion/kandinsky] Move unicode to ion
2019-04-12 15:16:51 +02:00
Léa Saviot
5142c071df
[escher] Fix text inputs so they use UTF8
2019-04-12 15:16:51 +02:00
Léa Saviot
63d7155376
Remove Ion::Charset
2019-04-12 15:16:50 +02:00
Romain Goyet
4f2c7a3763
[build] Update the i18n processing to fit the out-of-tree build
2019-03-06 15:00:59 +01:00
Romain Goyet
4f1d74f44b
[build] Use an out-of-tree build
2019-03-06 15:00:59 +01:00
Ruben Dashyan
0943406263
Fix HistoryViewCell and ScrollableExactApproximateExxpressionsCell margins issue
...
Remove all margins from those cells.
Rather add margins to their respective subviews:
- ScrollableExpressionView
- ScrollableExactApproximateExpressionsView.
As a notable consequence, the distance in HistoryViewCell between its
subviews becomes 10 instead of 5.
In passing, replace
- Metric::HistoryHorizontalMargin = 10
- ScrollableExactApproximateExpressionsView::k_digitHorizontalMargin = 10
- HistoryViewCell::k_digitVerticalMargin = 5
- ScrollableExactApproximateExpressionsCell::k_margin = 5
by
- Metric::CommonSmallMargin = 5
- Metric::CommonLargeMargin = 10.
2019-02-18 16:49:58 +01:00
Ruben Dashyan
08e8bf0eeb
[escher] Implement ScrollView::minimalSizeForOptimalDisplay including margins
...
Remove from derived classes:
- apps/calculation/scrollable_expression_view
- apps/code/consol_line_cell
- apps/shared/scrollable_exact_approximate_expressions_view
- escher/layout_field
- escher/table_view
- escher/text_field
2019-02-18 16:49:58 +01:00
Ruben Dashyan
faae55eb51
[escher/scroll_view] Replace setShowsIndicators by setDecoratorType
2019-02-18 16:49:58 +01:00
Léa Saviot
a021af46fe
[apps/code] Hide the sandbox between script importations
2019-02-06 11:45:03 +01:00
Léa Saviot
4a8c0a6bd0
[apps/code] Do not change the responders in autoImportScript if sandbox
...
This fixes the following scenario: create a script that draws at
importation (for instance, add "squares()" at the end of squares.py) and
execute this script. The sandbox is displayed but events are handled by
the underneath text field, thus leading to the display of the variable
box and other bugs.
2019-02-06 11:45:03 +01:00
Léa Saviot
0a5290d5a6
[apps/code] Fix MenuController::willExitResponderChain
...
It called textFieldDidAbortEditing, which called setFirstResponder,
which could clash with another setFirstResponder higher in the call
tree.
Scenario: build with an update popup, create a new script, edit its name
with an unvalid name and press the Power key while editing. When
powering on the device again, the first responder is not the popup even
though it is displayed, and pressing OK does not dismiss it.
2019-01-21 14:23:50 +01:00
Léa Saviot
1b78f03219
[apps/code] Comment the non support for upper cases in script names
2019-01-21 13:39:59 +01:00
Léa Saviot
f392ca8063
[apps/code] More details in NonCompliantName warning
2019-01-21 13:39:59 +01:00
Léa Saviot
1994e716bf
[i18n] Change Message name
2019-01-21 13:39:59 +01:00
Léa Saviot
282feac8a1
[apps/code] Do not allow script names starting with a number.
2019-01-21 13:39:59 +01:00
Léa Saviot
fbb1fbd138
[apps/code] Handle nullptr prompt text in input
2019-01-10 11:42:05 +01:00
Léa Saviot
f7f77ef9f7
[apps/code] When OK or EXE on empty python input loop, stop the input
2019-01-10 11:42:05 +01:00
Léa Saviot
c4bd55ef08
[apps/code] Clean ConsoleController::printText
2019-01-10 11:42:05 +01:00
Léa Saviot
177373c5af
[apps/code] Handle carriage returns in the input text
2019-01-10 11:42:05 +01:00
Léa Saviot
2d4d92090c
[apps/code] Inline code in console_store
2019-01-10 11:42:05 +01:00
Léa Saviot
17e7d36009
[apps/code] If EPSILON_GETOPT, auto import scripts
2019-01-09 16:13:46 +01:00
Léa Saviot
1c306658ce
[apps/code] Fix Python environment loading order
2019-01-09 16:13:46 +01:00
Léa Saviot
4f4ae4e0f7
Merge branch 'master' into python_turtle
2019-01-08 14:32:43 +01:00
Léa Saviot
58f94f5e5f
[apps/code] Check that app can be exited before switching to DFU
...
This fixes the following crash: create a script which contains only
"input()". Execute it, then while in the input, plug in the calculator.
When un-plugging it, the device crashes.
2019-01-07 13:36:01 +01:00
Léa Saviot
1782326ed8
[apps/code] Clean ConsoleController code
2019-01-07 13:36:01 +01:00
Léa Saviot
33072eb9b1
[apps/code] Add some comments
2019-01-07 13:36:01 +01:00
Léa Saviot
8830821d0e
[apps/code/python] Inline and indent some code
2019-01-07 13:36:01 +01:00
Léa Saviot
9b07f1936e
[apps/code] Squares script template: start by resetting the turtle
2019-01-03 15:28:55 +01:00
Léa Saviot
384fa04798
[apps/code] Change the default scripts: squares instead of factorial
2018-12-27 17:21:10 +01:00
Léa Saviot
03f300a754
[python/turtle] Add showturtle and hideturtle to the toolbox
2018-12-27 17:09:45 +01:00
Léa Saviot
df2b9c4d81
[escher/apps] Get children count via template in ToolboxMessageTree::Node
2018-12-21 13:29:32 +01:00
Léa Saviot
4b306791c0
[python/turtle] Turtle::m_drawn is false if sandbox not displayed
...
This way, Turtle::draw() and erase() are more symetrical and no not
perform themselves if the turtle is already drawn / erased.
2018-12-18 12:05:46 +01:00
Léa Saviot
ed19d19070
Merge branch 'master' into python_turtle
2018-12-17 15:49:46 +01:00
Léa Saviot
101370c507
[escher] Change ToolboxMessageTree constructors
...
To simplify ToolboxMessageTree cosntruction
2018-12-17 15:27:38 +01:00
Léa Saviot
62de89ceba
[apps/code] Fix 'blue', 'red', ... python command insertion
...
The 'blue' command would be stripped and become ''.
2018-12-17 14:25:31 +01:00
Léa Saviot
b3c11f2425
[apps/code] Put turtle module higher in Python toolbox
2018-12-17 13:58:13 +01:00
Léa Saviot
b058b023db
[apps/code] Add turtle functions in the toolbox catalog
2018-12-17 13:58:13 +01:00
Léa Saviot
8a3aa1ab08
[apps/code] Add turtle functions in th python toolbox
2018-12-17 11:57:40 +01:00