[poincare] Create a ContextWithParent that implements expressionTypeForIdentifier

This commit is contained in:
Émilie Feral
2020-01-17 14:34:28 +01:00
committed by Léa Saviot
parent c629cb66ba
commit 60048cb9a9
20 changed files with 65 additions and 84 deletions

View File

@@ -12,20 +12,15 @@ using namespace Shared;
namespace Statistics {
StoreController::StoreController(Responder * parentResponder, InputEventHandlerDelegate * inputEventHandlerDelegate, Store * store, ButtonRowController * header) :
StoreController::StoreController(Responder * parentResponder, InputEventHandlerDelegate * inputEventHandlerDelegate, Store * store, ButtonRowController * header, Context * parentContext) :
Shared::StoreController(parentResponder, inputEventHandlerDelegate, store, header),
m_titleCells{},
m_store(store),
m_statisticsContext(m_store),
m_statisticsContext(m_store, parentContext),
m_storeParameterController(this, store, this)
{
}
StoreContext * StoreController::storeContext() {
m_statisticsContext.setParentContext(AppsContainer::sharedAppsContainer()->globalContext());
return &m_statisticsContext;
}
void StoreController::setFormulaLabel() {
int series = selectedColumn() / Store::k_numberOfColumnsPerSeries;
int isValueColumn = selectedColumn() % Store::k_numberOfColumnsPerSeries == 0;