Blame view

Modif/epsilon-master/apps/shared/values_function_parameter_controller.h 981 Bytes
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
  #ifndef SHARED_VALUES_FUNCTION_PARAM_CONTROLLER_H
  #define SHARED_VALUES_FUNCTION_PARAM_CONTROLLER_H
  
  #include <escher.h>
  #include "function.h"
  #include "../i18n.h"
  
  namespace Shared {
  
  class ValuesFunctionParameterController : public ViewController, public SimpleListViewDataSource, public SelectableTableViewDataSource {
  public:
    ValuesFunctionParameterController(char symbol);
  
    View * view() override;
    const char * title() override;
    void didBecomeFirstResponder() override;
    virtual int numberOfRows() override;
    KDCoordinate cellHeight() override;
    virtual HighlightCell * reusableCell(int index) override;
    virtual int reusableCellCount() override;
    virtual void setFunction(Function * function);
  protected:
    MessageTableCellWithChevron m_copyColumn;
    SelectableTableView m_selectableTableView;
  private:
    constexpr static int k_maxNumberOfCharsInTitle = 16;
    char m_pageTitle[k_maxNumberOfCharsInTitle];
    Function * m_function;
    char m_symbol;
  };
  
  }
  
  #endif