Numworks Epsilon  1.4.1
Graphing Calculator Operating System
main_controller.h
Go to the documentation of this file.
1 #ifndef SETTINGS_MAIN_CONTROLLER_H
2 #define SETTINGS_MAIN_CONTROLLER_H
3 
4 #include <escher.h>
5 #include "sub_controller.h"
7 #include "language_controller.h"
8 
9 namespace Settings {
10 
12 public:
15  MainController(const MainController& other) = delete;
16  MainController(MainController&& other) = delete;
17  MainController& operator=(const MainController& other) = delete;
18  MainController& operator=(MainController&& other) = delete;
19  View * view() override;
20  bool handleEvent(Ion::Events::Event event) override;
21  void didBecomeFirstResponder() override;
22  int numberOfRows() override;
23  KDCoordinate rowHeight(int j) override;
24  KDCoordinate cumulatedHeightFromIndex(int j) override;
25  int indexFromCumulatedHeight(KDCoordinate offsetY) override;
26  HighlightCell * reusableCell(int index, int type) override;
27  int reusableCellCount(int type) override;
28  int typeAtLocation(int i, int j) override;
29  void willDisplayCellForIndex(HighlightCell * cell, int index) override;
30  void viewWillAppear() override;
31 private:
32  StackViewController * stackController() const;
33 #if EPSILON_SOFTWARE_UPDATE_PROMPT
34  constexpr static int k_totalNumberOfCell = 8;
35  MessageTableCellWithSwitch m_updateCell;
36 #else
37  constexpr static int k_totalNumberOfCell = 7;
38 #endif
39  constexpr static int k_numberOfSimpleChevronCells = 5;
40  MessageTableCellWithChevronAndMessage m_cells[k_numberOfSimpleChevronCells];
41  MessageTableCellWithChevronAndExpression m_complexFormatCell;
42  MessageTableCellWithGauge m_brightnessCell;
43  Poincare::ExpressionLayout * m_complexFormatLayout;
44  SelectableTableView m_selectableTableView;
45  MessageTree * m_messageTreeModel;
46  SubController m_subController;
47  LanguageController m_languageController;
48 };
49 
50 }
51 
52 #endif
KDCoordinate rowHeight(int j) override
int reusableCellCount(int type) override
int16_t KDCoordinate
Definition: coordinate.h:6
Responder * parentResponder() const
Definition: responder.cpp:12
void viewWillAppear() override
void willDisplayCellForIndex(HighlightCell *cell, int index) override
int typeAtLocation(int i, int j) override
int indexFromCumulatedHeight(KDCoordinate offsetY) override
MainController(Responder *parentResponder)
HighlightCell * reusableCell(int index, int type) override
void didBecomeFirstResponder() override
KDCoordinate cumulatedHeightFromIndex(int j) override
MainController & operator=(const MainController &other)=delete
Definition: view.h:23
bool handleEvent(Ion::Events::Event event) override
Definition: app.cpp:5