Léa Saviot
a2c0eaa20b
[apps/escher] Remove textFieldDidAbortEditing const char * argument.
...
Also removed the same argument in scrollableExpressionViewWithCursorDidAbortEditing.
Change-Id: Iadc6b708cfc0fab44b9fd4edb980cb759d41e8d0
2018-01-23 10:28:02 +01:00
Léa Saviot
4d778b5d9f
[apps/escher/poincare] Use 2D Edition in Sequence and Graph apps.
...
EditableExpressionView is renamed ScrollableViewWithCursor.
EditableExpressionView is now a View that displays either a TextField or
a ScrollableViewWithCursor, depending on Poincare::Preferences.
Change-Id: Id44ddcd9a83f5fd17d65753ca4c94c5c7cda9b8a
2018-01-23 10:28:02 +01:00
Léa Saviot
17cbcd0ab5
[apps/Makefile] Put all the apps back.
...
Change-Id: Ic88eee0e64c4b17364a08a4d4e5bb99fd0481914
2018-01-23 10:27:56 +01:00
Émilie Feral
0963254e03
[poincare] Fix confusion between Symbol::hasAnExactRepresentation and Symbol::isApproximative
2018-01-23 10:25:09 +01:00
Émilie Feral
b1bc6c97c6
[poincare] Add tests for Factor
2018-01-23 10:24:52 +01:00
Émilie Feral
45684d439b
[poincare] Arithmetic::PrimeFactorization returns special cases when the
...
factorization fails. factor(integer) can fail and returns Undefined
2018-01-23 10:24:52 +01:00
Émilie Feral
696e89c7ef
[apps] Toolbox: add factor decomposition
2018-01-23 10:24:52 +01:00
Émilie Feral
b9dce68f04
[poincare] Create class Factor
2018-01-23 10:24:52 +01:00
Émilie Feral
856a7b3eb0
[apps] Add random menu in toolbox
2018-01-23 10:24:52 +01:00
Émilie Feral
6401ce19ae
[i18n] Add messages for random menu in toolbox
2018-01-23 10:24:52 +01:00
Émilie Feral
7aca44812e
[ion] Correct random() implementation in simulator, blackbox and
...
emscripten
2018-01-23 10:24:52 +01:00
Émilie Feral
84b52fa090
[poincare] Create class Randint
2018-01-23 10:24:52 +01:00
Émilie Feral
868f53f65c
[poincare] Create class random
2018-01-23 10:24:52 +01:00
Émilie Feral
9323f0a3e2
[poincare] Parse function with no operand
2018-01-23 10:24:52 +01:00
Émilie Feral
dedcb6b472
[poincare] Make the operands in LayoutEngin::writePrefixExpressionTextInBuffer and LayoutEngine::createPrefixLayout optional
2018-01-23 10:24:52 +01:00
Émilie Feral
f3b90cbbd4
[poincare] Fix ParenthesisLayout to make the operand optional
2018-01-23 10:24:52 +01:00
Émilie Feral
90a75a320b
[liba] Add __aeabi_ul2d implementation
2018-01-23 10:24:52 +01:00
Émilie Feral
a8dc17a6cf
[ion] Add TODO on implementations of usleep msleep
2018-01-22 15:32:59 +01:00
Émilie Feral
7993f7e906
[ion] Re-calibrate the delay methods (msleep and usleep) following the
...
increase of performance due to the instruction and data cache
2018-01-22 15:32:59 +01:00
Léa Saviot
e29691e1f1
[apps/sequence] Fix the insertion of sequence terms in text fields.
...
For instance, the serialization of the V_n layout is "v_{n}", which is
what we want to insert in an EditableExpressionView, but not in a Text
Field for which we want "v(n)".
Change-Id: Iab38058d982322891b530b3afd2d303a266643f9
2018-01-19 17:31:37 +01:00
Léa Saviot
64efb45c24
[apps/math_toolbox] Cleaner matrix layout insertion.
...
Change-Id: I5c51eb353ac848334626e6ffcaf71f3b94534b2e
2018-01-19 17:30:47 +01:00
Léa Saviot
251c4d01af
[apps/sequence] Fix math_toolbox wrong functions calls.
...
Change-Id: I0b7871e87ea64ef9fbd008d9fb3e6d4cce2e97ca
2018-01-19 17:04:50 +01:00
Léa Saviot
f3e6b10410
[apps/math_toolbox] Handle const char * when selecting a leaf.
...
Else, there would be a problem with sequence_toolbox, where not all
toolbox leaves are message trees.
Change-Id: Ib4968aad37f6a835b1ea4d77efac2ae1bd19c7ce
2018-01-19 17:04:41 +01:00
Léa Saviot
2cb8956665
[apps/math_toolbox] Remove the pointedPath from ToolboxMessageTree.
...
Change-Id: I2deb6564321da13ea27975216aa949b68298533c
2018-01-19 16:18:55 +01:00
Léa Saviot
a6f93478cd
[poincare] Fix 1/2 3/4 serialization bug.
...
The omitted multiplication fix that serialized "1 2/3 4" into "1*2/3*4"
caused a bug and serialized "1/2 3/4" into "1/2**3/4", as well as
"1^2 3/4" into "1^(2)**3/4".
Change-Id: I59b55a2f13e6eceee68c7e52169c14918391f235
2018-01-19 15:58:07 +01:00
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
Émilie Feral
9e9949ef78
[apps] Fix message: "Indice premier terme"
2018-01-17 12:07:24 +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