Numworks Epsilon
1.4.1
Graphing Calculator Operating System
interval_parameter_controller.h
Go to the documentation of this file.
1
#ifndef SHARED_INTERVAL_PARAM_CONTROLLER_H
2
#define SHARED_INTERVAL_PARAM_CONTROLLER_H
3
4
#include <
escher.h
>
5
#include "
interval.h
"
6
#include "
float_parameter_controller.h
"
7
8
namespace
Shared
{
9
10
class
IntervalParameterController
:
public
Shared::FloatParameterController
{
11
public
:
12
IntervalParameterController
(
Responder
*
parentResponder
,
Interval
*
interval
);
13
Interval
*
interval
();
14
const
char
*
title
()
override
;
15
void
willDisplayCellForIndex
(
HighlightCell
* cell,
int
index)
override
;
16
int
numberOfRows
()
override
;
17
protected
:
18
constexpr
static
int
k_totalNumberOfCell
= 3;
19
bool
setParameterAtIndex
(
int
parameterIndex,
double
f)
override
;
20
Interval
*
m_interval
;
21
bool
handleEvent
(
Ion::Events::Event
event)
override
;
22
private
:
23
HighlightCell
* reusableParameterCell(
int
index,
int
type)
override
;
24
int
reusableParameterCellCount(
int
type)
override
;
25
double
parameterAtIndex(
int
index)
override
;
26
void
buttonAction()
override
;
27
View
* loadView()
override
;
28
void
unloadView(
View
*
view
)
override
;
29
char
m_draftTextBuffer[
MessageTableCellWithEditableText::k_bufferLength
];
30
MessageTableCellWithEditableText
* m_intervalCells[
k_totalNumberOfCell
];
31
};
32
33
}
34
35
#endif
Shared::FloatParameterController
Definition:
float_parameter_controller.h:13
Shared
Definition:
banner_view.cpp:5
Shared::IntervalParameterController
Definition:
interval_parameter_controller.h:10
Responder::parentResponder
Responder * parentResponder() const
Definition:
responder.cpp:12
float_parameter_controller.h
escher.h
Ion::Events::Event
Definition:
events.h:9
Shared::IntervalParameterController::m_interval
Interval * m_interval
Definition:
interval_parameter_controller.h:20
Responder
Definition:
responder.h:9
Shared::IntervalParameterController::setParameterAtIndex
bool setParameterAtIndex(int parameterIndex, double f) override
Definition:
interval_parameter_controller.cpp:40
HighlightCell
Definition:
highlight_cell.h:7
Shared::IntervalParameterController::interval
Interval * interval()
Definition:
interval_parameter_controller.cpp:31
Shared::Interval
Definition:
interval.h:6
Shared::IntervalParameterController::title
const char * title() override
Definition:
interval_parameter_controller.cpp:13
Shared::IntervalParameterController::handleEvent
bool handleEvent(Ion::Events::Event event) override
Definition:
interval_parameter_controller.cpp:66
Shared::IntervalParameterController::numberOfRows
int numberOfRows() override
Definition:
interval_parameter_controller.cpp:17
Shared::IntervalParameterController::willDisplayCellForIndex
void willDisplayCellForIndex(HighlightCell *cell, int index) override
Definition:
interval_parameter_controller.cpp:21
Shared::IntervalParameterController::k_totalNumberOfCell
static constexpr int k_totalNumberOfCell
Definition:
interval_parameter_controller.h:18
View
Definition:
view.h:23
Shared::IntervalParameterController::IntervalParameterController
IntervalParameterController(Responder *parentResponder, Interval *interval)
Definition:
interval_parameter_controller.cpp:6
MessageTableCellWithEditableText::k_bufferLength
static constexpr int k_bufferLength
Definition:
message_table_cell_with_editable_text.h:22
MessageTableCellWithEditableText
Definition:
message_table_cell_with_editable_text.h:8
DynamicViewController::view
View * view() override
Definition:
dynamic_view_controller.cpp:15
interval.h
epsilon
apps
shared
interval_parameter_controller.h
Generated by
1.8.14