[escher][apps] CHange textField API

Change-Id: I766d153b7f7429473f297707a08358051123accc
This commit is contained in:
Émilie Feral
2016-12-13 16:00:55 +01:00
parent fed6664b42
commit 8c284ba34f
35 changed files with 470 additions and 378 deletions

View File

@@ -1,4 +1,5 @@
#include "goto_parameter_controller.h"
#include "../app.h"
#include <assert.h>
namespace Graph {
@@ -9,6 +10,8 @@ GoToParameterController::GoToParameterController(Responder * parentResponder, Gr
m_graphView(graphView),
m_function(nullptr)
{
m_abscisseCell.setParentResponder(&m_selectableTableView);
m_abscisseCell.setDelegate(this);
}
ExpressionTextFieldDelegate * GoToParameterController::textFieldDelegate() {
@@ -46,4 +49,10 @@ int GoToParameterController::reusableCellCount() {
void GoToParameterController::setFunction(Function * function) {
m_function = function;
}
bool GoToParameterController::textFieldDidReceiveEvent(TextField * textField, Ion::Events::Event event) {
App * myApp = (App *)app();
return myApp->textFieldDidReceiveEvent(textField, event);
}
}