Numworks Epsilon
1.4.1
Graphing Calculator Operating System
update_controller.h
Go to the documentation of this file.
1
#ifndef ON_BOARDING_UPDATE_CONTROLLER_H
2
#define ON_BOARDING_UPDATE_CONTROLLER_H
3
4
#include <
escher.h
>
5
#include "../i18n.h"
6
#include "../shared/message_view.h"
7
#include "../shared/ok_view.h"
8
9
namespace
OnBoarding
{
10
11
class
UpdateController
:
public
ViewController
{
12
public
:
13
UpdateController
();
14
View
*
view
()
override
{
return
&m_messageViewWithSkip; }
15
bool
handleEvent
(
Ion::Events::Event
event)
override
;
16
private
:
17
class
MessageViewWithSkip :
public
MessageView
{
18
public
:
19
MessageViewWithSkip(I18n::Message * messages,
KDColor
* colors,
uint8_t
numberOfMessages);
20
protected
:
21
int
numberOfSubviews()
const override
;
22
View
* subviewAtIndex(
int
index)
override
;
23
void
layoutSubviews()
override
;
24
private
:
25
constexpr
static
KDCoordinate
k_bottomMargin = 13;
26
constexpr
static
KDCoordinate
k_okMargin = 10;
27
constexpr
static
KDCoordinate
k_skipMargin = 4;
28
MessageTextView
m_skipView;
29
Shared::OkView
m_okView;
30
};
31
MessageViewWithSkip m_messageViewWithSkip;
32
};
33
34
}
35
36
#endif
37
OnBoarding::UpdateController::handleEvent
bool handleEvent(Ion::Events::Event event) override
Definition:
update_controller.cpp:67
OnBoarding
Definition:
app.cpp:5
KDCoordinate
int16_t KDCoordinate
Definition:
coordinate.h:6
OnBoarding::UpdateController::view
View * view() override
Definition:
update_controller.h:14
escher.h
uint8_t
unsigned char uint8_t
Definition:
stdint.h:4
Ion::Events::Event
Definition:
events.h:9
MessageView
Definition:
message_view.h:6
MessageTextView
Definition:
message_text_view.h:7
OnBoarding::UpdateController::UpdateController
UpdateController()
Definition:
update_controller.cpp:61
OnBoarding::UpdateController
Definition:
update_controller.h:11
KDColor
Definition:
color.h:6
Shared::OkView
Definition:
ok_view.h:8
View
Definition:
view.h:23
ViewController
Definition:
view_controller.h:30
epsilon
apps
on_boarding
update_controller.h
Generated by
1.8.14