Commit Graph

11456 Commits

Author SHA1 Message Date
Léa Saviot
3cf80b86d6 [apps/i18n] Fix italian translation typo 2020-07-02 10:23:27 +02:00
Léa Saviot
a4c0903f53 [i18n/pt] Fix typo 2020-06-30 17:24:50 +02:00
Gabriel Ozouf
e78c5c02d3 [apps/calculation] Fixed history scroll
Fixed a bug involving mishandled negative offsets in
CalculationSelectableTableView::scrollToSubviewOfTypeOfCellAtLocation
and cleaned up the function.

Change-Id: I4394ca9dc9748e8b761e7f722e41014d71d3373f
2020-06-30 15:41:56 +02:00
Émilie Feral
cb62747e48 build: Version 14.2.0 2020-06-26 17:48:31 +02:00
Émilie Feral
96c7d84633 [apps/calculation] Factorize code to avoid selecting ellipsis on cell
where ellipsis is not displayed
2020-06-26 17:48:31 +02:00
Émilie Feral
1281a4a508 [apps/calculation] HistoryController: avoid duplicate code when handling
backspace event. Keep the same selected subview.
2020-06-26 17:48:31 +02:00
Émilie Feral
94d3ac9828 [apps/calculation] HistoryController: fix order of actions in Backspace
handle event

This fixes the following bug: input 1/2/3/4/5/6/7/8, OK, OK, input 1,
OK, up, backspace. The selection disappeared.
2020-06-26 17:48:31 +02:00
Émilie Feral
aef804d149 [apps/calculation] HistoryController: avoid 2 calls to
setSelectedSubviewType in tableViewDidChangeSelectionAndDidScroll
2020-06-26 17:48:31 +02:00
Émilie Feral
736833da34 [escher] Typo 2020-06-26 17:48:31 +02:00
Émilie Feral
457fa6a925 [apps/calculation] When EditExpressionController becomes the first
responder, scroll to the bottom of the table (and not the last cell).
Indeed, the last cell might be to big to be displayed and scroll to it
might scroll to its top.

This fixes the following bug: input 1/2/3/4/5/6/7/8, OK, up, down. We
did not scroll to the bottom of the table.
2020-06-26 17:48:31 +02:00
Émilie Feral
1da2f23914 [escher] SelectableTableView: fix delegate notification when
deselecting table view

This fixes the following bug: input 1.2/2, OK, up, down, the exact ouput
is still displayed but should have toggled
2020-06-26 17:48:31 +02:00
Émilie Feral
db331e054a [apps/code] variable_box_controller: avoid unused variable warning when DEBUG=0 2020-06-26 10:47:14 +02:00
Émilie Feral
9508a89a1b [apps/calculation] Missing inclusion 2020-06-26 10:47:14 +02:00
Émilie Feral
0b74dd005d [apps/calculation] SelectableTableView: fix scrollToSubviewOfTypeOfCellAtLocation
When scrolling, the table layout is likely to change and the selected
cell might not been the same.
2020-06-26 10:45:55 +02:00
Gabriel Ozouf
123d5f9076 [apps/calculation] Fixed tall calculation scroll
When displaying a calculation taller than the screen, the output could
be displayed above the screen.
  - type 1/2/3/4/5/6/7/8/9 (the main fraction between the 1 and 2)
  - press UP to select the output
==> The output is still offscreen.

Change-Id: Ic3ed7664ae693d22486f8b2f9f3a8f2324c3d7c9
2020-06-26 09:50:10 +02:00
Gabriel Ozouf
363bf4a620 [apps/calculation] Fixed ellipsis scrolling
When scrolling to a calculation without additional outputs from a
calculation with additional outputs, the ellipsis, though invisible,
would remain selected.

Change-Id: I7408ae004b9374e432ac58361616fa2ecf1550d8
2020-06-25 18:03:29 +02:00
Roberta Rabotti
981c627bc4 [IT]changed Sample standard deviation 2020-06-25 17:15:09 +02:00
Roberta Rabotti
d48f66fdad [IT]chenges graphs 2020-06-25 17:15:03 +02:00
Émilie Feral
bac2949a5e [escher][apps] SelectableTableViewDelegate: add
tableViewDidChangeSelectionAndDidScroll method and implement it for
Calculation::HistoryController

