Numworks Epsilon  1.4.1
Graphing Calculator Operating System
editable_cell_table_view_controller.h
Go to the documentation of this file.
1 #ifndef SHARED_EDITABLE_CELL_TABLE_VIEW_CONTROLLER_H
2 #define SHARED_EDITABLE_CELL_TABLE_VIEW_CONTROLLER_H
3 
4 #include <escher.h>
5 #include <poincare.h>
6 #include "text_field_delegate.h"
7 #include "tab_table_controller.h"
9 
10 namespace Shared {
11 
13 public:
15  bool textFieldShouldFinishEditing(TextField * textField, Ion::Events::Event event) override;
16  bool textFieldDidFinishEditing(TextField * textField, const char * text, Ion::Events::Event event) override;
17 
18  int numberOfRows() override;
20  KDCoordinate rowHeight(int j) override;
21  void viewWillAppear() override;
22  void didBecomeFirstResponder() override;
23 private:
24  TextFieldDelegateApp * textFieldDelegateApp() override;
25  static constexpr KDCoordinate k_cellHeight = 20;
26  virtual bool cellAtLocationIsEditable(int columnIndex, int rowIndex) = 0;
27  virtual bool setDataAtLocation(double floatBody, int columnIndex, int rowIndex) = 0;
28  virtual double dataAtLocation(int columnIndex, int rowIndex) = 0;
29  virtual int numberOfElements() = 0;
30  virtual int maxNumberOfElements() const = 0;
31 };
32 
33 }
34 
35 #endif
void willDisplayCellAtLocationWithDisplayMode(HighlightCell *cell, int i, int j, Poincare::PrintFloat::Mode mode)
bool textFieldDidFinishEditing(TextField *textField, const char *text, Ion::Events::Event event) override
int16_t KDCoordinate
Definition: coordinate.h:6
Responder * parentResponder() const
Definition: responder.cpp:12
bool textFieldShouldFinishEditing(TextField *textField, Ion::Events::Event event) override