Commit Graph

89 Commits

Author SHA1 Message Date
redgl0w
caccda8b34 Update math_toolbox.cpp 2019-10-31 18:13:54 +01:00
Quentin Guidée
0fe83e3139 Merge branch 'master' into lavaos 2019-10-27 11:44:35 +01:00
Léa Saviot
4caf9f5197 [coding style] Make some methods const 2019-09-09 20:05:14 +02:00
Léa Saviot
392198fad4 [apps] Fix typo 2019-08-26 10:47:39 +02:00
Léa Saviot
3a03132c6c [apps/toolbox] Probability submenu 2019-08-22 17:21:28 +02:00
Léa Saviot
d0cab49b11 [apps/toolbox] Renaming 2019-08-22 15:56:36 +02:00
Quentin Guidée
722fe5d0ea [1.4] Added: All (120) molar masses 2019-08-11 16:22:38 +02:00
Quentin Guidée
901f78e9b6 [1.4] Added 20 chemistry elements (for numerical order only) 2019-08-11 13:46:31 +02:00
Quentin Guidée
536437b976 [1.4] Sorting molar masses (1,2...) or (A,B...) 2019-08-11 11:01:25 +02:00
Quentin Guidée
08fa11b061 [1.4] Chemical and physics constants 2019-08-11 10:23:57 +02:00
Léa Saviot
d11b8a9614 [poincare] Remove flag MATRICES_ARE_DEFINED 2019-08-08 16:24:51 +02:00
Ruben Dashyan
44809f4b3f Substitute Escher app() by Container::activeApp() 2019-07-19 15:06:25 +02:00
Léa Saviot
3ab8a18d7f [apps/toolbox] Matrix > Identity command 2019-05-03 15:53:21 +02:00
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