[apps/code] Do not display subtitles in var box from console

This commit is contained in:
Léa Saviot
2020-05-06 11:15:55 +02:00
committed by Émilie Feral
parent 780c593c26
commit f763bb50ac
4 changed files with 18 additions and 8 deletions

View File

@@ -34,6 +34,7 @@ public:
ViewController * emptyViewController() override { return &m_variableBoxEmptyController; }
/* VariableBoxController */
void setDisplaySubtitles(bool display) { m_displaySubtitles = display; }
void loadFunctionsAndVariables(int scriptIndex, const char * textToAutocomplete, int textToAutocompleteLength);
const char * autocompletionForText(int scriptIndex, const char * textToAutocomplete, int textToAutocompleteLength, int * textToInsertLength, bool * addParentheses);
const char * autocompletionAlternativeAtIndex(int textToAutocompleteLength, int * textToInsertLength, bool * addParentheses, int index, int * indexToUpdate = nullptr);
@@ -112,6 +113,7 @@ private:
size_t m_builtinNodesCount;
size_t m_importedNodesCount;
int m_shortenResultCharCount; // This is used to send only the completing text when we are autocompleting
bool m_displaySubtitles;
};
}