graph_controller.h
1.51 KB
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
#ifndef SEQUENCE_GRAPH_CONTROLLER_H
#define SEQUENCE_GRAPH_CONTROLLER_H
#include "graph_view.h"
#include "banner_view.h"
#include "curve_parameter_controller.h"
#include "curve_view_range.h"
#include "term_sum_controller.h"
#include "../../shared/function_graph_controller.h"
#include "../../shared/cursor_view.h"
#include "../sequence_store.h"
namespace Sequence {
class GraphController : public Shared::FunctionGraphController {
public:
GraphController(Responder * parentResponder, SequenceStore * sequenceStore, CurveViewRange * graphRange, Shared::CurveViewCursor * cursor, int * indexFunctionSelectedByCursor, uint32_t * modelVersion, uint32_t * rangeVersion, Poincare::Expression::AngleUnit * angleUnitVersion, ButtonRowController * header);
I18n::Message emptyMessage() override;
TermSumController * termSumController();
private:
BannerView * bannerView() override;
bool handleEnter() override;
bool moveCursorHorizontally(int direction) override;
void initCursorParameters() override;
CurveViewRange * interactiveCurveViewRange() override;
SequenceStore * functionStore() const override;
GraphView * functionGraphView() override;
View * cursorView() override {
return &m_cursorView;
}
CurveParameterController * curveParameterController() override;
Shared::CursorView m_cursorView;
BannerView m_bannerView;
GraphView m_view;
CurveViewRange * m_graphRange;
CurveParameterController m_curveParameterController;
TermSumController m_termSumController;
SequenceStore * m_sequenceStore;
};
}
#endif