Émilie Feral
bbb9e83703
[apps/calculation] Fix and add tests
2020-02-12 15:13:23 +01:00
Émilie Feral
551e4998f4
[apps/calculation][apps/solver][poincare] Simplify sign =/≈ computation
...
between outputs in Calculation/Solver
2020-02-12 15:13:23 +01:00
Émilie Feral
c2540a1d8a
[apps/calculation] Calculations now hold 4 texts: input, exact output
...
and 2 approximate outputs - one with the maximal number of significant
digits and one with the number of significant digits asked by the user.
This enables to find the approximate output without going through the
approximation routine again.
2020-02-12 15:13:23 +01:00
Ruben Dashyan
c4f112e5aa
[apps/calculation/calculation] Do not approximate approximateOutput again
2020-02-12 15:13:23 +01:00
Émilie Feral
a82ff2b703
[apps/calculation] HistoryController: in historyViewCellDidChangeSelection,
...
limit the whole table reloading to cases where the cell height did
actually change to avoid useless blinking
2020-02-12 15:13:22 +01:00
Émilie Feral
71de56f87a
[apps/calculation] HistoryViewCell: fix setHighlighted to reload
...
subviews highlight
2020-02-12 15:13:22 +01:00
Émilie Feral
b39b8da036
[apps/calculation] HistoryViewCell: prevent from selecting ellipsis
...
suview if it not visible
2020-02-12 15:13:22 +01:00
Émilie Feral
a39ca58470
[apps/calculation] HistoryViewCell: fix first responder. The first
...
responder is the HistoryViewCell when the ellipsis subview is selected
2020-02-12 15:13:22 +01:00
Émilie Feral
767d1654cc
[apps/calculation] HistoryViewCell: select the right expression of
...
output when coming from ellipsis subview
2020-02-12 15:13:22 +01:00
Émilie Feral
39dbb7d68c
[apps/calculation] Fix relayouting when highlighted cell changed
...
This fixes the following scenario: add "1.2" 5 times, go up three times,
and down three times, the last cell was not correctly relayout.
2020-02-12 15:13:22 +01:00
Émilie Feral
bbe39aac14
[apps/calculation] HistoryController: display additional results pop-up
...
when handling OK/exe on the ellipsis view
2020-02-12 15:13:22 +01:00
Émilie Feral
7d0a1cd0b2
[apps/calculation] HistoryViewCell: enable selecting the ellipsis
2020-02-12 15:13:22 +01:00
Émilie Feral
9a97fc01b2
[apps/calculation] HistoryViewCell: m_expandedCalculation memoizes true
...
only when the calculation is actually expanded (when the output is
selected and the display output is ExactApproximateToggle)
This avoid blinking when changing input/output selection
2020-02-12 15:13:22 +01:00
Émilie Feral
f276a88e79
[apps/calculation] HistoryViewCell: display ellipsis view when
...
highlighted
2020-02-12 15:13:22 +01:00
Émilie Feral
b56cd8b012
[escher] Metric: add EllipsisCellWidth. This will be soon used by
...
Calculation::HistoryCell
2020-02-12 15:13:22 +01:00
Émilie Feral
251db5b60e
[apps/shared][apps/calculation] Change class names:
...
ScrollableInputExactApproximateExpressionsCell -->
ScrollableThreeExpressionsCell
AbstractScrollableExactApproximateExpressionsView -->
AbstractScrollableMultipleExpressionsView
ScrollableExactApproximateExpressionsView -->
ScrollableTwoExpressionsView
ScrollableInputExactApproximateExpressionsView -->
ScrollableTwoExpressionsCell
2020-02-12 15:13:22 +01:00
Émilie Feral
87e4836196
[apps/calculation][apps/shared]
...
AbstractScrollableExactApproximateExpressionsView children classes
reload scroll after reloading the subview selection when entering the
responder chain and when cell becomes first responder. We don't reload
scroll when setting content of cells as this is done every time we
relayout - when scrolling in the table for instance.
2020-02-12 15:13:22 +01:00
Émilie Feral
56319ef275
[apps/shared] AbstractScrollableExactApproximateExpressionsView can hold up to
...
three expressions but no more BurgerMenuView.
ScrollableExactApproximateExpressionsView and
ScrollableInputExactApproximateExpressionsView inherit from it.
2020-02-12 15:13:22 +01:00
Émilie Feral
3de0ee7f98
[apps/calculation] ExpressionWithEqualSignView inherits from
...
ExpressionView instead of composing
This is useful for future change on
ScrollableExactApproximateExpressionView
2020-02-12 15:13:22 +01:00
Léa Saviot
88ab0e686c
[apps] Less operations in willExitResponderChain if exiting app
...
If nextFirstResponder is nullptr, it means we are exiting the app, so
there is no need to relayout, reselect, ...
We did it bbefore because a long time ago, we used to keep all apps side
by side so they had to be thouroughly cleaned when exiting
2020-02-12 15:13:22 +01:00
Léa Saviot
5e45a60f99
[apps/settings] Fix selection glitch
...
Scenario: Go to the Result format submenu of Settings. Modify the
significant figures with a wrong value (for instance, "7::"), press OK
then 0 -> he first row is selected, as well as the last row
2020-02-12 15:13:22 +01:00
Léa Saviot
19435687d5
[apps/settings] Coding style
2020-02-12 15:13:22 +01:00
Léa Saviot
b7e177865a
[apps/code] Fix prompt after input
2020-02-12 15:13:22 +01:00
Léa Saviot
3dcb40b5d4
[apps/code] Do not call interrupt in printText
2020-02-12 15:13:22 +01:00
Léa Saviot
1dacd71acb
[apps/code] Remove unneeded arguments
2020-02-12 15:13:22 +01:00
Léa Saviot
c6c3e3f340
[apps/code] Hide prompt when running script
2020-02-12 15:13:22 +01:00
Léa Saviot
f47f1f0543
[apps/code] Refresh view in printText
2020-02-12 15:13:22 +01:00
Léa Saviot
f20bb1fcf2
[apps/code] Display the console before running auto-imported script
2020-02-12 15:13:22 +01:00
Léa Saviot
a5bf4b68fa
[apps/code] Remove duplicate i18n
2020-02-12 15:13:22 +01:00
Léa Saviot
d5a18fcf13
[apps/code] Add time module in the toolbox
2020-02-12 15:13:22 +01:00
Léa Saviot
200e542a96
[apps/code] Add ion module in toolbox
2020-02-12 15:13:22 +01:00
Léa Saviot
8742ea9d25
[apps/code/i18N] Alphabetical rearrangement
2020-02-12 15:13:22 +01:00
Émilie Feral
373409b50e
[apps/regression] Fix test compilation
2020-02-12 15:13:22 +01:00
Émilie Feral
60048cb9a9
[poincare] Create a ContextWithParent that implements expressionTypeForIdentifier
2020-02-12 15:13:22 +01:00
Émilie Feral
c629cb66ba
[apps/calculation] Calculation: don't memoize the display in height
...
computation. It has to be updated everytime an exception is raised and
this was forgotten.
2020-02-12 15:13:22 +01:00
Émilie Feral
8deb81b8c2
[apps/calculation] CalculationStore: Equal and Store node are always at
...
the root, no need to recursively check their presence
2020-02-12 15:13:22 +01:00
Émilie Feral
0c19b54365
[apps/calculation] Do not display additional results for Equal or Store
...
expressions
2020-02-12 15:13:22 +01:00
Émilie Feral
2a37fa4447
[apps/calculation] ComplexListController: change the way the
...
Complex model parameters are computed.
Sometimes, approximation without simplification doesn't not give the
same results as approximation after simplification. As we decided to
display the additional results from an approximation without
simplifcation (done in Expression::hasDefinedComplexApproximation), we
compute the model parameters the same way (to ensure that both
parameters are defined)
2020-02-12 15:13:21 +01:00
Émilie Feral
8d7eebbf0e
[apps/calculation] Calculation: fix variable confusion
2020-02-12 15:13:21 +01:00
Léa Saviot
a3a1f86f8d
[apps] Add context parameter to fix tests
2020-02-12 15:13:21 +01:00
Léa Saviot
9d6bab092f
[poincare/parser] Identifier is not already function -> symbol
...
We check the context: if an identifier is already a function, we
interpret it as such, otherwise it is a symbol.
This way, in the Equation app, x(x+1) is interpreted as x*(x+1)
2020-02-12 15:13:21 +01:00
Léa Saviot
756eeeb2d8
[poincare/parser] Add context
2020-02-12 15:13:21 +01:00
Émilie Feral
158a45e94d
[apps/shared] AbstractScrollableExactApproximateExpressionsView: let the
...
child class decides which subview to select
2020-02-12 15:13:21 +01:00
Émilie Feral
d61336936e
[apps/shared] Create a class Dots to share dots masks between CurveView
...
and RoundCursorView. Use the same dot for illustrations of additional
results in Calculation app and Function app
2020-02-12 15:13:21 +01:00
Émilie Feral
ba159de21d
[apps/calculation] Trigonometry additional results are displayed if the
...
input OR the output is a cosine/sine
2020-02-12 15:13:21 +01:00
Émilie Feral
f5523fe01c
[apps] Slightly change the message of Empty variable box to avoid text
...
cropping
2020-02-12 15:13:21 +01:00
Émilie Feral
60cac1f928
[apps] Add borders to VariableBoxEmptyController
2020-02-12 15:13:21 +01:00
Émilie Feral
3fa4e0838a
[escher] Create a class Bordered instead of BorderedCell: this enable
...
non-cell view to use it as well
2020-02-12 15:13:21 +01:00
Émilie Feral
398b529811
[apps/calculation][poincare] AdditionalInformationType is determined
...
from both input and output expressions of a Calculation
2020-02-12 15:13:21 +01:00
Émilie Feral
be6f11208f
[apps/calculation] additional_outputs: make a parent class to
...
TrigonometryGraphCell and ComplexGraphCell inheriting from
BorderedCell
2020-02-12 15:13:21 +01:00