mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps] enable node navigation controller to use different cell types
(implemented by its subclasses) Change-Id: I44ef187c0142f049c710a4515c3dc0edf5573927
This commit is contained in:
@@ -19,6 +19,19 @@ const char * VariableBoxController::title() const {
|
||||
return "VariableBoxController";
|
||||
}
|
||||
|
||||
TableViewCell * VariableBoxController::leafCellAtIndex(int index) {
|
||||
return &m_leafCells[index];
|
||||
}
|
||||
|
||||
TableViewCell * VariableBoxController::nodeCellAtIndex(int index) {
|
||||
return &m_nodeCells[index];
|
||||
}
|
||||
|
||||
void VariableBoxController::willDisplayCellForIndex(TableViewCell * cell, int index) {
|
||||
MenuListCell * myCell = (MenuListCell *)cell;
|
||||
myCell->setText(m_listViewController.nodeModel()->children(index)->label());
|
||||
}
|
||||
|
||||
Node * VariableBoxController::nodeModel() {
|
||||
return (Node *)&variableBoxModel;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user