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 
9 public:
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 
int16_t KDCoordinate
Definition: coordinate.h:6
Responder * parentResponder() const
Definition: responder.cpp:12
bool handleEvent(Ion::Events::Event event) override
Definition: rect.h:26
Definition: view.h:23
Definition: button.h:10