Numworks Epsilon  1.4.1
Graphing Calculator Operating System
integral_graph_controller.cpp
Go to the documentation of this file.
2 #include "../../shared/text_field_delegate.h"
3 #include "../../../poincare/src/layout/string_layout.h"
4 #include "../app.h"
5 
6 #include <assert.h>
7 #include <cmath>
8 #include <stdlib.h>
9 
10 using namespace Shared;
11 using namespace Poincare;
12 
13 namespace Graph {
14 
15 IntegralGraphController::IntegralGraphController(Responder * parentResponder, GraphView * graphView, InteractiveCurveViewRange * graphRange, CurveViewCursor * cursor) :
16  SumGraphController(parentResponder, graphView, graphRange, cursor, Ion::Charset::Integral)
17 {
18 }
19 
22 }
23 
24 I18n::Message IntegralGraphController::legendMessageAtStep(Step step) {
25  switch(step) {
27  return I18n::Message::SelectLowerBound;
29  return I18n::Message::SelectUpperBound;
30  default:
31  return I18n::Message::Default;
32  }
33 }
34 
35 double IntegralGraphController::cursorNextStep(double x, int direction) {
37 }
38 
39 ExpressionLayout * IntegralGraphController::createFunctionLayout(const char * functionName) {
40  char buffer[7] = "0(x)dx";
41  buffer[0] = functionName[0];
42  return new StringLayout(buffer, strlen(buffer), KDText::FontSize::Small);
43 }
44 
45 }
Charset
Definition: charset.h:6
Definition: app.cpp:9
enum Message uint16_t enum Language uint16_t const char * translate(Message m, Language l=(Language) 0)
Definition: i18n.cpp:5
size_t strlen(const char *s)
Definition: strlen.c:3
InteractiveCurveViewRange * m_graphRange
Definition: backlight.h:6