Commit Graph

10148 Commits

Author SHA1 Message Date
É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
Émilie Feral
aabe663376 [poincare] Number: "12242" is parsed as a BasedInteger instead of a
Rational
2020-02-12 15:13:19 +01:00
Émilie Feral
ce85fa2185 [poincare] BasedInteger: fix multiplication sign between 0x23A and π 2020-02-12 15:13:19 +01:00
Émilie Feral
e72ba3d064 [poincare] Number: fix number to handle BasedInteger case 2020-02-12 15:13:19 +01:00
Émilie Feral
a1b2cbb0a9 [ion] Unicode: clean warning 2020-02-12 15:13:19 +01:00
Émilie Feral
54c55d130a [poincare] Tokenize/Parse BasedInteger 2020-02-12 15:13:19 +01:00
Émilie Feral
7c2ef5847b [poincare] Add class BasedInteger 2020-02-12 15:13:19 +01:00
Émilie Feral
fef07ee239 [poincare] Integer: add methods to serialize/layout/build in hexadecimal and binary 2020-02-12 15:13:19 +01:00
Émilie Feral
49d52f293e [calculation] First version of the TrigonometryListController 2020-02-12 15:13:19 +01:00
Émilie Feral
83a29a822b [calculation] Improve ComplexListController 2020-02-12 15:13:19 +01:00