mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 14:20:39 +01:00
[apps/go_to_param_cntrlr] Change parameter name according to func
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user