mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 22:00:28 +01:00
[escher] Create dynamic view controller
Change-Id: Ic8fe6d095666aa7af76c8d328b0bf83342a09453
This commit is contained in:
@@ -26,6 +26,12 @@ 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),
|
||||
@@ -231,3 +237,13 @@ void ButtonRowController::viewWillAppear() {
|
||||
void ButtonRowController::viewDidDisappear() {
|
||||
m_contentView.mainViewController()->viewDidDisappear();
|
||||
}
|
||||
|
||||
void ButtonRowController::loadView() {
|
||||
m_contentView.buttonRowDelegate()->loadButtonView();
|
||||
m_contentView.mainViewController()->loadView();
|
||||
}
|
||||
|
||||
void ButtonRowController::unloadView() {
|
||||
m_contentView.buttonRowDelegate()->unloadButtonView();
|
||||
m_contentView.mainViewController()->unloadView();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user