Commit Graph

4461 Commits

Author SHA1 Message Date
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
Ruben Dashyan
bdb29b9bf9 [apps/regression/graph_controller] Remove setRoundCrossCursorView's parameter
Get it directly from model
2020-02-26 09:50:43 +01:00
Ruben Dashyan
b8b6e4b5b8 [apps/regression/graph_controller] Update model before setting cursor view 2020-02-26 09:50:43 +01:00
Ruben Dashyan
4f279f15da [apps/regression/graph_controller] Inline selectRegressionCurve in header 2020-02-26 09:50:43 +01:00
Ruben Dashyan
436b934f76 [apps/regression/graph_controller] selectRegressionCurve does not update the cursor view
selectRegressionCurve is only called from GoToParameterController and is
part of the GraphController's API for updating the model. It should not
update the view. viewWillAppear does.
2020-02-26 09:50:43 +01:00
Ruben Dashyan
7e6a601af0 [apps/regression/graph_controller] Inline selectRegressionCurve in moveCursorVertically
In the graph controller, selectRegressionCurve is only called at one
place (in moveCursorVertically). In general, setRoundCrossCursorView is
called and *m_selectedDotIndex is updated. There is no reason at all to
do things differently.

Though selectRegressionCurve is called from GoToParameterController.
2020-02-26 09:50:43 +01:00
Ruben Dashyan
d13c243876 [apps/regression/graph_controller] Simplify viewWillAppear 2020-02-26 09:50:43 +01:00
Ruben Dashyan
7b00072ccf [apps/regression/graph_controller] Factor m_roundCursorView.setColor in setRoundCrossCursorView 2020-02-26 09:50:43 +01:00
Émilie Feral
38d02663b4 [build] epsilon_src & epsilon_official_src have to be defined because
they're used by target.simulator.web.mak
2020-02-25 17:37:29 -05: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
Léa Saviot
22afe4df2d [apps/statistics] EXE should open the histogram param controller
The OK button already does it.
2020-02-25 15:15:03 +01:00
Léa Saviot
e5a2208b27 [apps/interactive_curve_view_range] Recompute yRange after setDefault
Scenario : f(x)=8x, scroll to the right until the window range has
changed, then set the preadjustment to default -> the x change had no
impact on the yRange because we did not set the yAuto before doing the
changes.
2020-02-25 15:07:16 +01:00
Léa Saviot
c8537df3b4 [apps/calc] Do not forget to call parent method
Scenario: Open several times the additional outputs menu, there are
drawing problems (multiple stack headers)
2020-02-21 17:04:19 +01:00
Léa Saviot
686e25ec43 [apps/variable_box_controller] Fix expressionLayoutForRecord 2020-02-21 17:03:56 +01:00
Léa Saviot
0a3ce4cade [apps/settings_message_tree] Remove .cpp file 2020-02-21 16:03:07 +01:00
Léa Saviot
750f655b2f [apps] Move SettingsMessageTree in Shared
It is needed in exam_mode_configuration. This way, we can build one app
only
2020-02-21 16:03:07 +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
Émilie Feral
c3d8e09ceb [apps/calculation] Calculation: invalid heights memoization when forcing the
display output
2020-02-20 10:56:11 +01:00
Émilie Feral
a2a47bb8ae [apps/calculation] Additional outputs: dismiss the pop-up before doing
any Poincare computations to optimize the available space in the
Poincare pool
2020-02-20 10:56:11 +01:00
Émilie Feral
99e88df284 [apps/calculation] Additional outputs: Clean cells when the pop-up
disappears to avoid uselessly overloading the Poincare pool
2020-02-20 10:56:11 +01:00
Émilie Feral
94daf465c4 [escher][apps/calculation] Improve ScrollView::scrollToContentRect to
scroll "smartly" when scrolling to a too-big-to-be-displayed rect

