[escher] Reorganize all cells'name and factorize their layouts

Change-Id: I69900ee98ff6a6868f96d70a0e335a589ef16c3f
This commit is contained in:
Émilie Feral
2017-02-17 10:56:21 +01:00
parent 4a1735c29e
commit 2e16365100
149 changed files with 903 additions and 914 deletions

View File

@@ -84,7 +84,7 @@ int VariableBoxController::ContentViewController::numberOfRows() {
}
}
TableViewCell * VariableBoxController::ContentViewController::reusableCell(int index, int type) {
HighlightCell * VariableBoxController::ContentViewController::reusableCell(int index, int type) {
assert(type < 2);
assert(index >= 0);
if (type == 0) {
@@ -103,10 +103,10 @@ int VariableBoxController::ContentViewController::reusableCellCount(int type) {
return k_numberOfMenuRows;
}
void VariableBoxController::ContentViewController::willDisplayCellForIndex(TableViewCell * cell, int index) {
void VariableBoxController::ContentViewController::willDisplayCellForIndex(HighlightCell * cell, int index) {
if (m_currentPage == Page::RootMenu) {
const char * label = nodeLabelAtIndex(index);
MenuListCell * myCell = (MenuListCell *)cell;
PointerTableCell * myCell = (PointerTableCell *)cell;
myCell->setText(label);
return;
}