Commit Graph

1382 Commits

Author SHA1 Message Date
Léa Saviot
239e702d37 [code] Navigation in the console history.
The user can copy previous commands or results, into the clipboard or in
the console prompt.

Change-Id: I280fff2d4937f4d17ab6c8907d6e5c359a322372
2017-11-17 11:59:50 +01:00
Léa Saviot
745eddfa05 [code] Added default Fibonacci script.
Change-Id: I2766fa542ee64722018486a874e9855a5976a788
2017-11-17 11:59:50 +01:00
Léa Saviot
35520fb3d4 [code] Scripts can be automatically imported when the console is opened.
Editing, renaming, deleting or changing the auto-importation of a script
triggers the reloading of the console (the history is cleared, Python
restarted and the scripts re-imported).

Change-Id: If8b933cc077ecd36cab09214b5e7a181aa3ae030
2017-11-17 11:59:50 +01:00
Léa Saviot
45aa526cd6 [code] Fixed SelectableTableView selection problem.
If adding a script fails, the selectableTableView should select the "Add
script" line.

Change-Id: I373cdfa0afcc334e4bf306b1cee4bfb817417980
2017-11-17 11:59:50 +01:00
Léa Saviot
fbb5c70339 [code] Cleaned Script and ScriptStore classes, created accordion.h
A Script object now contains its AutoImport marker, its name and its
content. The ScripStore methods have better names and the optimization
is cleaner.

Change-Id: I1b21af2d23f1c9a34f984309512b0c01b2f1c320
2017-11-17 11:59:50 +01:00
Léa Saviot
a14cfd0aea [code] Script names are displayed and can be edited.
Change-Id: I5acc468920b66673e78da130bf90a74d0c062211
2017-11-17 11:59:50 +01:00
Léa Saviot
68f368fcde [code] The user can delete scripts.
Change-Id: I1b60a4c79a58efe5213add1b1c5d60cdfe85c1e6
2017-11-17 11:59:50 +01:00
Léa Saviot
5de4b5cd67 [code] Each script has a name, stored in the accordeon buffer.
A script can now be imported in the console.
Moved all the MicroPython functions to python/port files.

Change-Id: I0a23e8cb20005719b800e81470e1c574c702c3b7
2017-11-17 11:59:50 +01:00
Léa Saviot
f3200fe2e9 [code] Program store that uses an accordeon buffer to store the
programs. The user can now add scripts.
A contextual menu displays various options when clicking on a script,
such as editing.

Change-Id: I124a17f7584b0beedb897e8499ca0a1bb6c13cbe
2017-11-17 11:59:50 +01:00
Léa Saviot
adabf95b59 [code] The interface is a list with a button at the bottom to
start the console.

Change-Id: I4a4a432db2d4cdc72e9a0ad7aa5904c1ded3c0e1
2017-11-17 11:59:50 +01:00
Léa Saviot
c57f9cf8b1 [code] The Python console compiles and executes commands entered.
It stores and displays the result in the console store.
An empty line returned at the end of the execution is deleted.

Change-Id: Ic90e02e2d91d0a0033413da0588032d9450aefd0
2017-11-17 11:59:50 +01:00
Léa Saviot
493cef0d4d [code] Python console that stores and displays commands that are
entered.

