Numworks Epsilon  1.4.1
Graphing Calculator Operating System
list_parameter_controller.h
Go to the documentation of this file.
1 #ifndef SEQUENCE_LIST_PARAM_CONTROLLER_H
2 #define SEQUENCE_LIST_PARAM_CONTROLLER_H
3 
4 #include "../../shared/list_parameter_controller.h"
5 #include "../../shared/parameter_text_field_delegate.h"
6 #include "../sequence.h"
7 #include "../sequence_store.h"
9 
10 namespace Sequence {
11 
12 class ListController;
13 
15 public:
17  const char * title() override;
18  bool handleEvent(Ion::Events::Event event) override;
19  void setFunction(Shared::Function * function) override;
20  int numberOfRows() override;
21  HighlightCell * reusableCell(int index) override;
22  int reusableCellCount() override;
23  void willDisplayCellForIndex(HighlightCell * cell, int index) override;
24 
25  bool textFieldShouldFinishEditing(TextField * textField, Ion::Events::Event event) override;
26  bool textFieldDidFinishEditing(TextField * textField, const char * text, Ion::Events::Event event) override;
27  void tableViewDidChangeSelection(SelectableTableView * t, int previousSelectedCellX, int previousSelectedCellY) override;
29 private:
30 #if FUNCTION_COLOR_CHOICE
31  constexpr static int k_totalNumberOfCell = 5;
32 #else
33  constexpr static int k_totalNumberOfCell = 4;
34 #endif
35  bool hasInitialRankRow();
37  MessageTableCellWithEditableText m_initialRankCell;
39  TypeParameterController m_typeParameterController;
40  Sequence * m_sequence;
41 };
42 
43 }
44 
45 #endif
ListParameterController(ListController *list, SequenceStore *sequenceStore)
Shared::TextFieldDelegateApp * textFieldDelegateApp() override
bool textFieldDidFinishEditing(TextField *textField, const char *text, Ion::Events::Event event) override
bool handleEvent(Ion::Events::Event event) override
list
Definition: grammar.h:158
void setFunction(Shared::Function *function) override
void willDisplayCellForIndex(HighlightCell *cell, int index) override
bool textFieldShouldFinishEditing(TextField *textField, Ion::Events::Event event) override
Definition: app.cpp:7
HighlightCell * reusableCell(int index) override
void tableViewDidChangeSelection(SelectableTableView *t, int previousSelectedCellX, int previousSelectedCellY) override