Numworks Epsilon  1.4.1
Graphing Calculator Operating System
alternate_empty_view_controller.h
Go to the documentation of this file.
1 #ifndef ESCHER_ALTERNATE_EMPTY_VIEW_H
2 #define ESCHER_ALTERNATE_EMPTY_VIEW_H
3 
5 #include <escher/i18n.h>
8 
10 public:
12  View * view() override;
13  const char * title() override;
14  bool handleEvent(Ion::Events::Event event) override;
15  void didBecomeFirstResponder() override;
16  void viewWillAppear() override;
17  void viewDidDisappear() override;
18 private:
19  class ContentView : public View {
20  public:
21  ContentView(ViewController * mainViewController, AlternateEmptyViewDelegate * delegate);
22  ViewController * mainViewController() const;
23  AlternateEmptyViewDelegate * alternateEmptyViewDelegate() const;
24  void layoutSubviews() override;
25  private:
26  int numberOfSubviews() const override;
27  View * subviewAtIndex(int index) override;
28  MessageTextView m_message;
29  ViewController * m_mainViewController;
30  AlternateEmptyViewDelegate * m_delegate;
31  };
32  ContentView m_contentView;
33 };
34 
35 #endif
Responder * parentResponder() const
Definition: responder.cpp:12
bool handleEvent(Ion::Events::Event event) override
AlternateEmptyViewController(Responder *parentResponder, ViewController *mainViewController, AlternateEmptyViewDelegate *delegate)
Definition: view.h:23