Commit Graph

26 Commits

Author SHA1 Message Date
Émilie Feral
08439b5c54 [escher] Create nested_menu_controller to factorize toolbox and future
variable_box_controller
2018-11-23 12:04:00 +01:00
Léa Saviot
13ae1d2545 [apps/escher/toolbox] handleEventWithText for all responders.
This makes the code in the various toolbox more generic. The arguments
of the text to insert are each replaced by a Ion::Charset::Empty.
These Empty chars are used to create layouts in ExpressionLayoutFields,
and to compute the position of the cursor in other fields, before being
removed.

Change-Id: Ie81c1e394b06fef2ab801ccff919d6550f70ec30
2018-04-23 17:18:48 +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
c4b5d4cf40 Merge branch 'SaisieJolieRebase1201' into SaisieJolieMerge10Apr
Change-Id: I802dbb9f7c0eebf75a1b6cd21ddd194e89b53752
2018-04-10 17:21:54 +02:00
Léa Saviot
093131302c [expression_editor] Delete this app.
Change-Id: I4c010ce1948f4c04dff526218d6d85a6d34d109e
2018-01-26 11:07:44 +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
e29691e1f1 [apps/sequence] Fix the insertion of sequence terms in text fields.
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
2018-01-19 17:31:37 +01:00
Léa Saviot
251c4d01af [apps/sequence] Fix math_toolbox wrong functions calls.
Change-Id: I0b7871e87ea64ef9fbd008d9fb3e6d4cce2e97ca
2018-01-19 17:04:50 +01:00
Léa Saviot
f3e6b10410 [apps/math_toolbox] Handle const char * when selecting a leaf.
Else, there would be a problem with sequence_toolbox, where not all
toolbox leaves are message trees.

Change-Id: Ib4968aad37f6a835b1ea4d77efac2ae1bd19c7ce
2018-01-19 17:04:41 +01:00
Léa Saviot
3154decf8b [apps] Fixed bug in MathToolbox.
When returning a MathToolbox, the textfield delegate did not set the
toolbox action for textfields.

Change-Id: I51f78ff5601f784be8e283cf3fb6d3462b776d9a
2018-01-17 14:26:58 +01:00
Léa Saviot
ed82496b56 [apps] Handle EditableExpressionView in MathToolbox.
Change-Id: Ic85cf67d225c60c90c3ad536d813bb489ceb6fe5
2018-01-15 12:14:09 +01:00
Léa Saviot
0d8b6d5ace [escher/poincare] Handle toolbox input (VERY DIRTY).
Change-Id: I01de0ddd6f6500df278e3b4104110f6335289be1
2018-01-15 11:58:02 +01:00
Léa Saviot
bc4d2768d0 [escher/code] Cleaned Toolbox rowHeight().
Now it is set in escher/toolbox.h, with value 40 and no differentiation Node/Leaf.

Change-Id: I0809d87a5df5b8bffe201c9faf72ff901430cbe5
2017-12-01 12:06:05 +01:00
Léa Saviot
68e237702b [escher/apps] Factorization of Toolbox.
MathToolbox methods moved to its parent, Toolbox (in escher).
Node and ToolboxNode classes renamed MessageTree and ToolboxMessageTree.
They are now in escher/, not in apps/.

Change-Id: Ibb26b0e9016094cef79506a1e9fc6dfb492d7103
2017-11-17 11:59:50 +01:00
Émilie Feral
d07ba2dc7c [apps][poincare] Add matrix variables M0-M9
Change-Id: I09d82633ac9ffafc616c2be1e16575f2a5b730f7
2017-06-08 18:29:33 +02:00
Émilie Feral
af4d6b6e81 [escher] Divide class selectable table view delegate in 2: selectable
table view data source & selectable table view delegate

Change-Id: I90fbd61e271db3754c13bd0069b95c2026de6814
2017-05-18 14:16:41 +02:00
Émilie Feral
0517066cc0 [escher] Extrude scroll view model to its delegate
Change-Id: If863de63f5f77edb5e2905633067e03aecdd8937
2017-05-03 10:22:01 +02:00
Émilie Feral
3f98061a4c [escher] Extrude the model in selectable table view controller to its
delegate

Change-Id: I4d49e0098d501e1419f7b216e828b13efbf74f81
2017-05-03 10:22:01 +02:00
Émilie Feral
5fde73dac2 [escher] Change name: viewWillDisappear -> viewDidDisappear
Change-Id: Ie7e324cfd9c1313ef4f5310e1688be0b7fabd0bf
2017-04-18 15:29:09 +02:00
Émilie Feral
1f21251011 [escher] Change name: pointer->message
Change-Id: I0bd7a7d8da047b03342bec1ff31f29ad7efcc2f6
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
704dd22fbc [apps/sequence]Correct sequence toolbox
Change-Id: Ifbe1c45f6002604b248bcb072d57c08808e5c5b0
2017-02-20 10:54:03 +01:00
Émilie Feral
8311e8857c [apps] Better compartimentalize viewWillAppear and
didBecomeFirstResponder

Change-Id: I9ad482907304973a4aa74f517d506667171a036f
2017-02-20 10:54:03 +01:00
Émilie Feral
2e16365100 [escher] Reorganize all cells'name and factorize their layouts
Change-Id: I69900ee98ff6a6868f96d70a0e335a589ef16c3f
2017-02-20 10:54:02 +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
5b73eed76a [apps] Merge toolboxcontroller and node list controller
Change-Id: Ie273b6d7bca3a035e2420ddb6e66a4163d103748
2017-02-20 10:47:05 +01:00