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
e0bbc73b8b
[apps/regression] Fix code cleaning
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
Léa Saviot
4e6378fe18
[test/regression] Add a logistic test
2020-02-12 15:13:16 +01:00
Léa Saviot
a8ead6b66e
[apps/regression] Better initialisation of logistic model coefficients
...
It provides a better fit for:
x = {0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0}
y = {5.0, 9.0, 40.0, 64.0, 144.0, 200.0, 269.0, 278.0, 290.0, 295.0}
(coeffs should be {64.9, 1.0, 297.4})
2020-02-12 15:13:16 +01:00
Léa Saviot
3747b5a4b0
[apps/regression] Virtualize only the specialized part of initCoefs
2020-02-12 15:13:16 +01:00
Ruben Dashyan
5787d50a45
Revert "[apps/calculation/edit_expression_controller] Define viewWillAppear"
...
This reverts commit 960736203ff2f816688868e3397d178d931fa3c3.
2020-02-12 15:13:16 +01:00
Émilie Feral
3a19939a64
[apps/regression] Missing ;
2020-02-12 15:13:16 +01:00
Ruben Dashyan
89aa0ac302
[apps/regression/graph_controller] Clean moveCursorHorizontally
2020-02-12 15:13:16 +01:00
Ruben Dashyan
2fb6824947
[apps/shared/interactive_curve_view_controller] Rewrite comment about addMargin
2020-02-12 15:13:16 +01:00
Ruben Dashyan
8cb2b99254
[apps/graph/calculation_graph_controller] Remove handleLeftRightEvent
2020-02-12 15:13:16 +01:00
Ruben Dashyan
7fce83d1dd
[escher/expression_field] Detect whether view's height did change by memoizing the height
...
Such changes used to be detected only when the height was equal to the
maximal allowed value, by detecting whether the height shifted from or
to that maximal value. For that purpose, a boolean was memoized in
InputViewController and in Calculation::EditExpressionController.
2020-02-12 15:13:16 +01:00
Ruben Dashyan
b832a9e9f4
[apps/calculation/edit_expression_controller] Define viewWillAppear
2020-02-12 15:13:16 +01:00
Ruben Dashyan
b624e47ccb
[apps/calculation/edit_expression_controller] Remove dummy viewDidDisappear
...
HistoryController does not override ViewController's default
viewDidDisappear.
2020-02-12 15:13:15 +01:00
Ruben Dashyan
7a49e23e3b
[apps/calculation] Factor HistoryController::reload
2020-02-12 15:13:15 +01:00
Émilie Feral
e550712ccc
[apps/settings] Separation is always below the CellWithSeparator
2020-02-12 15:13:15 +01:00
Émilie Feral
f7fc8da94d
[apps/settings] Use a MessageTableCellWithGaugeWithSeparator in the main
...
controller to mimic two tables
2020-02-12 15:13:15 +01:00
Émilie Feral
953c9dfe64
[apps/settings] Create a parent class CellWithSeparator to
...
MessageTableCellWithEditableTextWithSeparator for future factorization
2020-02-12 15:13:15 +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
Émilie Feral
b3d45833d0
[apps/settings] Add a menu "Font size" in settings
2020-02-12 15:13:15 +01:00
Émilie Feral
d48006f994
[apps/settings] Add messages about font sizes
2020-02-12 15:13:15 +01:00
Émilie Feral
39a6fdaf1c
[apps/settings] MainController: get rid of magic numbers
2020-02-12 15:13:15 +01:00
Émilie Feral
4a41ec0fda
[apps] GlobalPreferences: add font (Large or Small)
2020-02-12 15:13:15 +01:00
Léa Saviot
1434158bee
[apps/graph] Faster curve navigation after some time
...
If the user presses the LEft/Right keys for a long time, the cursor will
move faster.
2020-02-12 15:13:15 +01:00
Léa Saviot
0630ae55c7
[apps/escher] Force expressionField relayout when size changed
...
Scenario: in Calculations and in Graph, edit the layout field by adding
many parentheses. When the layout field has maximal height but the
parentheses are bigger than it, ther is a margin that appears at the
bottom, because we did not relayout the layout field to optimize
redrawing. We need to force the relayout, otherwise as the layout field
stays we the same frame, the relayouting is not properly done.
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
310e1ab829
[apps/calculation/edit_expression_controller] Make ContentView View-specific methods private
2020-02-12 15:13:15 +01:00
Léa Saviot
a233b02623
[apps/regression] Better coef initialisation for trigonometric_model
...
It improves the trigonometric fit of
x = {0.0, 0.975, 1.97, 2.945, 3.971, 4.887, 5.924, 6.964, 7.979, 8.974, 9.998};
y = {-23.784, -23.322, -28.322, -18.422, -4.813206, 7.146241, 16.631, 16.632, 9.209189, -6.050863, -19.659};
2020-02-12 15:13:15 +01:00
Léa Saviot
0055a59c75
[apps/banner_view] Fix minimalSizeForOptimalDisplay
...
Should not use m_frame as it may not be set properly. By default, a
banner view wants to take the whole screen width
This fixes the following scenario :
Draw the polar curve r=12. When navigating from the tab to the graph,
the curve was visibly redrawn because the banner view height was not
computed properly.
2020-02-12 15:13:15 +01:00
Ruben Dashyan
491a93d8f1
[apps/calculation/edit_expression_controller] Access view more directly
2020-02-12 15:13:15 +01:00
Ruben Dashyan
59e6c9d324
[apps/calculation/edit_expression_controller] view() does not return nullptr
2020-02-12 15:13:15 +01:00
Ruben Dashyan
227c9a8d68
[apps/calculation/edit_expression_controller] Inline view() in header
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
Ruben Dashyan
a3053acac4
[apps/shared/expression_model] Add TODOs for later
2020-02-12 15:13:15 +01:00
Ruben Dashyan
c3cf5c1ef4
Rename UCodePointUnknownX to UCodePointUnknown
2020-02-12 15:13:15 +01:00
Ruben Dashyan
3183ca7d7e
Replace Poincare::Function unknown earlier (in Context)
2020-02-12 15:13:15 +01:00
Ruben Dashyan
a52fd2c697
[apps/graph/graph_view] Do not draw the functions with undef expression
2020-02-12 15:13:15 +01:00
Ruben Dashyan
34aa27ea08
[apps/shared/continuous_function] Simplify templatedApproximateAtParameter
2020-02-12 15:13:15 +01:00
Ruben Dashyan
5750d00574
[apps/shared] Remove redundant call to isCircularlyDefined
...
ExpressionModel::expressionReduced does already call isCircularlyDefined
and returns undef if true.
The isCircularlyDefined method is then made private.
2020-02-12 15:13:15 +01:00
Ruben Dashyan
9480bcacd5
[apps/*/expression_model] Make expressionAddress private
2020-02-12 15:13:15 +01:00