Numworks Epsilon  1.4.1
Graphing Calculator Operating System
app.h
Go to the documentation of this file.
1 #ifndef CODE_APP_H
2 #define CODE_APP_H
3 
4 #include <escher.h>
5 #include <ion/events.h>
6 #include "menu_controller.h"
7 #include "script_store.h"
8 #include "python_toolbox.h"
10 
11 namespace Code {
12 
13 class App : public ::App {
14 public:
15  class Descriptor : public ::App::Descriptor {
16  public:
17  I18n::Message name() override;
18  I18n::Message upperName() override;
19  const Image * icon() override;
20  };
21  class Snapshot : public ::App::Snapshot {
22  public:
23  Snapshot();
24  App * unpack(Container * container) override;
25  void reset() override;
26  Descriptor * descriptor() override;
28 #if EPSILON_GETOPT
29  bool lockOnConsole() const;
30  void setOpt(const char * name, char * value) override;
31 #endif
32  private:
33 #if EPSILON_GETOPT
34  bool m_lockOnConsole;
35 #endif
36  ScriptStore m_scriptStore;
37  };
38  StackViewController * stackViewController() { return &m_codeStackViewController; }
39  PythonToolbox * pythonToolbox() { return &m_toolbox; }
40  bool textInputDidReceiveEvent(TextInput * textInput, Ion::Events::Event event);
41 private:
42  App(Container * container, Snapshot * snapshot);
43  ButtonRowController m_listFooter;
44  MenuController m_menuController;
45  StackViewController m_codeStackViewController;
46  PythonToolbox m_toolbox;
47  VariableBoxController m_variableBoxController;
48 };
49 
50 }
51 
52 #endif
Definition: app.h:13
void reset() override
Definition: app.cpp:33
Snapshot * snapshot()
Definition: app.cpp:41
I18n::Message name() override
Definition: app.cpp:9
Definition: image.h:6
ScriptStore * scriptStore()
Definition: app.cpp:42
App * unpack(Container *container) override
Definition: app.cpp:29
I18n::Message upperName() override
Definition: app.cpp:13
Definition: app.cpp:7
PythonToolbox * pythonToolbox()
Definition: app.h:39
Descriptor * descriptor() override
Definition: app.cpp:37
StackViewController * stackViewController()
Definition: app.h:38
const Image * icon() override
Definition: app.cpp:17
const Container * container() const
Definition: app.cpp:102
bool textInputDidReceiveEvent(TextInput *textInput, Ion::Events::Event event)
Definition: app.cpp:85