Commit Graph

25 Commits

Author SHA1 Message Date
Laury
f3d632c462 [apps/calculation] Add a "ctrl-z" system 2022-02-15 22:24:50 +01:00
Arthur
d7a0914d13 [Apps/CalculationStore] Changed the way to store calculations
-No more limit to the number of calculations
-All calculations are memoized
-Added tests to test/calculation_store.cpp

Change-Id: Ia10e2b009576eaf4496ba44a0c88f6e7e76f6cef
2020-11-04 14:45:34 +01:00
Émilie Feral
22549d4d50 [apps/calculation] CalculationStore: change name CalculationHeight -->
HeightComputer
2020-07-16 14:37:38 +02:00
Émilie Feral
df74c2c551 [apps/calculation] The heights (common and expanded) of calculation cells are
computed when the calculation is added to the store and don't change afterwards.
Otherwise, if their heights change when scrolling (due to a modification of the
display output type - ExactOnly, ApproximateOnly...), it generates crashes.
2020-07-16 14:37:38 +02: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
Émilie Feral
7ee6ad7136 [apps/calculation] CalculationStore: cap the number of calculations to
25
2019-09-17 17:35:45 +02:00
Émilie Feral
1cc09de9ae [apps/calculation] Invalid calculation height memoization when leaving
the app.

Fix wrong memoization: in calculation app input '[[1+i, 2][3,4]]', change
the complex format to Polar, go back to the calculation app --> the
calculation height was no recomputed despite the fact that the approximation
output changed.
2019-08-19 09:59:01 +02:00
Léa Saviot
849f9237dd [apps/calculation] Handle calculations too big for buffer 2019-08-08 17:22:03 +02:00
Léa Saviot
f43e73333a [apps/calculation] Put back memoization 2019-08-08 17:22:02 +02:00
Léa Saviot
c7fd11e4b0 [apps/calculation] Calculation store has one big buffer for calculations 2019-08-08 17:22:02 +02:00
Léa Saviot
154d1e7307 [apps/calculation] Inline constructor 2018-11-19 18:02:55 +01:00
Émilie Feral
b5f66171fc [calculation] Fix all reference to Poincare 2018-08-10 13:18:46 +02:00
Émilie Feral
36a3108309 [apps] Calculation: move implementation of ansExpression() from
Calculation to CalculationStore
2018-01-30 16:17:03 +01:00
Émilie Feral
e75beb661f [apps/calculation] Add test for rinn buffer of calculation store
Change-Id: I99b9c75b7bc4927b693a67bb5c022d991eb8dec6
2017-05-30 13:17:22 +02:00
Émilie Feral
6b136d8378 [apps/calculations] Resolve bug in ring buffer
Change-Id: I1e34530f0e257e5e6a04c4ce974461888279b486
2017-05-30 09:53:12 +02:00
Émilie Feral
71284311bb [escher] [apps] Implement app snapshot
Change-Id: I24d7eed7cef964af8be1c85222e758c297dc0da1
2017-05-18 14:16:41 +02:00
Émilie Feral
9b119942a2 [apps] Cap the size of stores (memory issue)
Change-Id: I69dbb593b42615d601b0adcf7580c740ecd22e4b
2017-05-09 17:00:32 +02:00
Émilie Feral
e5e9f7cc41 [poincare][apps] Make preferences a const object accessible from
anywhere (poincare and apps)

Change-Id: I49cc6bf940d1efeb6b153daac949ffcb23999a8d
2017-02-20 09:39:24 +01:00
Émilie Feral
69e46f4958 [poincare] Namespace Poincare
Change-Id: I51a84fa7978ba16f128cfe1d32c390970f2037e8
2017-02-13 17:15:06 +01:00
Émilie Feral
b37688745e [apps/calculation] Create input and output layout according to display
mode set in preference

Change-Id: If161958b2fcdad802fda5f8e0c44f8a5fc9d9ef1
2017-02-02 10:28:59 +01:00
Émilie Feral
3fbce70fd8 [apps/calculation] add a method in calculation store to clear the store
Change-Id: I0e4f0a60abc7d73a2c175508800306b559594d8a
2016-11-04 11:08:15 +01:00
Émilie Feral
dba85cc56a [apps/calculation] Correct error in ring buffer methods
Change-Id: I684afe462d23384a4807644586c03ea654ed7c8a
2016-11-04 11:08:08 +01:00
Émilie Feral
d8179abd77 [apps/calculation] align the historic to the bottom
Change-Id: Ide539c753376ac1fa1cd60ecd3605f112b19f28d
2016-11-04 10:19:05 +01:00
Émilie Feral
e9795b16da [apps/calculation] Change calculation store model to be a buffer ring
Change-Id: Ic444456288e68dcf7b78705880b9507de0a95a2d
2016-10-26 16:26:12 +02:00
Émilie Feral
b101308922 [apps/calculation] Rename calcul->calculation
Change-Id: I57ca7353516cee2da33470a8a0f622a21c3fe7e9
2016-10-25 17:55:28 +02:00