Blame view

build6/epsilon-master/apps/shared/interval_parameter_controller.h 1.15 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
  #ifndef SHARED_INTERVAL_PARAM_CONTROLLER_H
  #define SHARED_INTERVAL_PARAM_CONTROLLER_H
  
  #include <escher.h>
  #include "interval.h"
  #include "float_parameter_controller.h"
  
  namespace Shared {
  
  class IntervalParameterController : public Shared::FloatParameterController {
  public:
    IntervalParameterController(Responder * parentResponder, Interval * interval);
    Interval * interval();
    const char * title() override;
    void willDisplayCellForIndex(HighlightCell * cell, int index) override;
    int numberOfRows() override;
  protected:
    constexpr static int k_totalNumberOfCell = 3;
    bool setParameterAtIndex(int parameterIndex, double f) override;
    Interval * m_interval;
    bool handleEvent(Ion::Events::Event event) override;
  private:
    HighlightCell * reusableParameterCell(int index, int type) override;
    int reusableParameterCellCount(int type) override;
    double parameterAtIndex(int index) override;
    void buttonAction() override;
    View * loadView() override;
    void unloadView(View * view) override;
    char m_draftTextBuffer[MessageTableCellWithEditableText::k_bufferLength];
    MessageTableCellWithEditableText * m_intervalCells[k_totalNumberOfCell];
  };
  
  }
  
  #endif