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
428be61703
[poincare] Fix navigation in Sum or Sequence layouts.
...
Avoid adding text Left or Right of "n=".
Change-Id: I03c980f25bae1cb89feaa9d733bfb3fe5294fed0
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
b2962abd92
[poincare] Make the Root layout wider to see the cursor position.
...
Change-Id: Iba5ebb30935820c68224ff2aa0e0be2223d8a50d
2018-01-15 11:58:03 +01:00
Léa Saviot
95b82adbe3
[poincare] Added uneditable parentheses around the sum layout argument.
...
Change-Id: Ib80000b4d41fbb36b318ba9266eb7680c9f1285a
2018-01-15 11:58:03 +01:00
Léa Saviot
c697b77437
[poincare] UneditableParenthesisLayout left and right.
...
Change-Id: Ib5d7fdb887513270a70fe77a287ccfd638fea098
2018-01-15 11:58:03 +01:00
Léa Saviot
ad3ca09ba1
[poincare] Handle nested parentheses when computing height and baseline.
...
Change-Id: I15f266f1dddd1eb49b4d713348f8031c51104a6b
2018-01-15 11:58:02 +01:00
Léa Saviot
b327989975
[poincare] Change StringLayout navigation to handle dx in integrals.
...
The cursor should avoid being on the left or right of a string layout,
otherwise there will be problems when serializing an integral.
Change-Id: If801247638e3d5eb3e36deaafbe9179759b48034
2018-01-15 11:58:02 +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
b47a5fa939
[poincare] Handle parentheses sizing.
...
Change-Id: I3f790c0eb73b566dd7de7089957ea0d4306821c2
2018-01-15 11:58:02 +01:00
Léa Saviot
14f2e08872
[poincare/escher] Tell which layout is pointed when adding from toolbox.
...
Change-Id: I84c82ea887e3e7759da7d407532dc7d63174f1ac
2018-01-15 11:58:02 +01:00
Léa Saviot
0d8b6d5ace
[escher/poincare] Handle toolbox input (VERY DIRTY).
...
Change-Id: I01de0ddd6f6500df278e3b4104110f6335289be1
2018-01-15 11:58:02 +01:00
Léa Saviot
c24de3c069
[expression_editor] Handle ShiftLeft and ShiftRight events.
...
Change-Id: Id416d1c95d023b8a0a4348a2570dd332615aa2b8
2018-01-15 11:58:02 +01:00
Léa Saviot
37af765124
[expression_editor] Edit when the cursor points to the main layout.
...
Change-Id: Idc11cfca8aa318803ba243f6649cad6f8662f7f6
2018-01-15 11:58:02 +01:00
Léa Saviot
8289e24cfe
[expression_editor] Handle XNT event.
...
Change-Id: I0af832ec0f693c445e424d21795b14cfb4e54622
2018-01-15 11:58:02 +01:00
Léa Saviot
7b2c48465e
[expression_editor] Handle Exp, Log, Power, Sqrt and Square events.
...
Change-Id: I96ab58d6f66fcb6aa95ba849d927236cfb5fcc28
2018-01-15 11:58:02 +01:00
Léa Saviot
940f2cf387
[poincare] Delete empty layouts when adding something next to them.
...
Change-Id: Ie89fa84edb0bdd57ead42fac68cbb564c5327556
2018-01-15 11:58:02 +01:00
Léa Saviot
4d94764c36
[expression_editor] Controller code cleaning.
...
Change-Id: Ifb31ad712ce9c59e21fc3d670d05f60a15669d60
2018-01-15 11:58:02 +01:00
Léa Saviot
3c45358296
[expression_editor] Add fraction layouts (simple version).
...
Pressing the divide button adds an empty fraction layout without
"absorbing" the neighbouring layouts.
Change-Id: I46bdeadfcd80ec3c51c676ae62747e0823718645
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
62322da1ee
[poincare] Empty and EmptyVisible layouts.
...
Change-Id: Id3234f406e1bfe7addb704c873bde357546ddf67
2018-01-15 11:58:02 +01:00
Léa Saviot
04323e8284
[poincare] Changed the navigation in ConjugateLayout.
...
The cursor can now be Right of the conjugate and Right of the operand,
not just Right of the operand.
Change-Id: I409ca5595c8e19ad29995bbdcc4309a99bf21c73
2018-01-15 11:58:02 +01:00
Léa Saviot
82469ca96e
[poincare] Added margins to ConjugateLayout.
...
Change-Id: I27b3788c87d36390fcea63c6a70b89aa36a2e9f3
2018-01-15 11:58:02 +01:00
Léa Saviot
ed7614c925
[poincare] Removed outdated comment.
...
Change-Id: I80cbfa3a3f643e18ca263ed772c2f4da95ca68a5
2018-01-15 11:58:02 +01:00
Léa Saviot
b3598e1713
[expression_editor] Insert text char by char, using CharLayout.
...
Change-Id: Id5b146bf875c1cf1d9ac949258d43a5ed415a334
2018-01-15 11:58:02 +01:00
Léa Saviot
1c54da21c4
[poincare] Char layout.
...
Change-Id: I1fc7180b724b7a9faee0bc0e6e7762a1e883f925
2018-01-15 11:58:02 +01:00
Léa Saviot
aa8621f762
[expression_editor] Move the cursor right of the text input.
...
Change-Id: I4c78280a880a9d96e629b26c3d0ad77a1392eb2d
2018-01-15 11:58:02 +01:00
Léa Saviot
001c174a91
[poincare] Fixed problem when the cursor is on a layout extremum.
...
Before, if the cursor pointed at the main Horizontal layout, the user
could not add text because this layout has no parent. Now the cursor
cannot go to the main HorizontalLayout extrema.
Change-Id: I360e5da8b250b73945888e88bc1adcdf67ce1ae3
2018-01-15 11:58:02 +01:00
Léa Saviot
c78efeeb59
[expression_editor] The user can input text.
...
Change-Id: I6456ee23e3caf3a42899d0734e1bef1f53f68b8d
2018-01-15 11:58:02 +01:00
Léa Saviot
7a5547e308
[expression_editor] Changed example. TO REMOVE?
...
Change-Id: Ibf1eb52eeeb9e4386c8c608115ac1ea88fbd715a
2018-01-15 11:58:02 +01:00
Léa Saviot
d72de7c484
[poincare] ExpressionLayout edition.
...
Change-Id: I505320c32fcc3ffb516f345091a89afad90ebf56
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
96c2f9aeba
[poincare] Fixed some layout moveLeft() problems.
...
Change-Id: Id7b9f9a1cc823589e1abd8a69800331649393126
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
ab81f74bbf
[poincare] Bracket Left and Right layouts.
...
Change-Id: I05987e837324628b5141b31d01f59c88ae5ff3ce
2018-01-15 11:58:01 +01:00
Léa Saviot
8237bab64f
[poincare] ParenthesisLeft and Right layouts.
...
Change-Id: I13cdb59c8b0d7ec1cf773688edff37babb15f893
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
ee77ab9723
[poincare] EditableBaselineRelativeLayout.
...
Change-Id: I8fa6ed2b255d20eb815055987871881b3b5bbf09
2018-01-15 11:58:01 +01:00
Léa Saviot
d5316e06f7
[poincare] EditableStringLayout.
...
Change-Id: Ie985874c216881a722d9c6807c007bc17b25d4f0
2018-01-15 11:58:01 +01:00
Léa Saviot
074f8c5337
[TO REMOVE] Colored the cursor in Red for visibility.
...
Change-Id: Ia93ebbac1f4b7e15e7de7a3d8546a19797929d72
2018-01-15 11:58:01 +01:00
Léa Saviot
3af2f88da7
[poincare] Added extern margins on BracketLayout to see the cursor.
...
Change-Id: I32f6d54c2121b4de1d7ae2552239a1e8ac557913
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
Léa Saviot
5aa1946796
[expression_editor] Handle navigation events in the controller.
...
Change-Id: I7f8f2846f7b7ac141e854215edd30e0c078a992c
2018-01-15 11:58:01 +01:00
Léa Saviot
8f6a27bee8
[TO REMOVE] Bigger test case.
...
Change-Id: I72c0474000aab5eec5ebada2e09c0f7f555c8e2b
2018-01-15 11:58:01 +01:00
Léa Saviot
23d49f768f
[expression_editor] Use ExpressionEditorView.
...
Change-Id: Ib4080fd76f7040be6ad8ebfda10d2e2070c7381c
2018-01-15 11:58:01 +01:00
Léa Saviot
1c6d18afd9
[expression_editor] Scrollable ExpressionView with cursor.
...
Change-Id: I8f75bcb0be78d8c8901cdad0e85e8463c2ea717c
2018-01-15 11:58:01 +01:00
Léa Saviot
8828eaf79f
[escher] ExpressionView drawingOrigin().
...
Change-Id: I737f17f857edb6e9971feeeb196f2698cc92ad9e
2018-01-15 11:58:01 +01:00
Léa Saviot
589926284c
[poincare] absoluteOrigin() is public in ExpressionLayout.
...
Change-Id: I7e381887e3c62c36c72536ed7ef280bcc637ead4
2018-01-15 11:58:01 +01:00