Numworks Epsilon  1.4.1
Graphing Calculator Operating System
function_app.cpp
Go to the documentation of this file.
1 #include "function_app.h"
2 #include "../apps_container.h"
3 
4 using namespace Poincare;
5 
6 namespace Shared {
7 
8 FunctionApp::Snapshot::Snapshot() :
9  m_cursor(),
10  m_interval(),
11  m_indexFunctionSelectedByCursor(0),
12  m_modelVersion(0),
13  m_rangeVersion(0),
14  m_angleUnitVersion(Expression::AngleUnit::Radian)
15 {
17  m_interval.setEnd(10);
19 }
20 
22  return &m_cursor;
23 }
24 
26  return &m_modelVersion;
27 }
28 
30  return &m_rangeVersion;
31 }
32 
34  return &m_angleUnitVersion;
35 }
36 
38  return &m_interval;
39 }
40 
42  return &m_indexFunctionSelectedByCursor;
43 }
44 
46  m_interval.setStart(0);
47  m_interval.setEnd(10);
48  m_interval.setStep(1);
49  m_indexFunctionSelectedByCursor = 0;
50  m_modelVersion = 0;
51  m_rangeVersion = 0;
52  setActiveTab(0);
53 }
54 
56  TextFieldDelegateApp(container, snapshot, rootViewController)
57 {
58 }
59 
63  }
64  if (inputViewController()->isDisplayingModal()) {
66  }
68 }
69 
70 }
void setStep(double f)
Definition: interval.cpp:56
CurveViewCursor * cursor()
virtual void willBecomeInactive()
Definition: app.cpp:114
Snapshot * snapshot()
Definition: app.cpp:41
ModalViewController m_modalViewController
Definition: app.h:65
unsigned int uint32_t
Definition: stdint.h:6
Poincare::Expression::AngleUnit * angleUnitVersion()
constexpr Poincare::Expression::AngleUnit Radian
Definition: helper.h:4
void setStart(double f)
Definition: interval.cpp:46
FunctionApp(Container *container, Snapshot *snapshot, ViewController *rootViewController)
void willBecomeInactive() override
void setEnd(double f)
Definition: interval.cpp:51
virtual InputViewController * inputViewController()=0