-
Notifications
You must be signed in to change notification settings - Fork 11
/
app.h
45 lines (39 loc) · 1.01 KB
/
app.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef RPN_APP_H
#define RPN_APP_H
#include "../shared/shared_app.h"
#include <escher.h>
#include "../shared/text_field_delegate_app.h"
#include "rpn_content_view.h"
#include "rpn_stack.h"
#include "rpn_stack_controller.h"
#include "rpn_input_controller.h"
#include "rpn_toolbox.h"
namespace Rpn {
class App : public Shared::TextFieldDelegateApp {
public:
class Descriptor : public ::App::Descriptor {
public:
I18n::Message name() override;
I18n::Message upperName() override;
const Image * icon() override;
};
class Snapshot : public ::SharedApp::Snapshot {
public:
Snapshot();
App * unpack(Container * container) override;
void reset() override;
Descriptor * descriptor() override;
Stack * stack();
private:
Stack m_stack;
};
private:
App(Snapshot * snapshot);
::Toolbox * toolboxForInputEventHandler(InputEventHandler * textInput) override;
StackController m_stackController;
InputController m_inputController;
ContentView m_view;
Toolbox m_toolbox;
};
}
#endif