[apps/code] Default script name is in class Script, not menu controller

This commit is contained in:
Léa Saviot
2018-10-26 17:55:25 +02:00
committed by Émilie Feral
parent 51b09193ea
commit fd533834ef
6 changed files with 78 additions and 78 deletions

View File

@@ -69,17 +69,10 @@ private:
static constexpr int ScriptCellType = 1;
static constexpr int ScriptParameterCellType = 2;
static constexpr int EmptyCellType = 3;
static constexpr int k_defaultScriptNameMaxSize = 9 + 2 + 1;
// k_defaultScriptNameMaxSize is the length of a name between script1.py and
// script99.py.
// 9 = strlen("script.py")
// 2 = maxLength of integers between 1 and 99.
// 1 = length of null terminating char.
void addScript();
void configureScript();
void editScriptAtIndex(int scriptIndex);
void numberedDefaultScriptName(char * buffer);
void intToText(int i, char * buffer);
void updateAddScriptRowDisplay();
ScriptStore * m_scriptStore;
ScriptNameCell m_scriptCells[k_maxNumberOfDisplayableScriptCells];