mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-30 12:10:03 +02:00
[apps/graph] Add a parameter page to the graph/list to test the stack controller of list
Change-Id: Ibee4d038f4917567d4a237fe4b7a813b79cb1c81
This commit is contained in:
committed by
Romain Goyet
parent
496a10aebd
commit
c337b5088f
@@ -4,13 +4,15 @@
|
||||
ListController::ListController(Responder * parentResponder, Graph::FunctionStore * functionStore) :
|
||||
ViewController(parentResponder),
|
||||
m_tableView(TableView(this)),
|
||||
m_activeCell(0),
|
||||
m_activeCell(-1),
|
||||
m_manualScrolling(0),
|
||||
m_functionStore(functionStore)
|
||||
m_functionStore(functionStore),
|
||||
m_parameterController(ParameterController(this))
|
||||
{
|
||||
}
|
||||
|
||||
View * ListController::view() {
|
||||
setActiveCell(0);
|
||||
return &m_tableView;
|
||||
}
|
||||
|
||||
@@ -39,6 +41,9 @@ bool ListController::handleEvent(Ion::Events::Event event) {
|
||||
setActiveCell(m_activeCell-1);
|
||||
return true;
|
||||
case Ion::Events::Event::ENTER:
|
||||
((StackViewController *) parentResponder())->push(&m_parameterController);
|
||||
return true;
|
||||
case Ion::Events::Event::PLUS:
|
||||
m_manualScrolling += 10;
|
||||
m_tableView.setContentOffset({0, m_manualScrolling});
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user