[escher] Rework of timers and bigger text in toolboxes

This commit is contained in:
Laury
2022-06-24 22:35:36 +02:00
parent 391fd5e243
commit 0b2a581177
74 changed files with 407 additions and 208 deletions

View File

@@ -175,7 +175,7 @@ void MainController::willDisplayCellForIndex(HighlightCell * cell, int index) {
myGauge->setLevel((float)globalPreferences->brightnessLevel()/(float)Ion::Backlight::MaxBrightness);
return;
}
MessageTableCell * myCell = (MessageTableCell *)cell;
MessageTableCell<> * myCell = (MessageTableCell<> *)cell;
myCell->setMessage(title);
if (model()->childAtIndex(index)->label() == I18n::Message::Language) {
int index = (int)(globalPreferences->language());

View File

@@ -88,7 +88,7 @@ void ExamModeController::willDisplayCellForIndex(HighlightCell * cell, int index
I18n::Message thisLabel = m_messageTreeModel->childAtIndex(index)->label();
if (GlobalPreferences::sharedGlobalPreferences()->isInExamMode() && (thisLabel == I18n::Message::ActivateExamMode || thisLabel == I18n::Message::ExamModeActive)) {
MessageTableCell * myCell = (MessageTableCell *)cell;
MessageTableCell<> * myCell = (MessageTableCell<> *)cell;
myCell->setMessage(I18n::Message::ExamModeActive);
}
if (thisLabel == I18n::Message::ExamModeMode) {

View File

@@ -27,7 +27,7 @@ private:
GlobalPreferences::ExamMode examMode();
static constexpr int k_maxNumberOfCells = 4;
SelectableViewWithMessages m_contentView;
MessageTableCell m_cell[k_maxNumberOfCells];
MessageTableCell<> m_cell[k_maxNumberOfCells];
PreferencesController m_ledController;
PreferencesController m_examModeModeController;
MessageTableCellWithChevronAndMessage m_examModeCell;

View File

@@ -75,7 +75,7 @@ int GenericSubController::typeAtLocation(int i, int j) {
}
void GenericSubController::willDisplayCellForIndex(HighlightCell * cell, int index) {
MessageTableCell * myCell = (MessageTableCell *)cell;
MessageTableCell<> * myCell = (MessageTableCell<> *)cell;
myCell->setMessage(m_messageTreeModel->childAtIndex(index)->label());
}