mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[escher] Change dynamic view controller paradigm
Change-Id: I57fd41c9b9ad8a1e8b684b97fdf80ddffd71881d
This commit is contained in:
@@ -36,26 +36,24 @@ void StoreController::willDisplayCellAtLocation(HighlightCell * cell, int i, int
|
||||
mytitleCell->setExpression(m_titleLayout[i]);
|
||||
}
|
||||
|
||||
void StoreController::unloadView() {
|
||||
for (int i = 0; i < k_numberOfTitleCells; i++) {
|
||||
assert(m_titleCells[i] != nullptr);
|
||||
delete m_titleCells[i];
|
||||
m_titleCells[i] = nullptr;
|
||||
}
|
||||
Shared::StoreController::unloadView();
|
||||
}
|
||||
|
||||
HighlightCell * StoreController::titleCells(int index) {
|
||||
assert(index >= 0 && index < k_numberOfTitleCells);
|
||||
return m_titleCells[index];
|
||||
}
|
||||
|
||||
View * StoreController::createView() {
|
||||
View * StoreController::loadView() {
|
||||
for (int i = 0; i < k_numberOfTitleCells; i++) {
|
||||
assert(m_titleCells[i] == nullptr);
|
||||
m_titleCells[i] = new EvenOddExpressionCell(0.5f, 0.5f);
|
||||
}
|
||||
return Shared::StoreController::createView();
|
||||
return Shared::StoreController::loadView();
|
||||
}
|
||||
|
||||
void StoreController::unloadView(View * view) {
|
||||
for (int i = 0; i < k_numberOfTitleCells; i++) {
|
||||
delete m_titleCells[i];
|
||||
m_titleCells[i] = nullptr;
|
||||
}
|
||||
Shared::StoreController::unloadView(view);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user