Commit Graph

3726 Commits

Author SHA1 Message Date
Léa Saviot
48e20abe73 [poincare] Navigation and delete in GridLayout.
Change-Id: I8357150d9f15dd003ab97e09981d164d57235739
2018-01-15 11:58:03 +01:00
Léa Saviot
6f81a6cceb [apps] Added layout for binomial coefficient in toolbox.
Change-Id: I43bd6ff8a2f812d8bf524d60b559d1b227c0c79f
2018-01-15 11:58:03 +01:00
Léa Saviot
fccd9b484b [poincare] Added UneditableHorizontalTrioLayout.
Change-Id: Ifd9fd6a0a0714853c1a8cd428b65076b704a8211
2018-01-15 11:58:03 +01:00
Léa Saviot
2c261f7ea9 [poincare] Cleaned duplicate indexOfChild() method.
Change-Id: I03fc6cd4e1afe45f609828ae0e32865c8510bf14
2018-01-15 11:58:03 +01:00
Léa Saviot
2d40e35fe8 [poincare] Delete for FractionLayout.
Change-Id: Ifbbe5c434d278e8223ada3d368c1e948712567d2
2018-01-15 11:58:03 +01:00
Léa Saviot
7ce93eb847 [poincare] Delete for ConjugateLayout.
Change-Id: I065a3a3b90f1e7d533ba54ddb4aad0a7df70ac87
2018-01-15 11:58:03 +01:00
Léa Saviot
8563f24aa2 [poincare] Add layout to Conjugate in toolbox.
Change-Id: I793a16a7e34e6affe2fe3facd9bd17bee77431d8
2018-01-15 11:58:03 +01:00
Léa Saviot
f39b365902 [poincare] Delete for BaselineRelativeLayout.
Change-Id: I7b16c52d7eaa0c5a6398aca9a34a017447593737
2018-01-15 11:58:03 +01:00
Léa Saviot
f307e15bac [poincare] Delete for HorizontalLayout.
Change-Id: Iff983beccc14195b09d54b5b5db668b8f7d4eca7
2018-01-15 11:58:03 +01:00
Léa Saviot
04be8e1cc2 [poincare] Delete for BracketLayout.
Change-Id: Ifb45ef3d556ccc3f6b1efb9fdca04f6411a3dfc9
2018-01-15 11:58:03 +01:00
Léa Saviot
69e003d1ef [apps] Added layout for AbsoluteValue in toolbox.
Change-Id: Ie686aabaa5c3f49af0298fbe0c8b9859e89f638f
2018-01-15 11:58:03 +01:00
Léa Saviot
1a3c391237 [expression_editor/poincare] General "delete" rule.
Change-Id: I5c16f19aacdac312156f45c88c189adfb72f03e8
2018-01-15 11:58:03 +01:00
Léa Saviot
406d108aa5 [poincare] Sandardize Bracket and Parenthesis minimal height.
Change-Id: Iadfce26575d77182ecc12dd100fa9b70b9062802
2018-01-15 11:58:03 +01:00
Léa Saviot
b0fd089d87 [poincare] Dynamic size of Bracket Left and Right layouts.
Change-Id: Icd0654dc7b63639d4513946b24c0855ffcb38c87
2018-01-15 11:58:03 +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
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