[escher] Add toolbox event handling in responder [apps] Correct the text

field delegate app accordingly

Change-Id: I180fe53aaa1e0929b357d3985f584937fba2ecca
This commit is contained in:
Émilie Feral
2017-02-15 17:53:13 +01:00
parent 5b73eed76a
commit c584d1fb4e
22 changed files with 175 additions and 136 deletions

View File

@@ -7,6 +7,7 @@
#include <assert.h>
using namespace Poincare;
using namespace Shared;
namespace Probability {
@@ -198,11 +199,6 @@ bool CalculationController::handleEvent(Ion::Events::Event event) {
return false;
}
bool CalculationController::textFieldDidReceiveEvent(TextField * textField, Ion::Events::Event event) {
App * myApp = (App *)app();
return myApp->textFieldDidReceiveEvent(textField, event);
}
bool CalculationController::textFieldDidFinishEditing(TextField * textField, const char * text) {
App * probaApp = (App *)app();
Context * globalContext = probaApp->container()->globalContext();
@@ -251,4 +247,8 @@ void CalculationController::updateTitle() {
m_titleBuffer[currentChar-1] = 0;
}
TextFieldDelegateApp * CalculationController::textFieldDelegateApp() {
return (App *)app();
}
}