Change-Id: I0343c38b60f4bbea6dfab173e2b5f46f66b83251
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
2e6ee2e1f2 [i18n] Fix bug in universal messages
Change-Id: I5c228ae1ba782ee66bace56b9f909455585089ec
2017-10-30 09:40:26 +01:00
Romain Goyet
3d10d3e951 Use zero-initialization for character arrays
It makes some not-fully-compliant compilers happy
2017-10-19 17:31:40 +02:00
Jacob Young
17ac54cad5 Use cmath in c++ files. 2017-10-13 18:08:15 +02:00
Jacob Young
da1e66e798 Fix #115 by fixing the math.h and cmath includes. 2017-10-13 18:08:15 +02:00
Adrien Bertrand
e0558551e0 [settings] allow left event to pop out of the lang controller (fix #180) 2017-10-02 11:32:56 +02:00
Romain Goyet
9bf4846b06 [apps] Leaner i18n script 2017-09-29 17:08:46 +02:00
Romain Goyet
e6ed6c74a4 [apps] Split the i18n in multiple files
A Python script aggregates all i18n files and merges them.
We now can pick a list of locales to build in EPSILON_I18N_LANGUAGES
2017-09-29 17:08:46 +02:00
Léa Saviot
f1374e584e [apps] Decrease the abscissa column's width 2017-09-29 16:19:54 +02:00
Romain Goyet
bcdad4a5f9 [apps] Use the shared language controller in the settings app 2017-09-28 17:17:27 +02:00
Romain Goyet
cb097abe95 [apps] Split on_boarding/language_controller in two 2017-09-28 17:17:27 +02:00
Émilie Feral
2ec4b6354d [apps] In i18n, change sample standard deviation name in Spanish
Change-Id: Ie1b3dd27bb767d4afae573284311062d27cff0df
2017-09-27 17:25:46 +02:00
Émilie Feral
5bce67098b [apps] Clean warnings
Change-Id: I9efc803edac4103faafb264849bdb9283640a52b
2017-09-27 09:46:19 +02:00
Émilie Feral
c5e3660c4a [apps] Change name of standard deviations in French
Change-Id: I5e1f96c7ead2e334139cec72652257b41326a384
2017-09-27 09:46:02 +02:00
Émilie Feral
d7abc80097 [apps] Add a row in statistics calculation
Change-Id: I930abde428850a0b7a76e3f77ef961ee195da042
2017-09-27 09:46:02 +02:00
Ian Abbott
357d76515b [ion][apps] Remove redundant AlphaLockShift state
Since the 'shift' key can now toggle between the AlphaLock and
ShiftAlphaLock states, there is no way to enter the AlphaLockShift
state, so remove it.
2017-09-26 17:44:25 +02:00
Adrien Bertrand
851c145d31 shift alpha lock view: fix missing return in numberOfSubviews
According to arm g++ 6.3.
2017-09-20 11:57:15 +02:00
Romain Goyet
dcdd27d6bf [apps] Apps can be picked and ordered at compile-time 2017-09-20 11:18:39 +02:00
Romain Goyet
173c0249a2 [apps] Split the AppsContainer
Most classes who use AppsContainer don't need to know its whole memory
layout. Let's split AppsContainer in two, and only run will use complete
version.
2017-09-20 11:18:39 +02:00
Jacob Young
dcbc860b6d Fallback to X in non-graphing apps since x and n are not usable. 2017-09-20 11:08:07 +02:00
Jacob Young
128a6acb32 Fix #72 by choosing what to insert for the [x,n,t] key based on where in the expression the cursor is. 2017-09-20 11:08:07 +02:00
Jacob Young
5ffd7cc270 Auto insert ans before sto. 2017-09-15 17:05:24 +02:00
TJ Horner
c7ac692dde Fix a typo: "regerssion" -> "regression (#118) 2017-09-12 08:58:31 +02:00
Émilie Feral
01efc3c95d [apps/settings] Connect settings gauge to prefered brightness 2017-09-06 17:34:18 +02:00
Émilie Feral
7c1d540a87 [apps] Add a brightness level in preferences 2017-09-06 17:34:18 +02:00
Émilie Feral
7a5bcf3e0f [apps/settings] Add a row 'Brightness' to settings 2017-09-06 17:34:18 +02:00
mjmdavis
a6ee0e4f82 Removed the automatic insertion of 'ans' when pressing '-'. 2017-09-06 10:15:24 +02:00
EmilieNumworks
21f6723daa Merge pull request #85 from adriweb/fix/overflow-poincare-stringlayout
[various apps] StringLayout: fix buffer overflow and use auto size
2017-09-05 17:07:53 +02:00
EmilieNumworks
da5ec51731 Merge pull request #67 from mateoconlechuga/master
Add shift activated text (Fix #22)
2017-09-05 16:21:48 +02:00
Adrien Bertrand
d150837d7d [various apps] StringLayout: fix buffer overflow and use auto size
* The buffer overflow was happening when changing the complex format in
the settings.
* All const char arrays manually ending with a nul char were trimmed of
it considering StringLayout adds it already.
* Use automatic compile-time array-size when possible, avoids mistakes
2017-09-04 23:31:51 +02:00
Adrien Bertrand
503786ec72 [apps/settings] sub controller: fix buffer overflow.
- Caught by ASan
- The 3 and 4 length were swapped
- It's now using compile-time automatic sizes
2017-09-04 21:35:53 +02:00
mateoconlechuga
22b74892d7 Match names everywhere 2017-09-01 20:18:33 -06:00
mateoconlechuga
9d155f325b Match names everywhere 2017-09-01 20:06:59 -06:00
mateoconlechuga
ae3e989314 Add shift activated text (Fix #22)
This adds the text 'shift' when the shift key is activated. No functionality changes were made.
2017-09-01 19:29:00 -06:00
Romain Goyet
88630addd4 Fix a comment 2017-09-01 14:38:46 +02:00
Adrien Bertrand
3c2a99bdd6 [apps/code] template program: don't memcpy from beyond the string
- Was caught by ASan
- Added a static_assert on the length just in case
- Big C strings concats replaced by raw C++ literal for clarity
2017-08-31 20:53:54 +02:00
Émilie Feral
8349f899b7 [home] Fix reload view 2017-08-30 13:20:59 +02:00
Émilie Feral
31fbeda468 [apps/code] Change demo program
Change-Id: I5cce0bfd5bc30fe46cb039883cbeda7c29d45a64
2017-08-28 14:08:36 +02:00