Commit Graph

57 Commits

Author SHA1 Message Date
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
64efb45c24 [apps/math_toolbox] Cleaner matrix layout insertion.
Change-Id: I5c51eb353ac848334626e6ffcaf71f3b94534b2e
2018-01-19 17:30:47 +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
2cb8956665 [apps/math_toolbox] Remove the pointedPath from ToolboxMessageTree.
Change-Id: I2deb6564321da13ea27975216aa949b68298533c
2018-01-19 16:18:55 +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
d8803c610c [apps] "New Matrix" item in math toolbox.
Change-Id: Iec01ffa96ec64f42d2cbc4b15b14eea7cfe4eaa4
2018-01-17 14:26:50 +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
1967fce13a [apps] Toolbox layouts are created by parsing the command of the cell.
Change-Id: I511e8af2b2247d1df3ca968191566c2b3f01fe11
2018-01-15 11:58:06 +01:00
Léa Saviot
bbd4cb6da9 [apps] Added NthRoot and Log layouts in MathToolbox.
Change-Id: I3efcf6d56acec542566d22e23b5e3b66fb0af5fc
2018-01-15 11:58:06 +01:00
Léa Saviot
6334e2f435 [apps] Change MathToolbox's binomial coefficient layout.
It now uses a Parenthesis layout.

Change-Id: Ia83d7881a57bc91e41d125fef1e2a648d0278946
2018-01-15 11:58:05 +01:00
Léa Saviot
55044d8e0b [poincare] Update Expression's privateCreateLayout().
We use the new layouts and no longer the old ones such as StringLayout
or BaselineRelativeLayout.

Change-Id: Ic15167b694c3adab46f348c8f823ce19b3e5ef33
2018-01-15 11:58:05 +01:00
Léa Saviot
41310a4ecf [poincare] "Hard draw" the fixed parentheses in SequenceLayout.
Change-Id: Id626c85a7db540148bf9cb05ddb968c3f807454f
2018-01-15 11:58:05 +01:00
Léa Saviot
4cc107b15f [poincare] "Hard draw" n= in SequenceLayout, instead of layouting it.
Change-Id: I79aa6ab0f46c0a05a3c2fe1dd88b287dc09dac17
2018-01-15 11:58:05 +01:00
Léa Saviot
4478885566 [poincare] "Hard draw" dx in IntegralLayout, instead of layouting it.
This simplifies the navigation, edition and serialization of
IntegralLayout.

Change-Id: I03360bf83eeb0cbd9524c992518dff125900e9a5
2018-01-15 11:58:05 +01:00
Léa Saviot
3fe7295f6c [poincare] ExpressionLayoutArray was a method, it is now a class.
Change-Id: Iddde7ed9d8a8539193c6547a9e718865ff8e8cc7
2018-01-15 11:58:04 +01:00
Léa Saviot
ccd25a360d [poincare] Serialize expression layout.
We can now convert layouts into text: we will be able to parse them
into an Expression.

Change-Id: I82f4834c08f5b2c5fb294bdcb9a49257b574e20b
2018-01-15 11:58:04 +01:00
Léa Saviot
2c5e1b99bb [poincare] Parameter for UneditableHorizontalTrioLayout navigation.
This parameter specifies if the cursor can be left and right of the
layout.

Change-Id: Ia8d5ff45a471e964bf82e8db0465a5f07661884d
2018-01-15 11:58:04 +01:00
Léa Saviot
6f81a6cceb [apps] Added layout for binomial coefficient in toolbox.
Change-Id: I43bd6ff8a2f812d8bf524d60b559d1b227c0c79f
2018-01-15 11:58:03 +01:00
Léa Saviot
8563f24aa2 [poincare] Add layout to Conjugate in toolbox.
Change-Id: I793a16a7e34e6affe2fe3facd9bd17bee77431d8
2018-01-15 11:58:03 +01:00
Léa Saviot
69e003d1ef [apps] Added layout for AbsoluteValue in toolbox.
Change-Id: Ie686aabaa5c3f49af0298fbe0c8b9859e89f638f
2018-01-15 11:58:03 +01:00
Léa Saviot
95b82adbe3 [poincare] Added uneditable parentheses around the sum layout argument.
Change-Id: Ib80000b4d41fbb36b318ba9266eb7680c9f1285a
2018-01-15 11:58:03 +01:00
Léa Saviot
14f2e08872 [poincare/escher] Tell which layout is pointed when adding from toolbox.
Change-Id: I84c82ea887e3e7759da7d407532dc7d63174f1ac
2018-01-15 11:58:02 +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
8668de21a1 [code] MathToolbox cleaning.
Removed some constants by computing the text to insert in the textfield from the command
with arguments. Used the TextToInsertForCommandMessage method from
toolbox_helpers.h.

