[poincare] Change Context API

Change-Id: I2818866fb41bf73c39396fbd85600e586a79065c
This commit is contained in:
Émilie Feral
2016-12-14 16:50:51 +01:00
parent 75948af80f
commit 7af3979d3b
74 changed files with 488 additions and 451 deletions

View File

@@ -32,7 +32,7 @@ void FloatParameterController::willDisplayCellForIndex(TableViewCell * cell, int
bool FloatParameterController::textFieldDidFinishEditing(TextField * textField, const char * text) {
AppsContainer * appsContainer = (AppsContainer *)app()->container();
Context * globalContext = appsContainer->context();
Context * globalContext = appsContainer->globalContext();
float floatBody = Expression::parse(text)->approximate(*globalContext);
setParameterAtIndex(m_selectableTableView.selectedRow(), floatBody);
willDisplayCellForIndex(m_selectableTableView.cellAtLocation(m_selectableTableView.selectedColumn(),