Commit Graph

7312 Commits

Author SHA1 Message Date
Léa Saviot
4673358f60 [poincare] Fix RootLayout deletion.
Change-Id: If9aa315299ce687e208ff3ea81346cbe29a5d03e
2018-01-16 17:28:49 +01:00
Léa Saviot
24a22fb374 [apps/calculation] Delete layout when unloading view.
Change-Id: I7c7afc4882051266c04f28cf2823d58c803f05c0
2018-01-16 16:54:10 +01:00
Léa Saviot
7abcfecb9c [poincare] Change empty Power layout deletion.
Change-Id: Id9b6b0c2701d70f436c3a033c23c120a41f7feda
2018-01-16 16:43:40 +01:00
Léa Saviot
62ae5840e9 [apps/poincare] Handle cursor positioning in EditableExpressionView.
There cursor was not in the right place for log(), cos(), ...

Change-Id: I8fe1f350f3054460204cb5d40508212642333e3e
2018-01-16 16:43:40 +01:00
Léa Saviot
fc2788cc79 [apps/Makefile] Remove the ExpressionEditor app.
Change-Id: I5bcb5064bf1335abda8d6e032eb00f1798463797
2018-01-16 16:43:40 +01:00
Léa Saviot
f50391689f [apps/calculation] Handle OK event in calculation history.
Change-Id: I3e4c309a3bc031476eea0d64d433b535b1220a8f
2018-01-16 16:43:40 +01:00
Léa Saviot
1d701f3305 [apps] Handle EditableExpressionView in VariableBoxController.
Change-Id: Ibd5f1b1a8999241c8aa818a075f48adb28c4032e
2018-01-16 16:43:40 +01:00
Léa Saviot
e1235cdb4f [escher] EditableExpressionView: Remove the cursor when not editing.
Change-Id: If333f6074bce39d71ceb89b9424f7fec26a1f0c6
2018-01-16 16:43:40 +01:00
Léa Saviot
86b29f7e2f [apps/calculation] Fix rendering bug.
When powering off then on the device, the EditableExpressionView had a
rendering bug on the bottom left corner.

Change-Id: I1792831f949b8e646fff68b9e784c1ff573516fc
2018-01-16 16:43:40 +01:00
Léa Saviot
53556ffacf [apps/calculation] Handle "ans" event in EditableExpressionView.
Change-Id: I7761f36b5a94bb5c8190cd5b238542280666c256
2018-01-16 16:43:38 +01:00
Léa Saviot
91c05b3bb7 [apps/calculation] EditableExpressionView in calculation app.
Change-Id: I8b67353682652695f7296f0222939930f4b21794
2018-01-16 16:43:15 +01:00
Émilie Feral
02b15035fa [poincare] Implementation of shallowReduce for Complex: when replacing
the ans symbol, we might introduce a Complex expression in the input
2018-01-16 15:17:16 +01:00
Émilie Feral
785c6a7329 [poincare] When replacing ans, add parenthesis if necessary 2018-01-16 15:17:16 +01:00
Émilie Feral
ddd8c3c44a [apps] Add tests on Ans behaviour in Calculation 2018-01-16 15:17:16 +01:00
Émilie Feral
775432efdc [poincare][apps] Replace Ans symbol when preprocessing the calculation 2018-01-16 15:17:16 +01:00
Émilie Feral
17fc7998a2 [apps] Calculation: Ans is exact only when the expression hold is exact 2018-01-16 15:17:16 +01:00
Émilie Feral
d6d31b4eb0 [apps] Calculation: clean unused methods 2018-01-16 15:17:16 +01:00
Émilie Feral
aa843bdb02 [poincare] Implement shallowReduce of stores and symbols 2018-01-16 15:17:16 +01:00
Émilie Feral
b8b7da7dd8 [apps] Calculation: Ans holds an exact expression 2018-01-16 15:17:16 +01:00
Émilie Feral
7688c37316 [poincare] Avoid useless dynamic allocation 2018-01-16 15:17:16 +01:00
Léa Saviot
47ab766549 [poincare/lexer] Parse the multiplication dot.
Change-Id: I4b12c6c660a7890d7d00b03cad26af5e366b4eaf
2018-01-16 14:30:08 +01:00
Léa Saviot
3ff998ec2c [poincare] Fix MatrixLayout size computation.
Change-Id: Ib02c70d92d7d4e96c052f7f7671496115cf190f1
2018-01-16 14:29:32 +01:00
Émilie Feral
265453e3bb [poincare] Improve the approximation of derivative 2018-01-16 13:24:09 +01:00
Émilie Feral
be59ec0bfd [escher] Fix stack view title layout: re-add a grey line below stack
titles
2018-01-16 13:21:02 +01:00
Émilie Feral
1912ad0379 [escher] Bug in dirty tracking in text field: the cursor width was
forgotten
2018-01-16 13:20:31 +01:00
Émilie Feral
5c23003e50 [apps] Python: Refining random module 2018-01-16 13:19:27 +01:00
Émilie Feral
4a3b935e7b [apps] Python: in the menu controller, the editable cells holding the
script names are not responder as long as they are not set as first
responder manually by renameSelectedScript for instance
2018-01-16 13:18:20 +01:00
MaxBzh
d360709d9b In Home application, select Calculation application when Home or Back buttons are pushed 2018-01-16 12:19:43 +01:00
Léa Saviot
cb7b48adb6 [poincare] ExpressionArray is now a class, not a method.
Before, it was a method of Expression and returned a static array.
However, we have no guarantee that the function will not be called again
while the array is being used, thus erasing the previous array.

