Léa Saviot
df2b9c4d81
[escher/apps] Get children count via template in ToolboxMessageTree::Node
2018-12-21 13:29:32 +01:00
Léa Saviot
ed19d19070
Merge branch 'master' into python_turtle
2018-12-17 15:49:46 +01:00
Léa Saviot
101370c507
[escher] Change ToolboxMessageTree constructors
...
To simplify ToolboxMessageTree cosntruction
2018-12-17 15:27:38 +01:00
Émilie Feral
af527b58a8
[apps] MathToolbox: fix scope of buffer used in handleEventWithText
2018-11-23 12:04:09 +01:00
Émilie Feral
3e98d783e1
[toolbox] Add a default value to diff for consistency with int, sum &
...
product
2018-11-23 12:04:04 +01:00
Émilie Feral
b0ebaf15d9
[toolbox] Add a default value to sum and product
2018-11-23 12:04:04 +01:00
Émilie Feral
67970298c6
[poincare] Default integral has 'dx' and cursor skips dx when moving
...
towards right
2018-11-23 12:04:03 +01:00
Émilie Feral
7035ad01ae
[escher] Toolbox: title is a message instead of a const char
2018-11-23 12:04:00 +01:00
Émilie Feral
08439b5c54
[escher] Create nested_menu_controller to factorize toolbox and future
...
variable_box_controller
2018-11-23 12:04:00 +01:00
Émilie Feral
ba0f866dc6
[apps] Toolbox: get rid of variable-size tables
2018-09-17 17:14:43 +02:00
Léa Saviot
3b1fc4b3d5
[poincare] Remove old layouts
2018-07-26 14:46:55 +02: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
193aefd5a6
[poincare] Each leayout gives the layoutToPointWhenInserting
...
Change-Id: I5f054643decd27731e77d0f1cf2e6874cf6ff8d5
2018-04-17 15:33:40 +02:00
Léa Saviot
c4b5d4cf40
Merge branch 'SaisieJolieRebase1201' into SaisieJolieMerge10Apr
...
Change-Id: I802dbb9f7c0eebf75a1b6cd21ddd194e89b53752
2018-04-10 17:21:54 +02:00
Émilie Feral
576caa039f
[apps][escher] Add methods 'handleEventWithText' in TextField and
...
TextArea to fix bug in probability (adding a toolbox text from the
calculations controller)
2018-03-22 13:12:12 +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
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
696e89c7ef
[apps] Toolbox: add factor decomposition
2018-01-23 10:24:52 +01:00
Émilie Feral
856a7b3eb0
[apps] Add random menu in toolbox
2018-01-23 10:24:52 +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