Léa Saviot
7094bcef75
[escher] EditableExpressionView handles Paste events.
...
Change-Id: Ie23fe49a4b300592ffb77c5548305d1c50279dd1
2018-01-19 15:38:49 +01:00
Léa Saviot
511d9e3ada
[poincare] Better handling of grey squares in MatrixLayout.
...
Add/remove grey squares when the cursor enters or leaves the matrix on
modeUp or moveDown.
Recompute the layout if the cursor enters or leaves a matrix: adding or
removing grey squares changes the layout of the expression.
Change-Id: I356f660cbf96883bd5bf1c4bd2cd160a921a29e7
2018-01-19 15:25:50 +01:00
Léa Saviot
865060e2e9
[poincare] Add asserts in removePointedChildAtIndexAndMoveCursor.
...
Change-Id: Ifc49b79f18ad53a96a4675d1c6edad69e1c6258f
2018-01-19 09:58:59 +01:00
Léa Saviot
1ad4e6e744
[escher/poincare] Remove unneeded layout computation.
...
When moving a cursor in an EditableExpressionView, do not recompute the
layout, unless specified otherwise (for instance when entering or
exiting a MatrixLayout).
Change-Id: Ic2471095d6f6a08014a79f1d9d8fb7d39a1a6864
2018-01-18 17:55:16 +01:00
Léa Saviot
440709dace
[poincare] Better comment for isCollapsable in ExpressionLayout.
...
Change-Id: I944ec90a52b3b69e90c7a75163716c885ef256b4
2018-01-18 15:41:24 +01:00
Léa Saviot
5363eac148
[poincare] Fixed function operands order in parser.
...
Change-Id: Ieff07d664827a82bdd6fbdda821a4b61feabd795
2018-01-18 15:41:24 +01:00
Léa Saviot
65666dc35f
[poincare] Fixed vertical offset layout serialization.
...
There was a problem with omitted multiplications: 1^2 3 would be
computed as 1^(2*3).
Change-Id: Ifc4b0e0bd61fad1b752e1415c6dd0cf3b3b1f3a6
2018-01-18 15:41:24 +01:00
Léa Saviot
8ffac8f69f
[poincare] Fixed fraction serialization.
...
There was a problem with omitted multiplications: 1/2 3 would be
computed as 1/(2*3).
Change-Id: Ic8e7ebfaa525c8bbf910d7c93fb7a3ca770a2e44
2018-01-18 15:41:24 +01:00
Léa Saviot
7770f92df8
[poincare] canBeOmittedMultiplicationLeft/RightFactor for layouts.
...
Change-Id: I059226e95cb8d931ee65062965a888f4a06e67db
2018-01-18 15:41:24 +01:00
Léa Saviot
b70cb6dc8a
[poincare/parser] Fix precedence bug in the parser.
...
Change-Id: I02a36ca82729085232166d854d596154a355daae
2018-01-18 15:41:23 +01:00
Léa Saviot
3cda4a881d
[poincare] Fix new power layout bug.
...
There was a problem when assessing if there was a need for an empty base
layout.
Change-Id: I9d6f84d3cc797fc0a701395dd8289590a4ab849a
2018-01-17 15:32:55 +01:00
Léa Saviot
776c4246c6
[poincare] Delete the integral when left of the integrand.
...
And handle the cursor position.
Change-Id: I573a8c7496a3a7b99385e68e8152e491f86cb66c
2018-01-17 14:51:55 +01:00
Léa Saviot
613d33efba
[poincare] Delete root layout if cursor left of the radicand.
...
Change-Id: I42331f06785680053fa3cc64a95296697f207845
2018-01-17 14:26:58 +01:00
Léa Saviot
169913b800
[apps/calculation] Fix background redraw bug.
...
The margins around the textfield did not redraw themselves properly
after dismissing a toolbox for instance. The textfield now takes the
full height of edition zone.
Change-Id: I0794b8273a880a2dc921c5f492eb0f41aef7fe97
2018-01-17 14:26:58 +01:00
Léa Saviot
3154decf8b
[apps] Fixed bug in MathToolbox.
...
When returning a MathToolbox, the textfield delegate did not set the
toolbox action for textfields.
Change-Id: I51f78ff5601f784be8e283cf3fb6d3462b776d9a
2018-01-17 14:26:58 +01:00
Léa Saviot
d8803c610c
[apps] "New Matrix" item in math toolbox.
...
Change-Id: Iec01ffa96ec64f42d2cbc4b15b14eea7cfe4eaa4
2018-01-17 14:26:50 +01:00
Léa Saviot
cb6a526072
[poincare] Fix bug in matrix layout assert.
...
Change-Id: I84ec8034f9f417b12b91abe84771fec5834ba8b4
2018-01-17 11:59:51 +01:00
Léa Saviot
e1811e0399
[apps/calculation] Fix redraw bug.
...
Change-Id: I86cf0839f4aa7f1285ed378850f6d09e811252a2
2018-01-17 10:55:34 +01:00
Léa Saviot
05de98ea04
[apps/calculation] Fetch the edition mode in the preferences.
...
Change-Id: Iec7cfc5695907b8c410077a48749fd43efb6cc65
2018-01-17 10:39:20 +01:00
Léa Saviot
8ab8ef4c5f
[apps/settings] Add a setting for the edition mode (1D or 2D).
...
Change-Id: Ia6783d3443a8b059e67a293a517bc652950aab55
2018-01-17 10:38:43 +01:00
Léa Saviot
60127036b7
[poincare] Fix unused variable.
...
Change-Id: I45cda6d12666a90d24eb4f0f03149ed083e5d68d
2018-01-16 18:03:04 +01:00
Léa Saviot
51e33b6903
[apps/calculation] Fix margins.
...
Change-Id: If799563af90c9de4ea02d3177a0ee2375d8ddbb4
2018-01-16 17:33:58 +01:00
Léa Saviot
627e96e5e3
[escher] Black cursor color.
...
Change-Id: I150e4f51a1162ded51af5e6a72cdaa70b428965d
2018-01-16 17:30:55 +01:00
Léa Saviot
6f8a1979d2
[poincare] Remove superfluous parentheses when serializing fractions.
...
Change-Id: I2f24d67293ed26fbe5aab3035c49ae162fdefab0
2018-01-16 17:29:21 +01:00
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
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
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