Blame view

build6/epsilon-master/apps/shared/initialisation_parameter_controller.h 1.04 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
  #ifndef SHARED_INITIALISATION_PARAMETER_CONTROLLER_H
  #define SHARED_INITIALISATION_PARAMETER_CONTROLLER_H
  
  #include <escher.h>
  #include "interactive_curve_view_range.h"
  #include "../i18n.h"
  
  namespace Shared {
  
  class InitialisationParameterController : public ViewController, public SimpleListViewDataSource, public SelectableTableViewDataSource {
  public:
    InitialisationParameterController(Responder * parentResponder, Shared::InteractiveCurveViewRange * graphRange);
    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 willDisplayCellForIndex(HighlightCell * cell, int index) override;
  private:
    constexpr static int k_totalNumberOfCells = 4;
    MessageTableCell m_cells[k_totalNumberOfCells];
    SelectableTableView m_selectableTableView;
    InteractiveCurveViewRange * m_graphRange;
  };
  
  }
  
  #endif