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