Commit Graph

7843 Commits

Author SHA1 Message Date
Émilie Feral
aebc5ce4d0 [calculation] Calculation: discard Calculation::toggleDisplayExact (this
feature will be developed later)
2019-04-26 09:50:25 +02:00
Émilie Feral
1535d4dbb4 [calculation] HistoryViewCell: better split reload (highlight, scroll
etc)  between willDisplayCellForIndex and cellDidSelectSubview
2019-04-26 09:43:22 +02:00
Émilie Feral
a02a1fc5a4 [calculation] HistoryViewCell: fix scroll reloading and right or left
outputs selection (the order of events here matters)
2019-04-25 15:20:55 +02:00
Émilie Feral
25722d578d [calculation] HistoryViewCell: memoize calculation and cell selection to
speed up navigation in HistoryController
2019-04-25 14:03:35 +02:00
Émilie Feral
2b921c9965 [escher] ExpressionView: optimize setLayouts to avoid marking the whole
view as dirty when the layout did not really changed
2019-04-25 14:03:30 +02:00
Émilie Feral
76b4d36826 [escher] Clean empty lines 2019-04-25 13:45:46 +02:00
Émilie Feral
4330e4de42 [poincare] Layout: implement isIdenticalTo 2019-04-25 13:45:39 +02:00
Émilie Feral
3234622df6 [poincare] Layout: discard methods isVerticalOffset(), isHorizontal(),
isRightParenthesisLayout(), isLeftBracket(), isRightBracket(),
isCodePoint(),
isLeftParenthesisLayout() and use type() instead
2019-04-24 17:25:04 +02:00
Émilie Feral
064025edd5 [poincare] Layout: add a Type to all layouts 2019-04-24 15:45:55 +02:00
Émilie Feral
c6846bb85c [poincare] VerticalOffsetLayout: change name of 'Type' to 'Position' 2019-04-24 15:32:21 +02:00
Émilie Feral
75f2b55dd8 [shared] ScrollableExactApproximateExpressionsView: fix scrolling when
selecting the left or right output result
2019-04-24 14:56:07 +02:00
Émilie Feral
ff87c8c53c [escher] ScrollableView: discard duplicate data source of scrolling
offset
2019-04-24 14:34:18 +02:00
Émilie Feral
e29c2b8b39 [calculation] HistoryViewCell: reloadCell selects the right or left
output according to the calculation hold (this enables to discard
unnecessary reloadScroll)
2019-04-24 09:46:12 +02:00
Émilie Feral
8629b4c9e9 [shared] ScrollableExactApproximateExpressionsView: selecting the right
or left output reload the scroll to display the selected output
2019-04-24 09:43:22 +02:00
Émilie Feral
0c453386d3 [calculation] Calculation: improve memoization of a calculation height 2019-04-23 15:16:19 +02:00
Émilie Feral
55e325cc3a [shared] ScrollableExactApproximateExpressionsView: change the selected
output only when one of the two layout is uninitialized. Otherwise, the
parent cell decides of which of right or left output should be selected.
2019-04-23 11:15:17 +02:00
Émilie Feral
494a339c9b [escher] TextView: avoid useless markRectAsDirty when updating
backgroundColor and textColor
2019-04-23 11:14:39 +02:00
Émilie Feral
bba51b9716 [calculation] Display exact and approximate outputs in the
calculation history when the output is selected for calculations
involving decimal numbers (1.2)
2019-04-22 14:14:15 +02:00
Émilie Feral
1b2ce4a18e [calculation] Improve Calculation model: new display mode
ExactAndApproximateToggle
2019-04-22 14:12:00 +02:00
Émilie Feral
f2b1129ce2 [escher] SelectableTableViewDataSource: avoid calling m_delegate->tableViewDidChangeSelection when only reloading the data. 2019-04-22 11:07:56 +02:00
Ruben Dashyan
ed04e5e9e4 [apps/calculation] Simplify HistoryViewCell::handleEvent 2019-04-20 17:27:38 +02:00
Ruben Dashyan
0e89c08a26 [escher] Simplify TableView::scrollToCell 2019-04-20 17:27:38 +02:00
Ruben Dashyan
8bfb3f7a6c [apps/calculation] HistoryViewCell does not need to hold layouts 2019-04-20 17:27:38 +02:00
Émilie Feral
fcbfc575b1 [poincare] Keep unused log function when building with POINCARE_TREE_LOG 2019-04-19 17:58:33 +02:00
Émilie Feral
4f4880de2a [poincare] Power: fix infinite loop
Factorizing 1+(8+sqrt(6))^(1/2)^(-1) on the same denominator would lead
to an infinite loop in Real mode (because (8+sqrt(6))^(1/2)^(-1) is not
simplified to (8+sqrt(6))^(-1/2))
2019-04-19 17:56:26 +02:00
Émilie Feral
c4502ceab3 [sequence] Fix isDefined 2019-04-18 16:11:15 +02:00
Émilie Feral
47ae5118e7 [poincare] Fix Layout::replaceWithJuxtapositionOf (keep an empty layout
if both children are empty)
2019-04-18 15:43:54 +02:00
Émilie Feral
13ddb80b57 [graph] Fix build 2019-04-18 15:19:43 +02:00
Émilie Feral
2f5d1b029c [apps] BatteryView: avoid redrawing when battery picto switch from 'low'
to 'empty' (the pictograms for low and empty are identical)
2019-04-18 15:19:36 +02:00
Ruben Dashyan
6d66b2e75e [apps/graph/graph] Add Preimage controllers to CalculationParameterController 2019-04-18 14:26:42 +02:00
Ruben Dashyan
48d3a58ffc [apps/graph/graph] CalculationParameterController inherits from ListViewDataSource
instead of SimpleListViewDataSource
2019-04-18 14:26:42 +02:00
Ruben Dashyan
23fd28b3b4 [apps/graph/graph] Define PreimageParameterController class 2019-04-18 14:26:42 +02:00
Ruben Dashyan
e0774cba4b [apps/graph/graph] Define PreimageGraphController class 2019-04-18 14:26:42 +02:00
Ruben Dashyan
ab108bbd2c [apps/graph] Add preimage to i18n 2019-04-18 14:26:42 +02:00
Émilie Feral
e39172a7cd [apps] AppsContainer: 'shutdownDueToLowBattery' can be call when the
battery is actually LOW (due to some oscillations between LOW and
EMPTY). Handle that case
2019-04-18 14:07:03 +02:00
Émilie Feral
ef12e6de79 [apps] BatteryView: when the battery is EMPTY and the device hasn't
shut down yet, avoid drawing full battery (and breaking assertion)
2019-04-18 14:07:03 +02:00
Léa Saviot
4afcb95e18 [poincare/tests] More tests on randint 2019-04-17 14:37:37 +02:00
Léa Saviot
7362e965a8 [poincare/randint] Do not accept infinite bounds
Before, randint(1,inf) would give inf
2019-04-17 14:37:37 +02:00
Léa Saviot
1e20b283dc [poincre/randint] Randit simplifies itself to its approximation 2019-04-17 14:29:16 +02:00
Léa Saviot
326b8b8761 [poincare/tests] randint's simplification gives its approximation 2019-04-17 14:29:08 +02:00
Léa Saviot
a48478882c [apps/calc] If result contains random/round, display approximation only 2019-04-17 12:11:37 +02:00
Léa Saviot
73e0947962 [apps/calculation/tests] Tests on displayExactApprox for random/round 2019-04-17 12:10:47 +02:00
Léa Saviot
03bb81215e [python/urandom] Use Ion::random to seed urandom 2019-04-17 11:46:01 +02:00
Léa Saviot
f73951865e [python/urandom] Add init method to seed the Yasmarang generator.
This commit should disappear as it will be in one of the next stable
micropython versions
2019-04-17 11:46:00 +02:00
Léa Saviot
f9e2fc6974 [python] Fix typo 2019-04-17 11:46:00 +02:00
Léa Saviot
bdaf229cfd [apps/text_field_delegate_app] Fix XNT in a sum layout
It was broken by a blunder while swithching to UTF8
2019-04-17 11:31:26 +02:00
Émilie Feral
2bfe257f3f [kandinsky] Fonts: improve glyph % 2019-04-16 14:06:57 +02:00
Émilie Feral
e615172cbb [sequence] Cache context does not need to be a variable context
Fix crash: u(n) = n(n-1) would crash at evaluation
2019-04-16 13:54:05 +02:00
Émilie Feral
60b577e199 [calculation] Fix tests with no symbolic computation 2019-04-16 13:51:59 +02:00
Émilie Feral
d9982a11a9 [apps] Redraw battery pictogram after a reset 2019-04-15 09:52:45 +02:00