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:
@@ -26,12 +26,6 @@ ButtonRowController * ButtonRowDelegate::header() {
|
||||
return m_header;
|
||||
}
|
||||
|
||||
void ButtonRowDelegate::loadButtonView() {
|
||||
}
|
||||
|
||||
void ButtonRowDelegate::unloadButtonView() {
|
||||
}
|
||||
|
||||
ButtonRowController::ContentView::ContentView(ViewController * mainViewController, ButtonRowDelegate * delegate, Position position, Style style) :
|
||||
View(),
|
||||
m_mainViewController(mainViewController),
|
||||
@@ -230,21 +224,10 @@ bool ButtonRowController::handleEvent(Ion::Events::Event event) {
|
||||
void ButtonRowController::viewWillAppear() {
|
||||
/* We need to layout subviews at first appearance because the number of
|
||||
* buttons might have changed between 2 appearences. */
|
||||
m_contentView.mainViewController()->viewWillAppear();
|
||||
m_contentView.layoutSubviews();
|
||||
m_contentView.mainViewController()->viewWillAppear();
|
||||
}
|
||||
|
||||
void ButtonRowController::viewDidDisappear() {
|
||||
m_contentView.mainViewController()->viewDidDisappear();
|
||||
}
|
||||
|
||||
void ButtonRowController::loadView() {
|
||||
m_contentView.buttonRowDelegate()->loadButtonView();
|
||||
m_contentView.mainViewController()->loadView();
|
||||
m_contentView.layoutSubviews();
|
||||
}
|
||||
|
||||
void ButtonRowController::unloadView() {
|
||||
m_contentView.buttonRowDelegate()->unloadButtonView();
|
||||
m_contentView.mainViewController()->unloadView();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user