-
Notifications
You must be signed in to change notification settings - Fork 11
/
rpn_content_view.h
36 lines (29 loc) · 1003 Bytes
/
rpn_content_view.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
#ifndef RPN_CONTENT_VIEW_H
#define RPN_CONTENT_VIEW_H
#include <escher.h>
#include "../shared/text_field_delegate_app.h"
namespace Rpn {
class StackController;
class InputController;
class ContentView : public View {
public:
ContentView(Responder * parentResponder, InputController * inputController, StackController * stackController);
~ContentView();
ContentView(const ContentView& other) = delete;
ContentView(ContentView&& other) = delete;
ContentView& operator=(const ContentView& other) = delete;
ContentView& operator=(ContentView&& other) = delete;
void reload();
SelectableTableView * stackView() { return &m_stackView; }
TextField * inputView() { return &m_inputView; }
/* View */
int numberOfSubviews() const override { return 2; }
View * subviewAtIndex(int index) override;
private:
void layoutSubviews(bool force = false) override;
SelectableTableView m_stackView;
TextField m_inputView;
char m_textBuffer[TextField::maxBufferSize()];
};
}
#endif