Ruben Dashyan
7fce83d1dd
[escher/expression_field] Detect whether view's height did change by memoizing the height
...
Such changes used to be detected only when the height was equal to the
maximal allowed value, by detecting whether the height shifted from or
to that maximal value. For that purpose, a boolean was memoized in
InputViewController and in Calculation::EditExpressionController.
2020-02-12 15:13:16 +01:00
Léa Saviot
0630ae55c7
[apps/escher] Force expressionField relayout when size changed
...
Scenario: in Calculations and in Graph, edit the layout field by adding
many parentheses. When the layout field has maximal height but the
parentheses are bigger than it, ther is a margin that appears at the
bottom, because we did not relayout the layout field to optimize
redrawing. We need to force the relayout, otherwise as the layout field
stays we the same frame, the relayouting is not properly done.
2020-02-12 15:13:15 +01:00
Ruben Dashyan
1d966ce23c
[apps/*/expression_model_list_controller] editExpression sets text instead of InputViewController::edit
2019-09-20 17:11:42 +02:00
Ruben Dashyan
7d9f479f3c
[escher/input_view_controller] Define setTextBody method
...
And inline textBody method.
2019-09-20 17:11:42 +02:00
Ruben Dashyan
c1470ed9d3
[escher/input_view_controller] Define isEditing method
2019-08-29 11:07:22 +02:00
Émilie Feral
12060e2ae7
[escher] TextField: all text fields use the same draft text buffer
2019-08-13 09:44:00 +02:00
Ruben Dashyan
44809f4b3f
Substitute Escher app() by Container::activeApp()
2019-07-19 15:06:25 +02:00
Ruben Dashyan
17795eed87
[escher] Include container.h instead of app.h
...
app.h did actually include container.h
2019-07-19 15:06:25 +02:00
Léa Saviot
00586b03d9
[escher] Fix pop up clash when memory is full while editing a function
...
There was a selection problem when editing a function failed because of
a full storage (k_storageSize = 1000)
2018-11-23 12:04:04 +01:00
Émilie Feral
0a823da78c
[escher] Variable box pop-up is handle as Toolbox pop-up by asking
...
InputEventHandlerDelegate
2018-11-23 12:04:03 +01:00
Émilie Feral
698332c355
[escher] InputTextDelegate and LayoutFieldDelegate don't inherit from
...
InputTextDelegate to avoid diamond inheritance
2018-11-23 12:04:03 +01:00
Émilie Feral
7778c694d1
[escher] Create an InputEventHandlerDelegate that gives the toolbox to
...
be used by an InputEventHandler
2018-11-23 12:04:02 +01:00
Émilie Feral
01e433a9f2
[escher] Clean Field and Input class hierarchy:
...
Class hierarchy:
- InputEventHandler
- TextInput
- EditableField derives from InputEventHandler
- LayoutField, TextField and ExpressioField derives from EditableField
- TextArea and TextField derives from TextInput
2018-11-23 12:04:02 +01:00
Émilie Feral
365b145cf3
[poincare] Change names: LayoutReference-->Layout
2018-09-18 16:29:44 +02:00
Émilie Feral
616e4c0bcc
[poincare] Change name: LayoutRef --> LayoutReference
2018-09-14 16:57:12 +02:00
Léa Saviot
985f310b1c
[escher] Just replace the layout when clearing it in LayoutField
2018-09-14 11:28:37 +02:00
Léa Saviot
880c3e59de
[poincare] Continue removing layouts
2018-07-03 18:29:08 +02:00
Émilie Feral
06b552c033
[escher] InputViewController: call the textField/ExpressionLayout
...
delegate 'DidFinishEvent' after performing the sucess or abort action
2018-06-07 16:21:39 +02:00
Émilie Feral
5dcfbf83e9
[escher] ExpressionLayoutFieldDelegate should not take a text as
...
parameter but a layout
Warning: in ExpressionField: the serialized layout is not guaranteed to
be small enough to fill in the text buffer
2018-05-17 13:53:10 +02:00
Léa Saviot
8778516fe2
[escher] expressionLayoutFieldDidChangeSize reloads only the modalView
...
Change-Id: Ib406c7d10e2befae9d660e025c84df58a2e9b70c
2018-04-25 15:15:12 +02:00
Léa Saviot
d436e06a73
[escher] ~InputViewController and rule of 5
...
Change-Id: Iec7a3f005df01c59162c8898e136d94f7e69c236
2018-04-23 11:34:01 +02:00
Léa Saviot
117a6d460a
[poincare] Stop exposing text/expressionlayout fields in ExpressionField
...
Change-Id: Ic1afb3f7c1f6bff5ea3bedc6f96bef986b74f6a8
2018-04-23 11:33:53 +02:00
Léa Saviot
22ab94209f
[apps/escher] Rename EditableExpressionView -> ExpressionField
...
Change-Id: Iadfb220ee94e68762305060215f1ead0cac951fb
2018-04-23 09:41:20 +02:00
Léa Saviot
31face58a2
[apps/escher] ScrollableEVWithCursor renamed ExpressionLayoutField
...
Change-Id: Id0e4610fb677d8ad36721eef1a85f1c424d1743e
2018-04-23 09:41:20 +02:00
Léa Saviot
34f6729e35
[escher] Add initial text before handling event in editableEV
...
It seems more logical.
Change-Id: I72432221ba567b0f7b0d46946a397e4d1b53c8d0
2018-04-16 11:20:15 +02:00
Léa Saviot
c4b5d4cf40
Merge branch 'SaisieJolieRebase1201' into SaisieJolieMerge10Apr
...
Change-Id: I802dbb9f7c0eebf75a1b6cd21ddd194e89b53752
2018-04-10 17:21:54 +02:00
Émilie Feral
aade7cb2fe
[escher] Create a class TextInput (from which derived TextField,
...
TextArea)
2018-03-22 13:12:12 +01:00
Léa Saviot
acf8fe25ff
[escher] Fix text field bug when editing a sequence.
...
The InputViewController inserted the text to edit in the TextField then
set the edition to true, which deleted the text.
Change-Id: Id77e740c0b615066e647512a19731214a435a2f0
2018-01-26 14:23:47 +01:00
Léa Saviot
a2c0eaa20b
[apps/escher] Remove textFieldDidAbortEditing const char * argument.
...
Also removed the same argument in scrollableExpressionViewWithCursorDidAbortEditing.
Change-Id: Iadc6b708cfc0fab44b9fd4edb980cb759d41e8d0
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
Émilie Feral
d7091397e5
[escher] Rule of 5 in view
...
Change-Id: Iba04e9046845b544e184530562e34f831fce96f6
2017-05-24 15:32:22 +02:00
Émilie Feral
3e3df48051
[apps/sequence|graph|calculation] ADd a margin in edited text fields
...
Change-Id: I5450720bc0d58bceb8ab490d4fb837b4d79eef73
2017-05-10 16:30:46 +02:00
Émilie Feral
f3eb2b80df
[escher] In textField, record edited data when changing selection
...
Change-Id: I74e1cac2188986244f79e7c5ad0eb1d300510475
2017-04-24 17:36:32 +02:00
Émilie Feral
9ee0c7fd5d
[apps/shared] Correct bug when quitting graph/sequence app
...
Change-Id: Ib6d7c0122930c1873d7e9b6bbcbda1f30fe10011
2017-04-24 14:37:28 +02:00
Émilie Feral
024e55abeb
[apps][escher] Delete magic numbers
...
Change-Id: If7a589d9f02895fc1b2e8b496133ab11381e733c
2017-04-14 18:30:58 +02:00
Émilie Feral
3d80989cba
[escher] Fix bug due to commit "Resolve bug: specify text field for
...
controller with only one buffer" -> input view controller has only one
buffer
Change-Id: Ia5b771d7b5d832ecd32464aa0e8bb07c8ae86670
2017-03-30 10:39:06 +02:00
Émilie Feral
6d8d105d7e
[escher][apps] Clean and fix bug in text field
...
function application)
Change-Id: I5d425ea7752a054ea6b05735b12442c4429f13b4
2017-03-29 15:04:37 +02:00
Émilie Feral
9d7284e2e2
[escher] Improve rendering of input view controller
...
Change-Id: I3d92fdc5bba7ec21dfb4d2c15e5827f29b2e57a8
2017-03-16 15:12:12 +01:00
Émilie Feral
adc80cd71b
[apps][escher] I18n
...
Change-Id: I4d6f40155a8a182184af9ef2a583d0469196ffd5
2017-03-16 15:12:12 +01:00
Émilie Feral
f2512b2968
[apps/sequence] Temporary implementation of sequence toolbox
...
Change-Id: I59c703c4c50cd523d49af9a558a7fc3b0f360bc6
2017-02-20 10:51:58 +01:00
Émilie Feral
c584d1fb4e
[escher] Add toolbox event handling in responder [apps] Correct the text
...
field delegate app accordingly
Change-Id: I180fe53aaa1e0929b357d3985f584937fba2ecca
2017-02-20 10:48:50 +01:00
Émilie Feral
9d6a945fbe
[apps] Switch to mode editing when clicking on toolbox or variable box
...
Change-Id: Iff6a00234ac95c6519fba8046149d2f645f8ca86
2017-02-16 14:46:04 +01:00
Émilie Feral
9d0354f3bd
[kandinsky] Add a default font size : large
...
Change-Id: I6b9f1a7b09292f120074c8957e328ddc33023c67
2017-01-27 12:03:06 +01:00
Émilie Feral
f51ae5db12
[kandinsky] Introduce two fonts: small font and large font
...
Change-Id: I502dfa88d627b09ac5af76155140af63547025cd
2017-01-27 11:14:01 +01:00
Émilie Feral
bc38d3db4b
[escher] When using input view controller, init the text content to the
...
previous text edited
Change-Id: Id201196f38e8f2b6cd909c7e52708f2e84ab8a47
2017-01-09 15:08:54 +01:00
Émilie Feral
75948af80f
[escher] in text field, reinit the draft text buffer when changing the editing state
...
Change-Id: I595a9abac3ee593556ec37df9c7065a06f3c856c
2016-12-15 13:51:41 +01:00
Émilie Feral
8c284ba34f
[escher][apps] CHange textField API
...
Change-Id: I766d153b7f7429473f297707a08358051123accc
2016-12-15 13:51:40 +01:00
Émilie Feral
4ed7e06373
[apps][escher] Fix insering several letters when clicking on SIN
...
e. g.
Change-Id: If71400b22f65878a94090fed7f3c68433a10506c
2016-11-18 10:00:37 +01:00
Romain Goyet
b87f06e3a2
[ion] Update the Event model
...
Change-Id: I41a53caeb7dd8a15e7934f49675f6a53be8fe7be
2016-11-10 17:29:48 +01:00
Émilie Feral
2575e3226a
[escher] add methods to add text to buffer in textfield
...
Change-Id: I51388c7495ed8919d1f2ba48d645aee9476c5ed6
2016-11-10 09:53:09 +01:00