Numworks Epsilon  1.4.1
Graphing Calculator Operating System
app.cpp
Go to the documentation of this file.
1 #include "app.h"
2 #include "../apps_container.h"
3 #include <assert.h>
4 
5 namespace OnBoarding {
6 
8  return new App(container, this);
9 }
10 
12  static Descriptor descriptor;
13  return &descriptor;
14 }
15 
17  ::App(container, snapshot, &m_languageController),
18  m_languageController(&m_modalViewController, &m_logoController, ((AppsContainer *)container)->updatePopUpController()),
19  m_logoController()
20 {
21 }
22 
24  return firstResponder() == &m_logoController;
25 }
26 
28  assert(i == 0);
29  return &m_logoController;
30 }
31 
33  if (e == Ion::Events::Home) {
34  return true;
35  }
36  if (e == Ion::Events::OnOff) {
37  m_languageController.reinitOnBoarding();
38  }
39  return ::App::processEvent(e);
40 }
41 
42 void App::didBecomeActive(Window * window) {
43  ::App::didBecomeActive(window);
44  m_languageController.reinitOnBoarding();
45 }
46 
47 }
virtual void didBecomeActive(Window *window)
Definition: app.cpp:106
Definition: timer.h:15
#define assert(e)
Definition: assert.h:9
Definition: window.h:6
constexpr Event Home
Definition: events.h:68
Snapshot * snapshot()
Definition: app.cpp:41
App(Container *container, Snapshot *snapshot, ViewController *rootViewController, I18n::Message warningMessage=(I18n::Message) 0)
Definition: app.cpp:30
ModalViewController m_modalViewController
Definition: app.h:65
Timer * timerAtIndex(int i) override
Definition: app.cpp:27
Responder * firstResponder()
Definition: app.cpp:58
bool processEvent(Ion::Events::Event) override
Definition: app.cpp:32
constexpr Event OnOff
Definition: events.h:69
const Container * container() const
Definition: app.cpp:102
Descriptor * descriptor() override
Definition: app.cpp:11
int numberOfTimers() override
Definition: app.cpp:23
void didBecomeActive(Window *window) override
Definition: app.cpp:42
App * unpack(Container *container) override
Definition: app.cpp:7