mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps] Implement TextFieldDelegate methods in GraphControllers
This commit is contained in:
committed by
Émilie Feral
parent
0f98face6a
commit
0e1c1a017d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user