This fixes the following bug: In the calculation application, input 1,
OK, 1/2/3/4/5/6/7/8, OK, up, up, left, down, up. The selection failed.
2020-06-25 13:48:47 +02:00
Léa Saviot
2d1d3ca944 [apps/code] Fix variables loading in the console
The two following scenari display empty variable boxes, when there
should be loaded variables.
1) Open the console, go back to the scripts menu, go back to the
console, open the variable box
2) Open the console, execute mandelbrot, open the variable box
2020-06-25 11:31:01 +02:00
Émilie Feral
ef210f9cff build: Version 14.1.0 2020-06-19 12:10:24 +02:00
Léa Saviot
1045f54633 [apps/code] Fix variables loading in the console
Scenario: execute a script, open the variable box, select a leaf, reopen
the variable box -> it shows empty
2020-06-19 12:10:24 +02:00
Léa Saviot
cf4eaa3d1f [apps/poincare] Use symbolicComputation in recursivelyMatches
This fixes a failed assertion for the scenario:
[3]->x then, in the Equation app, solve x+1->0
2020-06-15 16:20:09 +02:00
Léa Saviot
1f0b3770e3 [apps/code] Fix syntaxic coloration
Scenario: +, -, / operators where no longer properly colored during
script edition.
This was due to the MicroPython update, which changed the lexer tokens
order.
2020-06-15 13:26:32 +02:00
Émilie Feral
1cae01b120 [apps/solver] Equation: handle circularly defined equations 2020-06-15 13:09:03 +02:00
Émilie Feral
1ed97500d0 [ion] Increase stack in DEBUG=1 to avoid breaking the test due to stack
overflow
2020-06-12 14:12:35 +02:00
Émilie Feral
d21c9b0880 [poincare] Expression: clean magic numbers 2020-06-12 13:49:32 +02:00
Léa Saviot
ff3b756080 [apps/console] Fix the script console fetch status cleaning
unloadPythonEnvironment is not called when leaving the app, only after
editing a script, so it did not do what we wanted.
2020-06-11 14:12:50 +02:00
Émilie Feral
dfef134603 [poincare] typo 2020-06-11 12:03:21 +02:00
Émilie Feral
a26dc4be79 [apps/calculation/additional_outputs] Expression::removeUnit can be
called on reduced expression only
2020-06-11 12:02:48 +02:00
Émilie Feral
ad86378a5c [poincare] Unit: -_m should be beautified to -1x_m 2020-06-11 12:02:17 +02:00
Émilie Feral
555db32670 [apps/code] Fix test on variable_box_controller 2020-06-11 11:36:45 +02:00
Léa Saviot
6e6236a651 [poincare/integer] Integer::isExtractable
This factorizes and fixes wrong isExtractable checks
2020-06-10 11:57:41 +02:00
Léa Saviot
bee7441444 [apps/code] Fix an assertion break
Scenario: write a script, execute it in the console and open the
variable box, go back to edition and trigger autocompletion.
2020-06-10 10:49:22 +02:00
Arthur Camouseigt
d7fb5c256c [turtle] Fixed remanent images bug
We now erase the turtle before writing text. This way we can redraw it
on top of it, preventing overlapping and remanent images.

Those scripts are causing issues :
goto(-30,50)
write('coucou')
left(270)
goto(30,50)
write('oui')
-----------
up()
goto(-30,50)
write('coucou')
goto(30,50)
write('oui')

Change-Id: I01a6e5f8308937b5051165548c2046883da587d2
2020-06-10 10:35:13 +02:00
Léa Saviot
1ccb55a16e [apps/code] Fix script importation status
Scenario: Execute the script parabola.py, open the variable box, select
any leaf, enter, open the variable box again -> no variables are loaded
anymore
2020-06-09 15:12:13 +02:00
Léa Saviot
213d3d322d [apps/solver] Fix symbol replacement in equation solving
If the symbol replacement led to an undefined reduce equation, we did
not realize we could try without replacing the symbol.
2020-06-08 17:11:59 +02:00
Léa Saviot
9bd411f405 [apps/solver] Add test about failing equation resolution 2020-06-08 17:10:02 +02:00
Léa Saviot
84e8ac5bec [apps/calculation/i18n] Fix typo 2020-06-05 15:58:28 +02:00
Léa Saviot
9a1ff2bd33 [apps/code] Status at the beginning of a script is one byte long
This saves space + avoids clashes with the NumWorks Workshop when
exchanging scripts
2020-06-05 11:28:12 +02:00
Léa Saviot
d53a16eb91 [ion/storage] Add TODO 2020-06-05 11:02:39 +02:00
Léa Saviot
7699dc9929 [apps/on_boarding] Fix too long i18n 2020-06-05 10:31:58 +02:00
Émilie Feral
97ffab1fc2 build: Version 14.0.0 2020-06-04 14:58:20 +02:00
Émilie Feral
2630d0dee2 [poincare] Change approximation test to work on the device
implementation of libm (hypotf is not as accurate on the device)
2020-06-04 14:58:20 +02:00
Émilie Feral
9556ae3aa4 [poincare] Unit: comparison can rely on the pointer addresses only when
the object are ordered in a table. Otherwise, the compiler is free to
order them as it wants.

This fixes the test on the device: 10_m^2→_mm×_km simplifies to 10×_km×_mm
2020-06-04 14:58:20 +02:00
Émilie Feral
6abc3b8c99 [poincare] Enable to set POINCARE_TREE_LOG from environment variable 2020-06-04 14:58:20 +02:00
Léa Saviot
49e4abb964 [poincare/multiplication] Fix comment 2020-06-04 14:58:20 +02:00
Léa Saviot
72e342e1b1 [apps/curve_view] Fix drawArrow
Compute everything in pixels + fix glitch when zooming on the tip of
arrow(0,0,2,3)
2020-06-04 14:58:20 +02:00
Émilie Feral
2ebad3062c [apps/code] Test: strcpy isn't available on the device 2020-06-04 14:50:10 +02:00
Émilie Feral
fc238f639a [python] Fix test on matplotlib 2020-06-04 14:50:10 +02:00