Change-Id: I864ad886fb74882f476d74160e427595be27df40
2017-11-17 11:59:50 +01:00
Léa Saviot
13bf8c2d62 [code] Python toolbox.
Change-Id: I4028b05c662cae04a5ac3af5021f3438bb22dcd0
2017-11-17 11:59:50 +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
Ian Abbott
d0a50c316e [I18n] Rename ReelPart in class enum Message
Reel => Real
2017-11-06 21:52:57 +01:00
Émilie Feral
c189876673 Correct typo: initiate -> initialize
Change-Id: I2282bf4df87094679135176555ac18d9678de0b4
2017-08-25 11:20:49 +02:00
Émilie Feral
2ca78887a2 [I18n] Cosh->cosinus hyperbolic
Change-Id: Ic9d6a9f77c6698464d01eec85c039f10cbecc583
2017-06-09 10:07:08 +02:00
Émilie Feral
d07ba2dc7c [apps][poincare] Add matrix variables M0-M9
Change-Id: I09d82633ac9ffafc616c2be1e16575f2a5b730f7
2017-06-08 18:29:33 +02:00
Émilie Feral
ce09d2f9c4 [apps] Event 'right' on chevron cells behaves as OK and 'left' on the
next cell as 'back'

Change-Id: I2470659d8237373b21ad106c79cc5f8945f0edb5
2017-06-02 14:07:56 +02:00
Émilie Feral
d7091397e5 [escher] Rule of 5 in view
Change-Id: Iba04e9046845b544e184530562e34f831fce96f6
2017-05-24 15:32:22 +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
4e0e285501 [apps][escher] EXE and OK trigger the same behaviour
Change-Id: Ide7d38fbc445be717e50ed46f2d784c02c9830e4
2017-05-10 12:04:30 +02:00
Émilie Feral
abaa4cea47 [apps] In toolbox, indicate the arguments for every function
Change-Id: I8c6d8beea12ae0e99a5042e9b6e5b09181209dbc
2017-05-05 10:19:05 +02:00
Émilie Feral
28bf496e9e [poincare] Complete matrix hiding (tests)
Change-Id: I470784110e098a96cc288ab2dad584bb8b3555bd
2017-05-03 14:22:52 +02:00
Émilie Feral
70fc734f7b [escher] Change dynamic view controller paradigm
Change-Id: I57fd41c9b9ad8a1e8b684b97fdf80ddffd71881d
2017-05-03 14:22:51 +02:00
Émilie Feral
c95dd961ab [poincare][apps] Improve matrix hiding
Change-Id: Ibb5dbd674f6385d81a9c8370717b7b9ec76d2368
2017-05-03 14:22:51 +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
35991c8d70 [poincare][toolbox] Hide matrix
Change-Id: Ib7f57581130744f2963865d14fa539839ac28d8e
2017-04-26 09:53:54 +02:00
Émilie Feral
5fde73dac2 [escher] Change name: viewWillDisappear -> viewDidDisappear
Change-Id: Ie7e324cfd9c1313ef4f5310e1688be0b7fabd0bf
2017-04-18 15:29:09 +02:00
Émilie Feral
b1fb4f5393 [escher] Correct commit : Enable to draw the outline of cells in table
view

Change-Id: If2eadc0b9987678c0ccc56401bd46835d861a436
2017-03-16 17:35:43 +01: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
406fc0e0a5 [escher] Enable to draw the outline of cells in table view
Change-Id: I2842e9fdada4ebdc3fe49608e6f7886d831aa98b
2017-03-16 15:12:11 +01:00
Émilie Feral
6b98af5287 [apps][poincare] Add a submenu to toolbox about fluctuation intervals
Change-Id: Iae352e67abe4e70a75a4083bc669ea2541618457
2017-03-16 15:12:10 +01:00
Émilie Feral
b18ffe186a [apps] In toolbox, correct names
Change-Id: Iec45432396fe7555cef40714247049d198a0055f
2017-03-16 15:12:10 +01:00