The Toolbox did not always redraw itself when needed (for instance, when going
back from the For submenu in the Code Toolbox).
Change-Id: I157b883e321a497b4b958aae53c4e8406bad1725
When there is already the maximal number of scripts or when the
ScriptStore accordion buffer is full.
Change-Id: I0d43d42626da7f060a2309c66f1806b35a29bf38
The scroll is now reloaded when text is inserted or a new line is
entered. When opening a script, the cursor moves to the end of the
script.
Change-Id: I027ea80db485916fc3fc962cfa9e032ca0bbc81e
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
When the script name is empty after renaming a script, a default new name is
given. We look for the first available scriptI.py name, with 0<I<100.
Change-Id: If17f1df95c552320c0412ce652e7ae7e0cfd9cbc
When the user scrolls the history, the draft command is not erased.
When pasting a previous command, the text is inserted at the cursor
location.
Change-Id: I1cd9645de74f34fad4ed0898203e05bd3352456a
A boolean in ViewController states if the ViewController wants MaximumSpace (do
not show any stack view headers), or if it does not want to add its own title to
the stack view headers. If the ViewController's title is null, it is not added
to the stack view headers.
By default, ButtonRowControllers do not want to add their title (because they
are only used for now in TabViews, where the title is already displayed in the
tab).
Change-Id: I9e4c64b845262e4d44eb03cf769950f9c9e67a3a
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
A TextField delegate should process events before the TextField itself.
EditableCellTableViewController now verifies the position of the cursor to
determine if a Left or Right event should finish the TextField edition.
Change-Id: I6c8e78d6d02c7ab87e7d81770b4242a16fecde32
For instance, the "power" event should insert "**" in the text, not "^".
Added a universal i18n file in apps/code.
Change-Id: I5d067b0c5b86590af95aa98856522d54e42acba6
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
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
A script can now be imported in the console.
Moved all the MicroPython functions to python/port files.
Change-Id: I0a23e8cb20005719b800e81470e1c574c702c3b7
programs. The user can now add scripts.
A contextual menu displays various options when clicking on a script,
such as editing.
Change-Id: I124a17f7584b0beedb897e8499ca0a1bb6c13cbe
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