[apps] Implement TextFieldDelegate methods in GraphControllers

This commit is contained in:
Ruben Dashyan
2019-03-04 14:43:33 +01:00
committed by Émilie Feral
parent 0f98face6a
commit 0e1c1a017d
12 changed files with 93 additions and 18 deletions

View File

@@ -27,6 +27,16 @@ ViewController * FunctionGraphController::initialisationParameterController() {
return &m_initialisationParameterController;
}
void FunctionGraphController::didBecomeFirstResponder() {
if (curveView()->isMainViewSelected()) {
bannerView()->abscissaValue()->setParentResponder(this);
bannerView()->abscissaValue()->setDelegates(textFieldDelegateApp(), this);
app()->setFirstResponder(bannerView()->abscissaValue());
} else {
InteractiveCurveViewController::didBecomeFirstResponder();
}
}
void FunctionGraphController::viewWillAppear() {
functionGraphView()->setBannerView(bannerView());
functionGraphView()->setAreaHighlight(NAN,NAN);