Change-Id: Ic640cee7edeb3b2805febde6287414a1497a5b4c
2018-01-16 12:18:48 +01:00
Émilie Feral
47eacfd555 [poincare] Power: when expanding multinome, cap the number of terms in
resulting sum at 25
2018-01-16 10:05:08 +01:00
Émilie Feral
b6c6fcb580 [poincare] Expand any multinome (a0+a1+...+am)^n which naive method 2018-01-16 10:05:08 +01:00
Émilie Feral
652c232ce3 [poincare] Power: expand Newton binomes 2018-01-16 10:05:08 +01:00
Émilie Feral
2cc432ac57 [poincare] Expose a method to compute the binomial coefficient 2018-01-16 10:05:08 +01:00
Émilie Feral
14b13d61a6 [poincare] Multiplication: merge multiplication operands that could
appear when reducing
2018-01-16 10:05:08 +01:00
Jacob Young
adc41fc240 I hate to do this, but a better solution will have to wait for a different PR. 2018-01-16 09:59:49 +01:00
Jacob Young
115f75c06a Fix #8 with a custom getEvent for the simulator. 2018-01-16 09:59:49 +01:00
Léa Saviot
82229250a2 [apps/Shared] EditableExpressionView delegate and delegate app.
Change-Id: Ib6e0157e5523a37e4d652b8bd5063762cd0b6735
2018-01-15 12:14:09 +01:00
Léa Saviot
8f58c33c31 [apps] Dummy handling of EditableExpressionView in VariableBoxController.
Change-Id: I565f613c13ee13d39efb652ae37f281e55f5d999
2018-01-15 12:14:09 +01:00
Léa Saviot
ed82496b56 [apps] Handle EditableExpressionView in MathToolbox.
Change-Id: Ic85cf67d225c60c90c3ad536d813bb489ceb6fe5
2018-01-15 12:14:09 +01:00
Léa Saviot
c0a3aadae4 [escher] EditableExpressionView, its delegate and EVWithCursor.
Change-Id: Icb05c756ff17e43a7b306bec685a6040eaec303a
2018-01-15 12:14:09 +01:00
Léa Saviot
01880d30c3 [apps/Makefile] Keep only ExpressionEditor and Calculation apps.
Change-Id: I34816ec88395114e4d6034f78918253652be5cc9
2018-01-15 12:13:07 +01:00
Léa Saviot
5ff32b8162 [expression_editor] Controller::handleAddEvent returns void.
Change-Id: Iaac5fd3d0798f5c2e81d3c982198f402534f6dfe
2018-01-15 11:58:07 +01:00
Léa Saviot
f6a0a9235f [apps] Makefile. Enable all the apps.
Change-Id: I50d93217a5ae657cccfed285a255ed470e619bf7
2018-01-15 11:58:07 +01:00
Léa Saviot
2ed72127cb [poincare] Remove dangerous default arguments in poincare.
Change-Id: I76f2bc057d73c7d151aed62b66eb69a91082910c
2018-01-15 11:58:07 +01:00
Léa Saviot
a435c548da [apps/sequence] Use the new layouts in the Sequence app.
Change-Id: I8b079bfabccd54472e0ba0fac17b87dbaf3678ee
2018-01-15 11:58:07 +01:00
Léa Saviot
b7c0a15eb8 [apps/regression] Use the new layouts in the Regression app.
Change-Id: I3813ed42c35d92e98f6d162ac3788a238f2f836e
2018-01-15 11:58:07 +01:00
Léa Saviot
735d79a0fc [apps/settings] Use the new layouts in the Settings app.
Change-Id: Ic90a78cf58cac28f24b65c5e0c1776c61675bb98
2018-01-15 11:58:07 +01:00
Léa Saviot
1e8935fc2e [poincare] Use MatrixLayout in Expression::Matrix::privateCreateLayout.
Change-Id: I60a4212dd5206a8372f4355b9ff1287577428d1b
2018-01-15 11:58:07 +01:00
Léa Saviot
16fad9f9fb [poincare] Cleaned backspaceAtCursor for layouts.
Change-Id: I232fa7af24a9983d3acfb3460042cb32bfcef81f
2018-01-15 11:58:07 +01:00
Léa Saviot
e2bd7ddbe0 [poincare] Fixed deletion bug in MatrixLayout.
Change-Id: I0dbc142468320fac4ed8969a3ef2684549315780
2018-01-15 11:58:07 +01:00