Numworks Epsilon
1.4.1
Graphing Calculator Operating System
pop_up_controller.h
Go to the documentation of this file.
1
#ifndef HARDWARE_TEST_POP_UP_CONTROLLER_H
2
#define HARDWARE_TEST_POP_UP_CONTROLLER_H
3
4
#include <
escher.h
>
5
6
namespace
HardwareTest
{
7
8
class
PopUpController
:
public
ViewController
{
9
public
:
10
PopUpController
();
11
View
*
view
()
override
;
12
void
didBecomeFirstResponder
()
override
;
13
bool
handleEvent
(
Ion::Events::Event
event)
override
;
14
private
:
15
class
ContentView :
public
View
,
public
Responder
{
16
public
:
17
ContentView(
Responder
*
parentResponder
);
18
void
drawRect(
KDContext
* ctx,
KDRect
rect)
const override
;
19
void
setSelectedButton(
int
selectedButton);
20
int
selectedButton();
21
private
:
22
constexpr
static
KDCoordinate
k_buttonMargin = 10;
23
constexpr
static
KDCoordinate
k_buttonHeight = 20;
24
constexpr
static
KDCoordinate
k_topMargin = 8;
25
constexpr
static
KDCoordinate
k_paragraphHeight = 20;
26
int
numberOfSubviews()
const override
;
27
View
* subviewAtIndex(
int
index)
override
;
28
void
layoutSubviews()
override
;
29
Button
m_cancelButton;
30
Button
m_okButton;
31
MessageTextView
m_warningTextView;
32
MessageTextView
m_messageTextView1;
33
MessageTextView
m_messageTextView2;
34
MessageTextView
m_messageTextView3;
35
MessageTextView
m_messageTextView4;
36
};
37
ContentView m_contentView;
38
};
39
40
}
41
42
#endif
43
KDCoordinate
int16_t KDCoordinate
Definition:
coordinate.h:6
HardwareTest::PopUpController::PopUpController
PopUpController()
Definition:
pop_up_controller.cpp:8
Responder::parentResponder
Responder * parentResponder() const
Definition:
responder.cpp:12
HardwareTest::PopUpController::handleEvent
bool handleEvent(Ion::Events::Event event) override
Definition:
pop_up_controller.cpp:22
HardwareTest::PopUpController::didBecomeFirstResponder
void didBecomeFirstResponder() override
Definition:
pop_up_controller.cpp:18
escher.h
Ion::Events::Event
Definition:
events.h:9
HardwareTest::PopUpController::view
View * view() override
Definition:
pop_up_controller.cpp:14
HardwareTest
Definition:
app.cpp:8
Responder
Definition:
responder.h:9
MessageTextView
Definition:
message_text_view.h:7
KDContext
Definition:
context.h:8
KDRect
Definition:
rect.h:26
View
Definition:
view.h:23
Button
Definition:
button.h:10
ViewController
Definition:
view_controller.h:30
HardwareTest::PopUpController
Definition:
pop_up_controller.h:8
epsilon
apps
hardware_test
pop_up_controller.h
Generated by
1.8.14