The Var box controller deinited python on exit, and the console
controller did not reload python + it made the console controller lose
all its context, such as imported scripts
Now the MenuController changes the cursor location if needed once the
Textfield has handled the event.
Change-Id: I1ad3202402623dfa9a683866fef90ca33ddd6be0
The drawing should happen after the ConsoleController is pushed on the
screen. This means that the importation of scripts should be done at the
ConsoleController's viewWillAppear.
Change-Id: I756ac9de30f339dc4f6aa8d3995abea0a46d03b5
When disabling a script auto-import parameter, it would not import
itself when executing it from its script parameters menu.
Change-Id: If58f6fe1be4792b551ad3b462f1f43e8b82e8148
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
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
The scripts names are on the right and open the script edition.
The left cells open the script options.
Change-Id: I3fbab8c3861f3395c3206775c92cda3470963b26
When there is already the maximal number of scripts or when the
ScriptStore accordion buffer is full.
Change-Id: I0d43d42626da7f060a2309c66f1806b35a29bf38
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
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