Léa Saviot
98faf01b53
[poincare] Better Fraction collapsing.
...
Change-Id: Ic898f522ae26cfcd5917f4da85715f85a5861b9f
2018-01-15 11:58:05 +01:00
Léa Saviot
9753228a3d
[poincare] Use the VerticalOffsetLayouts.
...
Change-Id: I6dfc61f95016fd9863b7a4b1f41dc1784560807b
2018-01-15 11:58:04 +01:00
Léa Saviot
4009a0d879
[poincare] VerticalOffsetLayout and mustHaveLeftBrother() for Layouts.
...
Change-Id: Ibd4666806bb0af2a2babe892c8a9906747c18e9a
2018-01-15 11:58:04 +01:00
Léa Saviot
8a7e4e598c
[expression_editor] Collapse brothers when adding a fraction.
...
Change-Id: I4d75fae152fca4a6671abd1e444f6aaa27c168b5
2018-01-15 11:58:04 +01:00
Léa Saviot
25c036a078
[expression_editor] Set cursor position according to the layout inserted.
...
Change-Id: Iac33efdeb4b725ae6007282d323f446992873832
2018-01-15 11:58:04 +01:00
Léa Saviot
89760c0f42
[poincare] isCollapsable() for ExpressionLayouts.
...
Tells whether the layout should be collapsed into the numerator (or
denominator) of a new FractionLayout brother.
Change-Id: Id5c2a55667bec56340d73c2a63dc704fa56c9815
2018-01-15 11:58:04 +01:00
Léa Saviot
62ffb42472
[poincare] Fixed invalidation of layout baseline and position.
...
When adding, replacing or detaching a child.
Change-Id: I3ef212fbe270cee8d0e3a11402cc6df1228ee8d5
2018-01-15 11:58:04 +01:00
Léa Saviot
4fa64d837a
[poincare] Parser rule for function_{args1}(args2).
...
It is parsed as function(args2 concatenated with args1).
Change-Id: I478cf7b34c6f49e5d258fe8f6af823a7d7b5941e
2018-01-15 11:58:04 +01:00
Léa Saviot
1ced6e2360
[poincare] Empty ListData constructor.
...
Change-Id: I882eb664d74399ab87ef9bd95bc1b255f5a5f87c
2018-01-15 11:58:04 +01:00
Léa Saviot
b4358ab99a
[poincare] Changed assert condition in LayoutEngine.
...
The function writeInfixExpressionOrExpressionLayoutTextInBuffer is now
used by HorizontalLayout, which might have only 1 argument.
Change-Id: Ic22baa4c43847fe1fd4a38e3180b4ae8bef18d19
2018-01-15 11:58:04 +01:00
Léa Saviot
57dcf24675
[poincare] Changed names in StaticLayoutHierarchy::build.
...
For debugging purposes.
Change-Id: I10185978cbc590ba0016516e151ecba852bd4d72
2018-01-15 11:58:04 +01:00
Léa Saviot
8e30d10e43
[poincare] Changed the arguments order for Sequence layouts.
...
Change-Id: I83c535c5d3e1d263343ab7f656b5c22c82049ad4
2018-01-15 11:58:04 +01:00
Léa Saviot
3fe7295f6c
[poincare] ExpressionLayoutArray was a method, it is now a class.
...
Change-Id: Iddde7ed9d8a8539193c6547a9e718865ff8e8cc7
2018-01-15 11:58:04 +01:00
Léa Saviot
5107343a44
[ExpressionEditor] Handle EXE events: show serialized layout.
...
Change-Id: I19be0ab5263cba42caca2ca71fe0082f3339e473
2018-01-15 11:58:04 +01:00
Léa Saviot
332cfb013f
[ExpressionEditor] TextView to see serialization results.
...
Just for development purposes.
Change-Id: I8700818a8d5705e2c610bd448fbcc2deea6b9971
2018-01-15 11:58:04 +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
1773dcbc34
[poincare] Fixed cases where baseline was used without computing it before.
...
To access a layout's baseline, we should always use baseline() instead
of m_baseline, in order to compute the baseline if it needs to be computed.
Change-Id: I5e859108bb30b7e23e09beb82fe7046bfa25414f
2018-01-15 11:58:04 +01:00
Léa Saviot
af2a572135
[poincare] Fix fraction delete.
...
Change-Id: I98d8fc4d835e753cca9138c42273fff43a58478c
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
894e8a6032
[poincare] Fix main layout edition.
...
If its only child is empty, remove it before adding another child.
Change-Id: I3047f17c69ff14787e172d99b6e0b3e1f4096f26
2018-01-15 11:58:04 +01:00
Léa Saviot
2c5e1b99bb
[poincare] Parameter for UneditableHorizontalTrioLayout navigation.
...
This parameter specifies if the cursor can be left and right of the
layout.
Change-Id: Ia8d5ff45a471e964bf82e8db0465a5f07661884d
2018-01-15 11:58:04 +01:00
Léa Saviot
47f691c997
[expression_editor] Empty initial layout.
...
Change-Id: I00231be393bf65715f8f8647439c344fe7069851
2018-01-15 11:58:04 +01:00
Léa Saviot
22b0042ded
[poincare] Delete for UneditableHorizontalTrioLayout.
...
Change-Id: Ide310278ed9444cf03dc02dc40c391ff9f3dfd16
2018-01-15 11:58:04 +01:00
Léa Saviot
44cf9e8979
[poincare] Delete for StringLayout.
...
Change-Id: I67ff432cb283ae2cd1d1acd86a0e2baef9dcbe29
2018-01-15 11:58:04 +01:00
Léa Saviot
af232a8678
[poincare] Delete in SequenceLayout.
...
Change-Id: Ie530516fcddde4d7a93d89993bab5cab30927faa
2018-01-15 11:58:04 +01:00
Léa Saviot
df77faec28
[poincare] Delete for RootLayout.
...
Change-Id: I4555e94bfa887e63aa0a3e11eff8f3043b5803e7
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
30b75bfef6
[poincare] Delete for EmptyVisibleLayout.
...
Change-Id: Iceda680d153ddf622a39a4f46274ce038401ca61
2018-01-15 11:58:03 +01:00
Léa Saviot
527fd9feab
[poincare] Fixed FractionLayout delete.
...
Change-Id: Idb8e5c4d71cf00c796a82ef1f41ea63b224752ba
2018-01-15 11:58:03 +01:00
Léa Saviot
5d229b2ab0
[poincare] Fixed StringLayout navigation.
...
Change-Id: Ib89cf550bb22c3216db6364566d5b08abe9d3889
2018-01-15 11:58:03 +01:00
Léa Saviot
abdd85ddff
[poincare] Delete for BaselineRelativeLayout (Editable or not).
...
Change-Id: I86fb27c35859d742ff26f55397281c2585960b08
2018-01-15 11:58:03 +01:00
Léa Saviot
3415dde6c7
[poincare] Use uneditableHorizontalTrioLayout in SumLayout.
...
Change-Id: I67c5c59d8cdb50506a105dd0929eaa1bc79bca1c
2018-01-15 11:58:03 +01:00
Léa Saviot
3baf483a86
[poincare] Fixed StringLayout navigation bug.
...
Change-Id: I73b99b6a4302b4487357a7e1cef563b43743554c
2018-01-15 11:58:03 +01:00
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