mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 07:40:42 +01:00
[apps] Graph: add the maximum graph controller
This commit is contained in:
committed by
EmilieNumworks
parent
6703fedf54
commit
6fecd091f4
@@ -14,7 +14,8 @@ CalculationParameterController::CalculationParameterController(Responder * paren
|
||||
m_function(nullptr),
|
||||
m_tangentGraphController(nullptr, graphView, bannerView, range, cursor),
|
||||
m_integralGraphController(nullptr, graphView, range, cursor),
|
||||
m_minimumGraphController(nullptr, graphView, bannerView, range, cursor)
|
||||
m_minimumGraphController(nullptr, graphView, bannerView, range, cursor),
|
||||
m_maximumGraphController(nullptr, graphView, bannerView, range, cursor)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -35,6 +36,10 @@ bool CalculationParameterController::handleEvent(Ion::Events::Event event) {
|
||||
if (event == Ion::Events::OK || event == Ion::Events::EXE) {
|
||||
ViewController * controller = nullptr;
|
||||
switch(selectedRow()) {
|
||||
case 1:
|
||||
m_maximumGraphController.setFunction(m_function);
|
||||
controller = &m_maximumGraphController;
|
||||
break;
|
||||
case 2:
|
||||
m_minimumGraphController.setFunction(m_function);
|
||||
controller = &m_minimumGraphController;
|
||||
|
||||
Reference in New Issue
Block a user