When selecting a matrix in the calculation history and pressing 'OK',
in the apps Calculation, there was a nullptr bug.
Change-Id: I8f05771b76bcb3c68b51cf8ca33a49011144abf9
When the parenthesis is the base of a vertical offset superscript, its
height and baseline should be default values, else it creates an
infinite loop because the parenthesis needs the superscript position,
which needs the parenthesis position.
Change-Id: Ib5f7d7cbd1cb48b5de8251cdda64b271e50f216f
The InputViewController inserted the text to edit in the TextField then
set the edition to true, which deleted the text.
Change-Id: Id77e740c0b615066e647512a19731214a435a2f0
EditableExpressionView cannot pass the first responder state to one of
its children, otherwise Calculation::EditableExpressionView's overriden
handleEvent method is never called.
Change-Id: Id2b56b9501e67431e860573cf4c62a16651c3958
The new pointed layout can be specified. If not, the cursor will be on
the right of the new layout.
Change-Id: I5e0c37cf6365447f8eaf354dc5e86a24c6981034
A layout might be deleted after calling addLayout: for instance, if the
layout is horizontal and added as a child to another horizontal layout,
its children are stolen and it is deleted.
Change-Id: Icc2c344dd7878d7df2ec72f014a98dd0d27dc258
EditableExpressionView is renamed ScrollableViewWithCursor.
EditableExpressionView is now a View that displays either a TextField or
a ScrollableViewWithCursor, depending on Poincare::Preferences.
Change-Id: Id44ddcd9a83f5fd17d65753ca4c94c5c7cda9b8a
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
Else, there would be a problem with sequence_toolbox, where not all
toolbox leaves are message trees.
Change-Id: Ib4968aad37f6a835b1ea4d77efac2ae1bd19c7ce
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
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
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
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
When returning a MathToolbox, the textfield delegate did not set the
toolbox action for textfields.
Change-Id: I51f78ff5601f784be8e283cf3fb6d3462b776d9a