[escher] Make table view accept only table view cell

Change-Id: I393375d0887e692a85747198d5b42d26d207dc83
This commit is contained in:
Émilie Feral
2016-10-24 18:17:14 +02:00
parent 9ffb74fcca
commit f809d089d6
42 changed files with 132 additions and 121 deletions

View File

@@ -86,10 +86,10 @@ int FunctionParameterController::numberOfRows() {
return k_totalNumberOfCell;
};
View * FunctionParameterController::reusableCell(int index) {
TableViewCell * FunctionParameterController::reusableCell(int index) {
assert(index >= 0);
assert(index < k_totalNumberOfCell);
View * cells[] = {&m_displayDerivativeColumn, &m_copyColumn};
TableViewCell * cells[] = {&m_displayDerivativeColumn, &m_copyColumn};
return cells[index];
}
@@ -101,7 +101,7 @@ KDCoordinate FunctionParameterController::cellHeight() {
return 35;
}
void FunctionParameterController::willDisplayCellForIndex(View * cell, int index) {
void FunctionParameterController::willDisplayCellForIndex(TableViewCell * cell, int index) {
if (cell == &m_displayDerivativeColumn) {
SwitchView * switchView = (SwitchView *)m_displayDerivativeColumn.contentView();
switchView->setState(m_function->displayDerivative());