This fixes calculation history navigation on big cells (that are bigger
than the displayed table)
2020-02-20 10:56:11 +01:00
Émilie Feral
24d9f37205 [apps/calculation] Clean how cell subtype is selected/
This fixes crashes: indeed, in the way it was done before, we called
scrollToSubviewOfTypeOfCellAtLocation after setting the new selected subtype
and before reloading the data. However, selecting a new subtype might expand
the selected cell which can temper with the cell repartition. If so, we need to
reload the data to be able to call 'selectedCell' for instance.
2020-02-20 10:56:11 +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
f7c38979a1 [apps/var_box] Create dummy layout when the real layout makes pool error 2020-02-20 10:44:19 +01:00
Léa Saviot
52ae25a04c [apps] Use willExitApp parameter in dismissModalViewController
This prevents relayouting and thus accessing to expressions/ayotus
possibly deleted by a pool exception
2020-02-20 10:44:19 +01:00
Émilie Feral
2a03583fe0 [apps/calculation] Reset history cell memoization when reloading the
table. Otherwise, the Poincare pool store useless layouts for cells that
aren't displayed.

This fixes the following issue: input "(transpose([1 2 3 4 5 6][1 2 3 4 5
6])^8", the computation works, clear the history, input the same
calculation again, it fails with a memory error.
2020-02-19 10:34:28 +01:00
Émilie Feral
013f817b35 [apps] Fix i18n to be able to build without settings app in offical
software
2020-02-18 10:11:06 +01:00
Léa Saviot
42125a1f56 [apps/settings] Fix i18n to be able to build without settings app 2020-02-18 10:11:06 +01:00
Léa Saviot
baba9a4ff0 [apps/code] Regroup the "list.*" methods in the toolbox 2020-02-18 10:07:33 +01:00
Léa Saviot
9544f1c961 [apps/eschr] Don't copy an expr when editing it, if it is too long
Scenario: Create a new sequence which is the multiplication of a lot of
imaginary i. Save it (many multiplication sign are added), then try to
edit it again, in linear edition mode: the text overflows the buffer. If
we still copied it, it might get copied until the middle of a code point,
which would make the UTF8Decoder crash afterwards.
2020-02-18 10:06:36 +01:00
Léa Saviot
176d55b7fa [apps/expression_model] Fix text() implementation 2020-02-18 10:06:36 +01:00
Romain Goyet
1353e512fe [apps] Remove dead code 2020-02-17 10:31:24 -05: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
Ruben Dashyan
406549ff08 [apps/math_toolbox] Remove micro- nano- picoliter 2020-02-12 15:13:27 +01:00
Ruben Dashyan
3abb86bcdd [apps/math_toolbox] Remove all Siemens prefixes except milli 2020-02-12 15:13:27 +01:00
Ruben Dashyan
28f7202827 [apps/math_toolbox] Remove all Ohm prefixes except kilo 2020-02-12 15:13:27 +01:00
Ruben Dashyan
57fb47da01 [apps/math_toolbox] Remove tera- giga- mega- kilo- nano- picofarad 2020-02-12 15:13:27 +01:00
Ruben Dashyan
7bbd398491 [apps/math_toolbox] Remove tera- giga= mega- nano- picovolt 2020-02-12 15:13:27 +01:00
Ruben Dashyan
48deee5622 [apps/math_toolbox] Remove all Coulomb prefixes 2020-02-12 15:13:27 +01:00
Ruben Dashyan
444f157b1a [apps/math_toolbox] Remove tera- nano- picowatt 2020-02-12 15:13:27 +01:00
Ruben Dashyan
284207a367 [apps/math_toolbox] Remove tera- giga- micro- nano- picoelectronvolt 2020-02-12 15:13:27 +01:00
Ruben Dashyan
b85d65d037 [apps/math_toolbox] Remove tera- giga- mega- micro- nano- picojoule 2020-02-12 15:13:27 +01:00
Ruben Dashyan
11c65697a0 [apps/math_toolbox] Add hectopascal 2020-02-12 15:13:27 +01:00
Ruben Dashyan
1e1f3b3936 [apps/math_toolbox] Shortcut Pascal menu and remove all prefixes 2020-02-12 15:13:27 +01:00
Ruben Dashyan
63cb3fbcc0 [apps/math_toolbox] Remove tera- giga- mega- micro- nano- piconewton 2020-02-12 15:13:27 +01:00