Léa Saviot
6ab9a36472
[code] The console history is not emptied when reloading Python.
...
Change-Id: I5dedcfc8279f5f4fe9846419f6861c7d7cb3f973
2017-12-01 13:19:30 +01:00
Léa Saviot
e43bbd38f2
[escher] Fixed TextField bug.
...
The Statistics apps crashed when navigating the Data table.
-> Check that the textfield is editing before calling
textFieldShouldFinishEditing.
-> Changed textLength() to draftTextLength().
Change-Id: Id373a7cd50438303f470abc5bcee7a795c33926a
2017-12-01 13:19:30 +01:00
Léa Saviot
4659d27c80
[code] Added spaces after some Toolbox commands.
...
Change-Id: I15c0a9b593e39123694c38ad3d6201e0319f24f4
2017-12-01 13:19:30 +01:00
Léa Saviot
1ce6f36651
[code] Fixed the wait for user input after drawing using Python.
...
A SandboxController is now pushed on the StackViewController and sets the
KDIonContext::sharedContext before drawing, sets a white background and handles
user input after the Python computation to dismiss the drawing screen.
Change-Id: I51b0474365a85e845227379a16d090541fa8ded7
2017-12-01 13:19:28 +01:00
Léa Saviot
a78bd0db88
[apps/escher] Harmonize Toolbox and VariableBoxController row heights.
...
Change-Id: I8e6c5543d46480a1129f3812ca40c29e4407eac1
2017-12-01 12:06:05 +01:00
Léa Saviot
e6b4d07cb6
[code] Dynamic toolbox that displays script functions and variables.
...
Change-Id: Id1494580b3832540633d3aefaf04710d21e0a44c
2017-12-01 12:06:05 +01:00
Léa Saviot
2015bcce89
[code] Created DoubleBufferTextView for functions/variables toolbox.
...
Change-Id: I8fb8d12463de44f244230eca36d4b0404343f57d
2017-12-01 12:06:05 +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
1c25848139
[code] Modified mandelbrot script template.
...
Change-Id: Iee1ad23bf37f71564cdf5f23203c12149ed7fda8
2017-12-01 12:06:05 +01:00
Léa Saviot
37a2def2f1
[code] The maximal number of scripts is stored in the ScriptStore.
...
It was in the MenuController before.
Change-Id: I5f48465d92b53079dc358feec7a4b713875c7e2d
2017-12-01 12:06:05 +01:00
Léa Saviot
9d82804ff3
[code/emscripten] On emscripten, fixed waiting after a Python drawing.
...
The user can now push OK or Back to remove a Python drawing.
Change-Id: I293064a9458f8c0c6d0da5351500600fd9e82706
2017-12-01 12:06:05 +01:00
Léa Saviot
8dfeaa1f63
[code] Fixed bug in Accordion.
...
The last edited buffer was not properly computed.
Change-Id: I7aadbc6e3ea41b3b0e344276933dca14c505ee71
2017-12-01 12:06:03 +01:00
Émilie Feral
3dbe526a92
[apps] In settings, add a row in display mode menu to choose the number
...
of significant digits
Change-Id: I5ff19740e0ee7258a6d77054df547f916d9b04c4
2017-12-01 11:53:59 +01:00
Émilie Feral
01d456299f
[apps] Add comment
...
Change-Id: I53bdeb08625a2699408f563b0b3ed6c45744d01d
2017-11-28 17:03:33 +01:00
Émilie Feral
0b0f765f6b
[apps] In calculation, return only approximation when input involves
...
symbols A-Z
Change-Id: Ibf50fb516b01850c5f93c5153f4d550d3e459028
2017-11-28 11:43:06 +01:00
Émilie Feral
51e360aa6f
[apps] In calculation, default XNT is x
...
Change-Id: I9bfef8920a4975b1162e2630aa4c4556537886b1
2017-11-28 11:42:21 +01:00
Léa Saviot
9d57d7f173
[code] Cleaned MenuController.
...
Change-Id: I499fcaf728a4f60557475b64e371a97e362b558d
2017-11-28 10:27:33 +01:00
Léa Saviot
2ce26f2625
[code] Fixed assertion bug in MenuController.
...
The assert should take into account the fact that there might not be any
script.
Change-Id: I68f0e5071ffd011fc5bb1dacc035d2127bdd8176
2017-11-28 10:27:12 +01:00
Émilie Feral
bf2a26d90e
[apps] In calculation, do not accept expression whose corresponding
...
texts is too long
Change-Id: Ic96e5ed42e249d43e21241f8e1a7b1e873f3cad3
2017-11-27 12:07:35 +01:00
Émilie Feral
74a91ac214
[apps] In Calculation, the input text can be longer that the text
...
written by the user (omitted multiplication signs added, parenthesis
...)
Change-Id: Icc9861da847c7e65939ea6a9c337ffb3d1f12e61
2017-11-27 11:13:30 +01:00
Émilie Feral
89485104b8
[apps] In calculation, fix history table row height
...
Change-Id: Ia0ee485b80d6f4db81f480d0e3e8f91b73c912a2
2017-11-24 17:13:21 +01:00
Émilie Feral
2c06727f36
[apps] Simplify expressions in sequence and function applications
...
Change-Id: I2708934d3b5c90e8692e50d939b3a13028b8615e
2017-11-24 14:39:06 +01:00
Émilie Feral
fda382cc0d
[poincare] Change name: evaluate->approximate
...
Change-Id: I649a7c640190713dcf063a4148decd6038e62796
2017-11-24 13:31:44 +01:00
Émilie Feral
76cbd2678d
[poincare] Change names: approximate->approximateToScalar
...
Change-Id: I701451b35909bb577dd729e0ea76a405b9543f23
2017-11-24 12:06:35 +01:00
Émilie Feral
a5c984fce3
[apps] Calculation: change the grey of approximate output
...
Change-Id: Iac001fc581544af0634ad1d7765074f69aa07809
2017-11-23 11:49:52 +01:00
Émilie Feral
8f4c49d8c1
[apps] In calculation, fix the almostEqual aligmnent
...
Change-Id: I26eca4c9c2b5a3b1ad05567e8d5daf76922f2cb7
2017-11-22 14:38:53 +01:00
Romain Goyet
52bdf4a41f
Merge branch 'cas_with_app_copy' into python_console
2017-11-21 18:44:38 +01:00
Léa Saviot
07bc7672e8
[code] Fixed cursor bug when inserting text in editor.
...
Now the cursor moves only if the insterion was successful.
Change-Id: If2f74307aecd4b9b86183a3437a53fd8875c1751
2017-11-21 17:37:48 +01:00
Léa Saviot
711f78f837
[code] Added Kandinsky module and other functions in Toolbox.
...
Change-Id: I81a1323993c91990b13e81cbf4ea2af1ace8ef11
2017-11-21 17:37:48 +01:00
Léa Saviot
c537a59006
[code] Removed "input()" and Random module from the Toolbox catalog.
...
Change-Id: Id9e99cc908d533f018b1fe28f60b6fa26d8ea546
2017-11-21 17:37:48 +01:00
Léa Saviot
f7a6e615ca
[code] The cursor in a toolbox command does not go before a point.
...
The cursor now goes either after the first open parenthesis or at the
end of the command.
Fixed z.real and z.imag.
Change-Id: I46ca3be0415832fd91273ca7fed12ed3d6f125dc
2017-11-21 17:37:48 +01:00
Émilie Feral
7c772d85b7
[apps] In calculation, do not display exact output if it is identical to input
...
Change-Id: I4b0733c7e3090bc2b04c68661bd34cf0b6da17f1
2017-11-21 17:37:25 +01:00
Émilie Feral
b2d6c2e305
[apps] In calculation, avoid blinking when changing selection
...
Change-Id: I8b94362183e1aed0d87cfdfa39b3f67ccbbd8b42
2017-11-21 17:37:25 +01:00
Émilie Feral
35b979798d
[escher] Optimize redrawing when changing features in cells (color,
...
highlight, even)
Change-Id: I0afa8b6fad656d578bb8e071183646196bc816f9
2017-11-21 17:37:25 +01:00
Émilie Feral
5e822a8001
[apps] In calculation, fix scrolling between approximate and exact
...
outputs
Change-Id: I8920cc3eab9f72d4b82cf2361bd1eba02232a268
2017-11-21 17:37:25 +01:00
Émilie Feral
7d30801e68
[apps] Change output colors
...
Change-Id: Ic8cb3f6bf3130c8b5e4c84edc1513353631d0336
2017-11-21 17:37:25 +01:00
Émilie Feral
fe73c69b11
[apps] In calculation, swap exact and approximate outputs
...
Change-Id: I0cbce8b56a37b31d3249a53b35d69098a8d45c78
2017-11-21 17:37:25 +01:00
Émilie Feral
65722ff875
[apps] Fix bug when computing the history cell height in Calculation
...
Change-Id: Ic45f3da26a47b189ef6050d68c25f27c9a1f4bb7
2017-11-21 17:37:25 +01:00
Émilie Feral
bb590bc529
[apps/calculation] Valgrind: fix call to deleted memory
...
Change-Id: I36e25684dfd260e04ce29fe0698c179e372030d4
2017-11-21 17:37:25 +01:00
Émilie Feral
5fd8fda4b1
[calculation] Display exact and approximate results
...
Change-Id: Id5fe5b5db464c45f09bd1a1285def95e738a78c7
2017-11-21 17:37:25 +01:00
Émilie Feral
6c51c584f2
[apps] Change Calculation to hold an exact and an approximate output
...
Change-Id: I1805839e17cd42b82f06ce0a320d20b49cd2a6cd
2017-11-21 17:37:25 +01:00
Léa Saviot
92789330de
[code] Search function in the code Toolbox.
...
When the user types a letter, the toolbox scrolls to the first row that begins
with said letter (without considering if it is lower or upper case). If
there is not such a row, the toolbox scrolls to the first row that has a
letter higher than the typed letter.
Change-Id: I353d23560d8a4d618d96426c393b024e7fb487af
2017-11-21 17:30:04 +01:00
Léa Saviot
95bf921138
[code] The Mandelbrot script now uses complex numbers.
...
Change-Id: I47f14d414c86c09f85093c201d16ef71ce028510
2017-11-21 17:12:42 +01:00
Léa Saviot
a9f4da92c0
[code/python] Fixed the Kandinsky module in Python.
...
User can draw on the 320*220 drawing screen.
Change-Id: I25034b05f21aacc35608358fdb7a4d9924dd22e8
2017-11-21 17:12:38 +01:00
Léa Saviot
c8a5f4dbe2
[code] Fixed bug in console history copy-paste.
...
The ConsoleController also tried to copy-paste the edit textfield.
Change-Id: Ib1e8d003a9c4793c0666d489f4b4278759eff484
2017-11-17 14:05:23 +01:00
Léa Saviot
f2e2e93888
[code] Larger console button in MenuController.
...
Change-Id: Ia8a495d4de95a4a9d6fee698975b2c7e831c4c43
2017-11-17 14:05:23 +01:00
Léa Saviot
c543145aae
[code] Optimized MenuController's script list scrolling speed.
...
To know if the AddScript row should be displayed, we need to compute the free
space size of the accordion, which is very slow. We thus memoized a bool
indicating if the AddScript row should be displayed.
Change-Id: Ia3891c0fc8df9b0b8bf2a9ad053be6dfc848c970
2017-11-17 14:05:23 +01:00
Léa Saviot
6baaa8547a
[code] Execute a script from the script options.
...
A button in the options opens the console, with only the current script
imported.
Change-Id: Ia3053534d6fdb2bd1340ce3c42b7249510c97bbc
2017-11-17 14:05:23 +01:00
Léa Saviot
57633829a9
[code] Split the Menu Controller in two columns.
...
The scripts names are on the right and open the script edition.
The left cells open the script options.
Change-Id: I3fbab8c3861f3395c3206775c92cda3470963b26
2017-11-17 14:05:23 +01:00
Léa Saviot
c294c15072
[code] Changed script auto importation label.
...
Change-Id: Iead9dc6499f2ba7f909a791a29045d88241cd86c
2017-11-17 14:05:23 +01:00