Numworks Epsilon  1.4.1
Graphing Calculator Operating System
app.h
Go to the documentation of this file.
1 #ifndef CALCULATION_APP_H
2 #define CALCULATION_APP_H
3 
4 #include "calculation_store.h"
6 #include "history_controller.h"
7 #include "../shared/text_field_delegate_app.h"
8 #include <escher.h>
9 
10 namespace Calculation {
11 
13 public:
14  class Descriptor : public ::App::Descriptor {
15  public:
16  I18n::Message name() override;
17  I18n::Message upperName() override;
18  const Image * icon() override;
19  };
20  class Snapshot : public ::App::Snapshot {
21  public:
22  App * unpack(Container * container) override;
23  void reset() override;
24  Descriptor * descriptor() override;
26  private:
27  void tidy() override;
28  CalculationStore m_calculationStore;
29  };
30  bool textFieldDidReceiveEvent(::TextField * textField, Ion::Events::Event event) override;
31  bool textInputIsCorrect(const char * text);
32  const char * XNT() override;
33 private:
35  HistoryController m_historyController;
36  EditExpressionController m_editExpressionController;
37 };
38 
39 }
40 
41 #endif
Descriptor * descriptor() override
Definition: app.cpp:32
Snapshot * snapshot()
Definition: app.cpp:41
bool textFieldDidReceiveEvent(::TextField *textField, Ion::Events::Event event) override
Definition: app.cpp:52
Definition: image.h:6
I18n::Message name() override
Definition: app.cpp:12
I18n::Message upperName() override
Definition: app.cpp:16
CalculationStore * calculationStore()
Definition: app.cpp:37
const char * XNT() override
Definition: app.cpp:88
const Image * icon() override
Definition: app.cpp:20
void reset() override
Definition: app.cpp:28
bool textInputIsCorrect(const char *text)
Definition: app.cpp:68
App * unpack(Container *container) override
Definition: app.cpp:24