Léa Saviot
8d32930eae
[poincare] Check equivalent positions when moving Up and Down
...
Change-Id: I5043d0a43c981592b0b72fd1221769497520b342
2018-04-20 11:34:02 +02:00
Léa Saviot
829cd06685
[poincare] Fix some layouts up/down navigation
...
Change-Id: I1a69651ca41899557489318fe4d4609e51308036
2018-04-20 11:30:22 +02:00
Léa Saviot
09db58d24c
[poincare] Remove some parameters in ExpressionLayout::moveUp/Down
...
Change-Id: I406c02229aace0ec7417e5194d448023273fb3d0
2018-04-19 17:56:43 +02:00
Léa Saviot
1e9b4d4c07
[poincare] Rename backspaceAtCursor -> deleteBeforeCursor
...
Change-Id: Ia5196b46fa58a82347bb1b02a7b7ef9a816ff66f
2018-04-19 16:16:17 +02:00
Léa Saviot
887f3c222a
[poincare] Change some layouts deletion.
...
Change-Id: I3675874892c7200172a7751b15853952fa2bd96f
2018-04-18 17:24:42 +02:00
Léa Saviot
193aefd5a6
[poincare] Each leayout gives the layoutToPointWhenInserting
...
Change-Id: I5f054643decd27731e77d0f1cf2e6874cf6ff8d5
2018-04-17 15:33:40 +02:00
Léa Saviot
9f9692b009
[poincare] Add numberOfSignificantDigits arguent in writetextInBuffer
...
Change-Id: I1bef3462dbdfd94bff0af0e9d569d0ecf63d157c
2018-04-10 17:55:20 +02: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
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
16fad9f9fb
[poincare] Cleaned backspaceAtCursor for layouts.
...
Change-Id: I232fa7af24a9983d3acfb3460042cb32bfcef81f
2018-01-15 11:58:07 +01:00
Léa Saviot
1717b470c8
[poincare] When replacing a layout, ask the parent to move the cursor.
...
Change-Id: I0ddb0e791d328c2f141aefc604569ef4fcc6c0c5
2018-01-15 11:58:06 +01:00
Léa Saviot
dadcd83924
[poincare] Remove uses of outdated layouts, such as StringLayout.
...
Change-Id: I55bb846371c224f8f2e739b759725b0e02759ebd
2018-01-15 11:58:05 +01:00
Léa Saviot
83bd562fb8
[poincare] Fixed IntegralLayout serialization.
...
The integrand was not properly written.
Change-Id: I063ed0ee58986174a374cc6b06b49bd5ec4a4d7d
2018-01-15 11:58:05 +01:00
Léa Saviot
4478885566
[poincare] "Hard draw" dx in IntegralLayout, instead of layouting it.
...
This simplifies the navigation, edition and serialization of
IntegralLayout.
Change-Id: I03360bf83eeb0cbd9524c992518dff125900e9a5
2018-01-15 11:58:05 +01:00
Léa Saviot
48dc38da56
[poincare] Fixed "dx" removal when deleting an IntegralLayout.
...
Change-Id: I65494adf8d5bc732e95270ed6397b49a5303e7b0
2018-01-15 11:58:05 +01:00
Léa Saviot
ccd25a360d
[poincare] Serialize expression layout.
...
We can now convert layouts into text: we will be able to parse them
into an Expression.
Change-Id: I82f4834c08f5b2c5fb294bdcb9a49257b574e20b
2018-01-15 11:58:04 +01:00
Léa Saviot
ceb1243357
[poincare] Fix integral layout navigation.
...
Change-Id: Id8e733dfc1c0e5c583a0d3e33ab4c0837c08e782
2018-01-15 11:58:04 +01:00
Léa Saviot
2a3dc0a83a
[poincare] Delete for integral layouts.
...
Change-Id: I830b759108f857825a576d1dc37b2f85add7688a
2018-01-15 11:58:04 +01:00
Léa Saviot
693fb5e400
[poincare] Clean Layouts.
...
Do not compute the baseline at construction, and use base class
constructors.
Change-Id: I4361a6d92d7652b2aae2d662388b8d2c90afd3ce
2018-01-15 11:58:03 +01:00
Léa Saviot
aa4ae376b3
[poincare] Fixed the IntegralLayout navigation.
...
The cursor now avoids pointing at the integrand horizontal layout or
left of dx layout. It insteads points at the children of the horizontal
integrand layout that are not "dx", so an EmptyVisibleLayout can be
properly overwritten when needed.
Change-Id: Ie5eced3761d2d8f49f02530336981a1285b459fd
2018-01-15 11:58:03 +01:00
Léa Saviot
38d1da9e6d
[poincare] Fix bug in IntegralLayout navigation assert.
...
Change-Id: Idecb17678d1e858aca9d453c8e0f44988005c2b0
2018-01-15 11:58:02 +01:00
Léa Saviot
241d37afa5
[poincare] Recompute baselines when needed.
...
Change-Id: I4ec717402a4dfd287aa95f45189e1734e4f5e3ed
2018-01-15 11:58:02 +01:00
Léa Saviot
0cc1d99a54
[poincare] Static and Dynamic Layout hierarchies.
...
Change-Id: I3b47dbd76552b77db762482932518a74c1996cc0
2018-01-15 11:58:01 +01:00
Léa Saviot
a4c014c75e
[expression_editor/poincare] Move Down in an ExpressionLayout.
...
Change-Id: I87f3394cce5eb4936ab926d5e92fdf44d4473cf7
2018-01-15 11:58:01 +01:00
Léa Saviot
fc8cd6c06e
[expression_editor/poincare] Move Up in an ExpressionLayout.
...
Change-Id: I75fd91233729afd4eb77d8e9d53c102a632643ea
2018-01-15 11:58:01 +01:00
Léa Saviot
29e549d475
[expression_editor/poincare] Move Right in an ExpressionLayout.
...
Change-Id: Ib5f018666350d6bb061272ae7b04b6f721d50e84
2018-01-15 11:58:01 +01:00
Léa Saviot
f49168d779
[poincare] Use editable String and BaselineRelative layouts.
...
Change-Id: I978c4aa43772b294251b948fc20bb0d8b8b05a08
2018-01-15 11:58:01 +01:00
Léa Saviot
78c02e6871
[expression_editor/poincare] Move Left in an ExpressionLayout.
...
Change-Id: Id69def65e0976bfb045c1da6e8786a2f5797120c
2018-01-15 11:58:01 +01:00
Émilie Feral
69e46f4958
[poincare] Namespace Poincare
...
Change-Id: I51a84fa7978ba16f128cfe1d32c390970f2037e8
2017-02-13 17:15:06 +01:00
Émilie Feral
863200445b
[poincare] Create a class integral layout
...
Change-Id: I0d41d9b92477837ed367e6a2c4359b609aa8e1c1
2017-01-15 20:09:22 +01:00