Blame view

Modif/epsilon-master/apps/graph/values/derivative_parameter_controller.h 1.21 KB
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
  #ifndef GRAPH_DERIVATIVE_PARAM_CONTROLLER_H
  #define GRAPH_DERIVATIVE_PARAM_CONTROLLER_H
  
  #include <escher.h>
  #include "../cartesian_function.h"
  
  namespace Graph {
  
  class ValuesController;
  
  class DerivativeParameterController : public ViewController, public SimpleListViewDataSource, public SelectableTableViewDataSource {
  public:
    DerivativeParameterController(ValuesController * valuesController);
  
    View * view() override;
    const char * title() override;
    bool handleEvent(Ion::Events::Event event) override;
    void didBecomeFirstResponder() override;
    int numberOfRows() override;
    KDCoordinate cellHeight() override;
    HighlightCell * reusableCell(int index) override;
    int reusableCellCount() override;
  
    void setFunction(CartesianFunction * function);
  private:
  #if COPY_COLUMN
    constexpr static int k_totalNumberOfCell = 2;
  #else
    constexpr static int k_totalNumberOfCell = 1;
  #endif
    constexpr static int k_maxNumberOfCharsInTitle = 16;
    char m_pageTitle[k_maxNumberOfCharsInTitle];
    MessageTableCell m_hideColumn;
  #if COPY_COLUMN
    MessageTableCellWithChevron m_copyColumn;
  #endif
    SelectableTableView m_selectableTableView;
    CartesianFunction * m_function;
    ValuesController * m_valuesController;
  };
  
  }
  
  #endif