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
0e0b49acce
[apps/calculation] Remove HistoryViewCell horizontal margins
2019-02-18 16:49:58 +01:00
Ruben Dashyan
fd654d1c79
[escher/scroll_view] Remove setColorsBackground
...
Introduced in commit 37da7b95a to avoid screen tearing.
Not necessary anymore since commit 0e9092d2e .
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
Ruben Dashyan
eb17334050
[escher/scroll_view] New Arrow/BarDecorator inherit from Decorator
2019-02-18 16:49:58 +01:00
Ruben Dashyan
1e958717fb
[escher/scroll_view] Rename m_indicatorThickness to m_barsFrameBreadth
2019-02-18 16:49:58 +01:00
Ruben Dashyan
c02d44988b
[escher/scroll_view] New ScrollView::Decorator class
...
Containing the members specific to indicators
2019-02-18 16:49:58 +01:00
Ruben Dashyan
9a46f42a97
[apps/shared] Fix indentation
2019-02-18 16:49:58 +01:00
Ruben Dashyan
8029aab060
[apps/calculation] Remove unecessary namespace
2019-02-18 16:49:58 +01:00
Roman Wueest
93acf0b1a5
Fix german typo in shared.de.i18n
...
"Name" always uppercase.
2019-02-14 10:47:42 +01:00
Roman Wueest
dea27932d4
Fix for German typos in variables.de.i18n
...
"Expressions" was not German so far, I suggest "Ausdruecke"
The correct plural of function in German is "Funktionen".
"Namen" is a noun, and therefore written uppercase in German.
2019-02-12 13:53:24 +01:00
RomanWu
c901b31fde
Fix typo base.de.i18n
...
German translation of "About" should not start with two uppercase letters.
2019-02-12 13:48:57 +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
a7208ade0f
[apps] Container::switchTo returns a bool (false if could not switch)
2019-01-22 14:57:51 +01:00
Léa Saviot
4128ebb864
[escher] In container, check the app can be exited before switching apps
2019-01-22 14:57:51 +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
48bf209f48
[apps/curve_view] Fix zero label position
...
For instance, in Probability app, draw a standard normal law. The zero
was top left of the screen...
2019-01-21 14:23:26 +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
31866aaaf5
[apps/calculation] Fix display of unreal
...
For instance ln(-2) in real mode should display "unreal"
2019-01-21 11:59:20 +01:00
Ruben Dashyan
e4c64e31ee
[apps] WIP: Disable a DUMMY_MAIN option
2019-01-10 17:06:21 +01:00
Léa Saviot
54b8d07ee3
[apps/variable_box_controller] Fix layout memoization
2019-01-10 11:42:05 +01:00
Léa Saviot
35cc26b68a
[apps/variable_box_controller] Shift memoization after deleting item
2019-01-10 11:42:05 +01:00
Léa Saviot
be3ab70e67
[apps/calculation] Do not display approximation if it is unreal
...
Fixes: sqrt(-1) in real complex format, then change complex format, it
then displays unreal = undef
2019-01-10 11:42:05 +01:00
Léa Saviot
027148f376
[apps/calculation] Clean comments
2019-01-10 11:42:05 +01:00
Émilie Feral
b3a8441289
[solver] Fix tests on EquationStore: delta discriminant is counted as a
...
solution
2019-01-10 11:42:05 +01:00
Émilie Feral
c3b335212c
[solver] Add a warning message when a polynomial has no real root
2019-01-10 11:42:05 +01:00
Émilie Feral
8cf6006a58
[solver] I18n: add messages "The polynomial has no real root"
2019-01-10 11:42:05 +01:00
Émilie Feral
4ccf1f08a9
[solver] Delta discriminant is counted as a solution to clear the code
2019-01-10 11:42:05 +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
e2ac56abc6
[apps/curve_view] Fix grid lines not drawn due to pixel to float error
2019-01-10 11:42:05 +01:00
Léa Saviot
9639469761
[apps/curve_view] Fix drawGridLines that drew the opposite axis
2019-01-10 11:42:05 +01:00
Léa Saviot
869e534b4b
[apps] MAke some InteractiveCurveViewRangeDelegate methods const
2019-01-10 11:42:05 +01:00
Léa Saviot
5d1ef0f3f0
[apps/sequence] Use first ranks when computing graph range
...
Put two sequences u(n+1)=u(n) and v(n+1) = v(n), u(100) = 50, v(50) = 8.
Basic settings computed the x range as [0,10] before, now it is
[50,110].
2019-01-10 11:42:05 +01:00
Léa Saviot
6720ad7b38
[apps] Rename interestingXRange as interestingXHalfRange
2019-01-10 11:42:05 +01:00
Léa Saviot
17a9388623
[apps/sequence] Clean GraphController
2019-01-10 11:42:05 +01:00
Léa Saviot
4d1114ef63
[apps/curve_view] Increase numberOfSignificant digits when needed
...
Labels might be rounded to the same value (for example, in Probability,
draw a normal law with mu = 100000 and sigma = 0.1), in which case we
need to display extremal labels only, with increased number of
significant digits.
2019-01-10 11:42:05 +01:00
Léa Saviot
460b49010c
[apps/curve_view] Do not draw the 0 label if the axis is floating
...
The 0 is represented by the other axis
2019-01-10 11:42:05 +01:00
Léa Saviot
37117ed7e7
[apps/curve_view] Do not draw extremal Y label if it overlaps X labels
2019-01-10 11:42:05 +01:00
Léa Saviot
718160b964
[apps] Draw grid lines in bold and light colors in curve_view
2019-01-10 11:42:05 +01:00
Léa Saviot
5d7a7c7371
[apps/curve_view] Make drawGridLines private
2019-01-10 11:42:05 +01:00
Léa Saviot
69105572ef
[apps] Change axes drawing order in curve views
2019-01-10 11:42:05 +01:00
Léa Saviot
335264e944
[apps] Typo: drawAxes is now drawAxis
2019-01-10 11:42:05 +01:00