mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 00:00:44 +01:00
[apps] add a method to get the global context in appsContainer
Change-Id: I4b7a4c1c64ae21c7e4f0193b3314d96cef805cbb
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "values_parameter_controller.h"
|
||||
#include "../app.h"
|
||||
#include "../../constant.h"
|
||||
#include "../../apps_container.h"
|
||||
#include <assert.h>
|
||||
|
||||
namespace Graph {
|
||||
@@ -110,8 +111,8 @@ void ValuesParameterController::editInterval(bool overwrite, char initialDigit)
|
||||
TextMenuListCell * cell = (TextMenuListCell *)valuesParameterController->reusableCell(activeCell);
|
||||
InputViewController * myInputViewController = (InputViewController *)sender;
|
||||
const char * textBody = myInputViewController->textBody();
|
||||
App * myApp = (App *)valuesParameterController->app();
|
||||
Context * globalContext = myApp->globalContext();
|
||||
AppsContainer * appsContainer = (AppsContainer *)valuesParameterController->app()->container();
|
||||
Context * globalContext = appsContainer->context();
|
||||
float floatBody = Expression::parse(textBody)->approximate(*globalContext);
|
||||
valuesParameterController->setIntervalParameterAtIndex(activeCell, floatBody);
|
||||
valuesParameterController->willDisplayCellForIndex(cell, activeCell);
|
||||
|
||||
Reference in New Issue
Block a user