Numworks Epsilon  1.4.1
Graphing Calculator Operating System
list_controller.h
Go to the documentation of this file.
1 #ifndef GRAPH_LIST_CONTROLLER_H
2 #define GRAPH_LIST_CONTROLLER_H
3 
4 #include <escher.h>
5 #include "../function_title_cell.h"
6 #include "../../shared/function_expression_cell.h"
7 #include "../cartesian_function_store.h"
8 #include "../../shared/new_function_cell.h"
9 #include "../../shared/list_controller.h"
10 #include "../../shared/list_parameter_controller.h"
11 
12 namespace Graph {
13 
15 public:
17  const char * title() override;
18  int numberOfRows() override;
19  KDCoordinate rowHeight(int j) override;
20 private:
21  void editExpression(Shared::Function * function, Ion::Events::Event event) override;
22  Shared::ListParameterController * parameterController() override;
23  int maxNumberOfRows() override;
24  HighlightCell * titleCells(int index) override;
25  HighlightCell * expressionCells(int index) override;
26  void willDisplayTitleCellAtIndex(HighlightCell * cell, int j) override;
27  void willDisplayExpressionCellAtIndex(HighlightCell * cell, int j) override;
28  bool removeFunctionRow(Shared::Function * function) override;
29  View * loadView() override;
30  void unloadView(View * view) override;
31  constexpr static int k_maxNumberOfRows = 5;
32  FunctionTitleCell * m_functionTitleCells[k_maxNumberOfRows];
33  Shared::FunctionExpressionCell * m_expressionCells[k_maxNumberOfRows];
34  Shared::ListParameterController m_parameterController;
35 };
36 
37 }
38 
39 #endif
int16_t KDCoordinate
Definition: coordinate.h:6
Responder * parentResponder() const
Definition: responder.cpp:12
Definition: app.cpp:9
KDCoordinate rowHeight(int j) override
ButtonRowController * header()
ButtonRowController * footer()
int numberOfRows() override
ListController(Responder *parentResponder, CartesianFunctionStore *functionStore, ButtonRowController *header, ButtonRowController *footer)
Definition: view.h:23
const char * title() override