Commit Graph

100 Commits

Author SHA1 Message Date
Ruben Dashyan
41de2abc22 [apps/math_toolbox] Remove tera- giga- megameter 2020-02-12 15:13:27 +01:00
Ruben Dashyan
1c407bc398 [apps/math_toolbox] Remove picosecond 2020-02-12 15:13:27 +01:00
Ruben Dashyan
089f1c4518 [apps/math_toolbox] Shortcut Liter menu 2020-02-12 15:13:26 +01:00
Ruben Dashyan
de08e7774d [apps/math_toolbox] Shortcut Siemens menu 2020-02-12 15:13:26 +01:00
Ruben Dashyan
e74f0b1a9f [apps/math_toolbox] Shortcut Ohm menu 2020-02-12 15:13:26 +01:00
Ruben Dashyan
316c8c4fd9 [apps/math_toolbox] Shortcut Farad menu 2020-02-12 15:13:26 +01:00
Ruben Dashyan
b0abc7a100 [apps/math_toolbox] Shortcut Volt menu 2020-02-12 15:13:26 +01:00
Ruben Dashyan
e07cc2014d [apps/math_toolbox] Shortcut Coulomb menu 2020-02-12 15:13:26 +01:00
Ruben Dashyan
f03d5f29eb [apps/math_toolbox] Shortcut Watt menu 2020-02-12 15:13:26 +01:00
Ruben Dashyan
01fb8f1881 [apps/math_toolbox] Shortcut Newton menu 2020-02-12 15:13:26 +01:00
Ruben Dashyan
40c5eec1b4 [apps/math_toolbox] Shortcut Hertz menu 2020-02-12 15:13:26 +01:00
Ruben Dashyan
2c65c1164c [apps/math_toolbox] Shortcut Mole menu 2020-02-12 15:13:26 +01:00
Ruben Dashyan
be6760bf48 [apps/math_toolbox] Shortcut Ampere menu 2020-02-12 15:13:26 +01:00
Ruben Dashyan
70b46e3275 [apps/math_toolbox] Remove Weber unit 2020-02-12 15:13:26 +01:00
Ruben Dashyan
010173515a [apps/math_toolbox] Remove Katal unit 2020-02-12 15:13:26 +01:00
Ruben Dashyan
912d777e92 [apps/math_toolbox] Remove Dalton unit 2020-02-12 15:13:26 +01:00
Émilie Feral
a78d34293c [app] Toolbox: add the unit menu 2020-02-12 15:13:23 +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
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