Commit Graph

6 Commits

Author SHA1 Message Date
Léa Saviot
90068b5cc7 [poincare] Fix Matrix copy bug.
When selecting a matrix in the calculation history and pressing 'OK',
in the apps Calculation, there was a nullptr bug.

Change-Id: I8f05771b76bcb3c68b51cf8ca33a49011144abf9
2018-01-31 10:32:07 +01:00
Léa Saviot
4b79175fa8 [escher] Handle Clear event in ScrollableExpressionViewWithCursor.
Change-Id: I8a71a3f866420cd62514a7431f89a468580ff4eb
2018-01-25 17:31:51 +01:00
Léa Saviot
b9a7973961 [escher/poincare] Move the cursor when inserting a layout (if wanted).
The new pointed layout can be specified. If not, the cursor will be on
the right of the new layout.

Change-Id: I5e0c37cf6365447f8eaf354dc5e86a24c6981034
2018-01-24 10:18:12 +01:00
Léa Saviot
b3c5b93d21 [escher] Fix invalid pointer access.
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
2018-01-23 17:13:58 +01:00
Léa Saviot
bea0d208c1 [escher] ScrollableExpressionViewWithCursor handles Back event.
Change-Id: I8d98040e34740b48ee8285e5356ea94cd48f2e98
2018-01-23 10:28:02 +01:00
Léa Saviot
4d778b5d9f [apps/escher/poincare] Use 2D Edition in Sequence and Graph apps.
EditableExpressionView is renamed ScrollableViewWithCursor.
EditableExpressionView is now a View that displays either a TextField or
a ScrollableViewWithCursor, depending on Poincare::Preferences.

Change-Id: Id44ddcd9a83f5fd17d65753ca4c94c5c7cda9b8a
2018-01-23 10:28:02 +01:00