[apps/go_to_param_cntrlr] Change parameter name according to func

This commit is contained in:
Léa Saviot
2019-09-03 15:02:10 +02:00
parent d2184d01bd
commit 4436967c57
7 changed files with 27 additions and 0 deletions

View File

@@ -8,6 +8,7 @@
#include <poincare/serialization_helper.h>
#include <escher/palette.h>
#include <ion/unicode/utf8_decoder.h>
#include <apps/i18n.h>
#include <float.h>
#include <cmath>
@@ -93,6 +94,18 @@ Poincare::Expression CartesianFunction::expressionReduced(Poincare::Context * co
return result;
}
I18n::Message CartesianFunction::parameterMessageName() const {
PlotType type = plotType();
if (type == PlotType::Cartesian) {
return I18n::Message::X;
}
if (type == PlotType::Polar) {
return I18n::Message::Theta;
}
assert(plotType() == PlotType::Parametric);
return I18n::Message::T;
}
CodePoint CartesianFunction::symbol() const {
switch (plotType()) {
case PlotType::Cartesian: