Numworks Epsilon  1.4.1
Graphing Calculator Operating System
type_parameter_controller.h
Go to the documentation of this file.
1 #ifndef SEQUENCE_TYPE_PARAMATER_CONTROLLER_H
2 #define SEQUENCE_TYPE_PARAMATER_CONTROLLER_H
3 
4 #include <escher.h>
5 #include "../sequence_store.h"
6 
7 namespace Sequence {
8 
9 class ListController;
10 
12 public:
14  TableCell::Layout cellLayout, KDCoordinate topMargin = 0, KDCoordinate rightMargin = 0,
15  KDCoordinate bottomMargin = 0, KDCoordinate leftMargin = 0);
17  TypeParameterController(const TypeParameterController& other) = delete;
21  const char * title() override;
22  View * view() override;
23  void viewWillAppear() override;
24  void viewDidDisappear() override;
25  void didBecomeFirstResponder() override;
26  bool handleEvent(Ion::Events::Event event) override;
27  int numberOfRows() override;
28  KDCoordinate cellHeight() override;
29  HighlightCell * reusableCell(int index) override;
30  int reusableCellCount() override;
31  void willDisplayCellAtLocation(HighlightCell * cell, int i, int j) override;
33 private:
34  StackViewController * stackController() const;
35  constexpr static int k_totalNumberOfCell = 3;
36  ExpressionTableCellWithPointer m_expliciteCell;
37  ExpressionTableCellWithPointer m_singleRecurrenceCell;
38  ExpressionTableCellWithPointer m_doubleRecurenceCell;
39  Poincare::ExpressionLayout * m_expressionLayouts[k_totalNumberOfCell];
40  SelectableTableView m_selectableTableView;
41  SequenceStore * m_sequenceStore;
42  Sequence * m_sequence;
43  ListController * m_listController;
44 };
45 
46 }
47 
48 #endif
const Event sequence[]
int16_t KDCoordinate
Definition: coordinate.h:6
Responder * parentResponder() const
Definition: responder.cpp:12
TypeParameterController & operator=(const TypeParameterController &other)=delete
bool handleEvent(Ion::Events::Event event) override
void willDisplayCellAtLocation(HighlightCell *cell, int i, int j) override
list
Definition: grammar.h:158
Definition: app.cpp:7
TypeParameterController(Responder *parentResponder, SequenceStore *sequenceStore, ListController *list, TableCell::Layout cellLayout, KDCoordinate topMargin=0, KDCoordinate rightMargin=0, KDCoordinate bottomMargin=0, KDCoordinate leftMargin=0)
Definition: view.h:23
HighlightCell * reusableCell(int index) override