Commit Graph

14 Commits

Author SHA1 Message Date
Léa Saviot
44e8eb1285 [escher] EditableExpressionView, fix setEditing
It should only apply to the TextField or ScrollableExpressionViewWithCursor
depending on the edition mode.

Change-Id: I2ae4a3a4e956dc1d51729c9497642b9c236f9069
2018-04-11 10:42:20 +02:00
Léa Saviot
c4b5d4cf40 Merge branch 'SaisieJolieRebase1201' into SaisieJolieMerge10Apr
Change-Id: I802dbb9f7c0eebf75a1b6cd21ddd194e89b53752
2018-04-10 17:21:54 +02:00
Léa Saviot
bc21aa919f [escher] Missing return statement.
Change-Id: I96feaeac32a8a01098b5446e9bc11321442b1022
2018-01-26 14:27:45 +01:00
Léa Saviot
f38bbff447 [escher] Fix responder order bug.
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
2018-01-24 10:20:09 +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
Léa Saviot
7094bcef75 [escher] EditableExpressionView handles Paste events.
Change-Id: Ie23fe49a4b300592ffb77c5548305d1c50279dd1
2018-01-19 15:38:49 +01:00
Léa Saviot
1ad4e6e744 [escher/poincare] Remove unneeded layout computation.
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
2018-01-18 17:55:16 +01:00
Léa Saviot
d8803c610c [apps] "New Matrix" item in math toolbox.
Change-Id: Iec01ffa96ec64f42d2cbc4b15b14eea7cfe4eaa4
2018-01-17 14:26:50 +01:00
Léa Saviot
e1811e0399 [apps/calculation] Fix redraw bug.
Change-Id: I86cf0839f4aa7f1285ed378850f6d09e811252a2
2018-01-17 10:55:34 +01:00
Léa Saviot
62ae5840e9 [apps/poincare] Handle cursor positioning in EditableExpressionView.
There cursor was not in the right place for log(), cos(), ...

Change-Id: I8fe1f350f3054460204cb5d40508212642333e3e
2018-01-16 16:43:40 +01:00
Léa Saviot
f50391689f [apps/calculation] Handle OK event in calculation history.
Change-Id: I3e4c309a3bc031476eea0d64d433b535b1220a8f
2018-01-16 16:43:40 +01:00
Léa Saviot
1d701f3305 [apps] Handle EditableExpressionView in VariableBoxController.
Change-Id: Ibd5f1b1a8999241c8aa818a075f48adb28c4032e
2018-01-16 16:43:40 +01:00
Léa Saviot
91c05b3bb7 [apps/calculation] EditableExpressionView in calculation app.
Change-Id: I8b67353682652695f7296f0222939930f4b21794
2018-01-16 16:43:15 +01:00
Léa Saviot
c0a3aadae4 [escher] EditableExpressionView, its delegate and EVWithCursor.
Change-Id: Icb05c756ff17e43a7b306bec685a6040eaec303a
2018-01-15 12:14:09 +01:00