Émilie Feral
73a8ec24f2
[calculation] Revert "HistoryViewCell: remove useless m_expandedCalculation"
...
When scrolling up and down, only 'setCalculation' is called by
'willDisplayCellForIndex' - and not 'cellDidSelectSubview'. So a new cell
should be informed of the expanded state in 'setCalculation'.
2020-02-12 15:13:20 +01:00
Émilie Feral
80d8e8eead
Coding style
2020-02-12 15:13:20 +01:00
Émilie Feral
c47394ae22
[calculation] (revert previous commit) HistoryViewCell: setCalculation
...
should decide which subviews is displayed.
'setCalculation' is the only method called when scrolling (when using
a new cell for a calculation) so it should take into accound whether the
cell is expanded or not.
This fixes the bug: when pushing several calculations (which expand) in
the store, scrolling up and down corrupts the cells contents
2020-02-12 15:13:20 +01:00
Émilie Feral
c12304a00e
[calculation] Remove outdated comment
2020-02-12 15:13:20 +01:00
Émilie Feral
6a2f11ef1b
[escher] ExpressionTableCell & ExpressionTableCellWithExpression:
...
reloadScroll when displaying cell
2020-02-12 15:13:20 +01:00
Émilie Feral
8a07d335a3
[calculation] Additional Ouputs: speed up scrolling in
...
ExpressionsListController by memoizing layouts. Avoid glitering
2020-02-12 15:13:20 +01:00
Émilie Feral
74b5ca2f12
[escher] ExpressionTableCellWithExpression: avoid to add margins around
...
the accessory subview twice
2020-02-12 15:13:20 +01:00
Émilie Feral
3806a78141
[escher] ExpressionTableCellWithExpression: make the accessory
...
expression scrollable and set it as the first responder
2020-02-12 15:13:20 +01:00
Émilie Feral
711c4a6554
[escher] ScrollableExpressionView: fix background color
2020-02-12 15:13:20 +01:00
Émilie Feral
4bd3dfd542
[escher] TableCell: the subviews are layoutted horizontally or
...
vertically. We add an option to decide which subviews should overlap on
top of the other if there is not enough space
2020-02-12 15:13:20 +01:00
Émilie Feral
5974149162
[escher] Metric: change name TableCellLabelTopMargin to
...
TableCellHorizontalMargin and add TableCellHorizontalMargin
2020-02-12 15:13:20 +01:00
Émilie Feral
d0e2e71e10
[escher] TableCell: fix layoutSubviews
2020-02-12 15:13:20 +01:00
Émilie Feral
816e17df66
[escher] TableCell: factorize code
2020-02-12 15:13:19 +01:00
Émilie Feral
9312d2bd65
[escher] ExpressionTableCell is composed of a ScrollableExpressionView
...
instead of an ExpressionView
2020-02-12 15:13:19 +01:00
Émilie Feral
9301dd510a
[calculation][escher] Move ScrollableExpressionView from apps/calculation/ to
...
escher/
2020-02-12 15:13:19 +01:00
Émilie Feral
70ce133b4c
[calculation] Change name: simple_list_controller -->
...
expressions_list_controller
2020-02-12 15:13:19 +01:00
Émilie Feral
7abe8e2e4d
[calculation] ScrollableInputExactApproximateExpressionsCell: margins
...
are controlled by the scrollview instead of TableCell in order to
display arrows indicator correctly
2020-02-12 15:13:19 +01:00
Émilie Feral
439c85eda5
[escher] TableCell: make the label margin optional
2020-02-12 15:13:19 +01:00
Émilie Feral
2e3a904b9b
[escher] TableCell: fix layoutSubview to avoid letting subviews overflow bounds()
2020-02-12 15:13:19 +01:00
Émilie Feral
10c906e5e2
[shared] AbstractScrollableExactApproximateExpressionsView: when the
...
left subview is selected, reload the scroll to display the left view
2020-02-12 15:13:19 +01:00
Émilie Feral
acd9e63cbd
[shared] AbstractScrollableExactApproximateExpressionsView: fix
...
setDisplayLeft and setDisplayCenter to re-layoutSubviews
2020-02-12 15:13:19 +01:00
Émilie Feral
7e96ccf5a6
[shared] Typo
2020-02-12 15:13:19 +01:00
Émilie Feral
c6efb99e05
[calculation] ScrollableInputExactApproximateExpressionsCell: select the
...
left expression when the cell becomes first responder
2020-02-12 15:13:19 +01:00
Émilie Feral
d8d0f33b1b
[calculation] ExpressionWithEqualSignView: add a margin between
...
expression and equal sign
2020-02-12 15:13:19 +01:00
Émilie Feral
85ba8f8076
[calculation] RationalListController: display MixedFraction layout
2020-02-12 15:13:19 +01:00
Émilie Feral
ef3e33f343
[poincare] Implement Integer::CreateMixedFraction
2020-02-12 15:13:19 +01:00
Émilie Feral
40996deb0a
[calculation] RationalListController: use
...
Integer::CreateEuclideanDivision to build layout
2020-02-12 15:13:19 +01:00
Émilie Feral
df6817547f
[poincare] Integer: create 2 methods 'CreateMixedFraction' and
...
'CreateEuclideanDivision' that build expected expressions from 2
integers
2020-02-12 15:13:19 +01:00
Émilie Feral
6af04edf32
[poincare] Expression::additionalInformationType: return Rational for
...
all forms of type [±12]/[±32]
2020-02-12 15:13:19 +01:00
Émilie Feral
ae438ca546
[poincare] DivisionQuotient, DivisionRemainder: add method to reduce on
...
Integers
2020-02-12 15:13:19 +01:00
Émilie Feral
de2046fea8
[poincare] BasedInteger: fix multiplication sign with Decimal integer
2020-02-12 15:13:19 +01:00
Émilie Feral
280f20c93c
[poincare] Fix remainder of division by 0: rem(12,0) should be undefined
...
and not infinity
2020-02-12 15:13:19 +01:00
Émilie Feral
f47a18bf4a
[calculation] Remove useless includes
2020-02-12 15:13:19 +01:00
Émilie Feral
df47a355a2
[calculation] HistoryController: display RationalListController when
...
clicking on a burger of a Rational input
2020-02-12 15:13:19 +01:00
Émilie Feral
54f1984cf0
[calculation] Create a class RationalListController
2020-02-12 15:13:19 +01:00
Émilie Feral
47e7a8407b
[calculation] WIP: add messages for RationalListController
2020-02-12 15:13:19 +01:00
Émilie Feral
f94727b62d
[calculation] HistoryController: factorize code
2020-02-12 15:13:19 +01:00
Émilie Feral
1dae85694f
[calculation] IllustratedListController: empty calculation store before
...
reloading it
2020-02-12 15:13:19 +01:00
Émilie Feral
847eb8d907
[calculation] Create a class ListController to factorize
...
IllustratedListController and SimpleListController
2020-02-12 15:13:19 +01:00
Émilie Feral
714e5f12d9
[calculation] WIP: display IntegerListController when clicking on a
...
burger view of an integer input
2020-02-12 15:13:19 +01:00
Émilie Feral
51d5fc0473
[calculation] AdditionalOutputs: Create a IntegerListController
2020-02-12 15:13:19 +01:00
Émilie Feral
8d40ef8ccb
[calculation] Add sketch messages for IntegerListController
2020-02-12 15:13:19 +01:00
Émilie Feral
80100b62af
[calculation] Additional outputs: Create a class SimpleListController.
...
Future IntegerListController and RationalListController will inherit
from it
2020-02-12 15:13:19 +01:00
Émilie Feral
2cae1cdf50
[poincare] Integer: factorize overflown integer handling in
...
serialization methods
2020-02-12 15:13:19 +01:00
Émilie Feral
7209265254
[poincare] Parser: forbid parsing 0xABCF as 0xABC*F
2020-02-12 15:13:19 +01:00
Émilie Feral
00e8af789b
[poincare] BasedInteger: use dot mutliplication sign around
...
binary/hexadecimal integers
2020-02-12 15:13:19 +01:00
Émilie Feral
a900e39cf3
[poincare] Parser: fix sequence parsing
2020-02-12 15:13:19 +01:00
Émilie Feral
b875d02fdf
[poincare] Parsing: prevents from tokenizing "0b" "0x"
2020-02-12 15:13:19 +01:00
Émilie Feral
30c4e01737
[poincare] Fix and add tests about BasedInteger
2020-02-12 15:13:19 +01:00
Émilie Feral
1f3dc95a0f
[poincare] Fix AdditionalInformation on Integer and Rational
2020-02-12 15:13:19 +01:00