[apps] Code: use the FileSystem to store the scripts instead of an

accordion
This commit is contained in:
Émilie Feral
2018-02-26 17:01:48 +01:00
committed by EmilieNumworks
parent c37696133d
commit 19ca0f0640
18 changed files with 149 additions and 540 deletions

View File

@@ -22,10 +22,10 @@ public:
ConsoleController * consoleController() { return &m_consoleController; }
StackViewController * stackViewController();
void renameSelectedScript();
void deleteScriptAtIndex(int i);
void deleteScript(Script script);
void reloadConsole();
void loadPythonIfNeeded();
void openConsoleWithScriptAtIndex(int scriptIndex);
void openConsoleWithScript(Script script);
void scriptContentEditionDidFinish();
/* ViewController */
@@ -97,7 +97,7 @@ private:
/* In the initializer list of the MenuController constructor, we initialize
* m_scriptCells by copying k_maxNumberOfDisplayableScriptCells times the
* constructor of an EvenOddEditableTextCell. */
char m_draftTextBuffer[TextField::maxBufferSize()];
char m_draftTextBuffer[Script::k_nameSize];
EvenOddCellWithEllipsis m_scriptParameterCells[k_maxNumberOfDisplayableScriptCells];
Shared::NewFunctionCell m_addNewScriptCell;
EvenOddCell m_emptyCell;