Numworks Epsilon  1.4.1
Graphing Calculator Operating System
list_parameter_controller.h
Go to the documentation of this file.
1 #ifndef SHARED_LIST_PARAM_CONTROLLER_H
2 #define SHARED_LIST_PARAM_CONTROLLER_H
3 
4 #include <escher.h>
5 #include "function.h"
6 #include "function_store.h"
7 #include "../i18n.h"
8 
9 namespace Shared {
10 
12 public:
13  ListParameterController(Responder * parentResponder, FunctionStore * functionStore, I18n::Message functionColorMessage, I18n::Message deleteFunctionMessage, SelectableTableViewDelegate * tableDelegate = nullptr);
14 
15  View * view() override;
16  const char * title() override;
17  bool handleEvent(Ion::Events::Event event) override;
18  virtual void setFunction(Function * function);
19  void didBecomeFirstResponder() override;
20  void viewWillAppear() override;
21  int numberOfRows() override;
22  KDCoordinate cellHeight() override;
23  HighlightCell * reusableCell(int index) override;
24  int reusableCellCount() override;
25  void willDisplayCellForIndex(HighlightCell * cell, int index) override;
26 protected:
27  bool handleEnterOnRow(int rowIndex);
31 private:
32 #if FUNCTION_COLOR_CHOICE
33  constexpr static int k_totalNumberOfCell = 3;
34  MessageTableCellWithChevron m_colorCell;
35 #else
36  constexpr static int k_totalNumberOfCell = 2;
37 #endif
38  MessageTableCellWithSwitch m_enableCell;
39  MessageTableCell m_deleteCell;
40 };
41 
42 }
43 
44 #endif
HighlightCell * reusableCell(int index) override
int16_t KDCoordinate
Definition: coordinate.h:6
Responder * parentResponder() const
Definition: responder.cpp:12
ListParameterController(Responder *parentResponder, FunctionStore *functionStore, I18n::Message functionColorMessage, I18n::Message deleteFunctionMessage, SelectableTableViewDelegate *tableDelegate=nullptr)
void willDisplayCellForIndex(HighlightCell *cell, int index) override
Definition: view.h:23
bool handleEvent(Ion::Events::Event event) override
virtual void setFunction(Function *function)