Numworks Epsilon
1.4.1
Graphing Calculator Operating System
function_app.h
Go to the documentation of this file.
1
#ifndef SHARED_FUNCTION_APP_H
2
#define SHARED_FUNCTION_APP_H
3
4
#include <
poincare.h
>
5
#include "
text_field_delegate_app.h
"
6
#include "
curve_view_cursor.h
"
7
#include "
interval.h
"
8
9
class
AppsContainer
;
10
11
namespace
Shared
{
12
13
class
FunctionApp
:
public
TextFieldDelegateApp
{
14
public
:
15
class
Snapshot
:
public
::App::Snapshot
,
public
TabViewDataSource
{
16
public
:
17
Snapshot
();
18
CurveViewCursor
*
cursor
();
19
uint32_t
*
modelVersion
();
20
uint32_t
*
rangeVersion
();
21
Poincare::Expression::AngleUnit
*
angleUnitVersion
();
22
Interval
*
interval
();
23
int
*
indexFunctionSelectedByCursor
();
24
void
reset
()
override
;
25
protected
:
26
CurveViewCursor
m_cursor
;
27
Interval
m_interval
;
28
private
:
29
int
m_indexFunctionSelectedByCursor;
30
uint32_t
m_modelVersion;
31
uint32_t
m_rangeVersion;
32
Poincare::Expression::AngleUnit
m_angleUnitVersion;
33
};
34
virtual
~FunctionApp
() =
default
;
35
virtual
InputViewController
*
inputViewController
() = 0;
36
void
willBecomeInactive
()
override
;
37
protected
:
38
FunctionApp
(
Container
*
container
,
Snapshot
*
snapshot
,
ViewController
* rootViewController);
39
};
40
41
}
42
43
#endif
Shared
Definition:
banner_view.cpp:5
poincare.h
Shared::FunctionApp::Snapshot::indexFunctionSelectedByCursor
int * indexFunctionSelectedByCursor()
Definition:
function_app.cpp:41
Shared::FunctionApp::Snapshot::cursor
CurveViewCursor * cursor()
Definition:
function_app.cpp:21
InputViewController
Definition:
input_view_controller.h:9
Container
Definition:
container.h:18
App::snapshot
Snapshot * snapshot()
Definition:
app.cpp:41
TabViewDataSource
Definition:
tab_view_data_source.h:8
Shared::FunctionApp::Snapshot::m_cursor
CurveViewCursor m_cursor
Definition:
function_app.h:26
Shared::FunctionApp::Snapshot::modelVersion
uint32_t * modelVersion()
Definition:
function_app.cpp:25
Shared::CurveViewCursor
Definition:
curve_view_cursor.h:6
Shared::FunctionApp::Snapshot::m_interval
Interval m_interval
Definition:
function_app.h:27
Shared::FunctionApp
Definition:
function_app.h:13
AppsContainer
Definition:
apps_container.h:27
Shared::FunctionApp::Snapshot
Definition:
function_app.h:15
Poincare::Expression::AngleUnit
AngleUnit
Definition:
expression.h:153
uint32_t
unsigned int uint32_t
Definition:
stdint.h:6
Shared::FunctionApp::Snapshot::rangeVersion
uint32_t * rangeVersion()
Definition:
function_app.cpp:29
Shared::FunctionApp::Snapshot::angleUnitVersion
Poincare::Expression::AngleUnit * angleUnitVersion()
Definition:
function_app.cpp:33
curve_view_cursor.h
Shared::Interval
Definition:
interval.h:6
App::Snapshot
Definition:
app.h:31
Shared::TextFieldDelegateApp
Definition:
text_field_delegate_app.h:12
Shared::FunctionApp::Snapshot::Snapshot
Snapshot()
Definition:
function_app.cpp:8
Shared::FunctionApp::Snapshot::interval
Interval * interval()
Definition:
function_app.cpp:37
text_field_delegate_app.h
Shared::FunctionApp::FunctionApp
FunctionApp(Container *container, Snapshot *snapshot, ViewController *rootViewController)
Definition:
function_app.cpp:55
Shared::FunctionApp::willBecomeInactive
void willBecomeInactive() override
Definition:
function_app.cpp:60
Shared::FunctionApp::Snapshot::reset
void reset() override
Definition:
function_app.cpp:45
ViewController
Definition:
view_controller.h:30
Shared::TextFieldDelegateApp::container
AppsContainer * container()
Definition:
text_field_delegate_app.cpp:20
Shared::FunctionApp::inputViewController
virtual InputViewController * inputViewController()=0
Shared::FunctionApp::~FunctionApp
virtual ~FunctionApp()=default
interval.h
epsilon
apps
shared
function_app.h
Generated by
1.8.14