[apps/code] ConsoleController: factorize code to reload the table

This commit is contained in:
Émilie Feral
2020-03-20 14:40:02 +01:00
parent 659da1dff8
commit 53ec023ea0
2 changed files with 19 additions and 26 deletions

View File

@@ -82,6 +82,7 @@ private:
static constexpr int k_numberOfLineCells = (Ion::Display::Height - Metric::TitleBarHeight) / 14 + 2; // 14 = KDFont::SmallFont->glyphSize().height()
// k_numberOfLineCells = (240 - 18)/14 ~ 15.9. The 0.1 cell can be above and below the 15 other cells so we add +2 cells.
static constexpr int k_outputAccumulationBufferSize = 100;
bool reloadData(bool isEditing);
void flushOutputAccumulationBufferToStore();
void appendTextToOutputAccumulationBuffer(const char * text, size_t length);
void emptyOutputAccumulationBuffer();