Blame view

build1/epsilon-master/apps/sequence/values/values_controller.h 1.53 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
  #ifndef SEQUENCE_VALUES_CONTROLLER_H
  #define SEQUENCE_VALUES_CONTROLLER_H
  
  #include "../sequence_store.h"
  #include "../sequence_title_cell.h"
  #include "../../shared/values_controller.h"
  #include "interval_parameter_controller.h"
  
  namespace Sequence {
  
  class ValuesController : public Shared::ValuesController {
  public:
    ValuesController(Responder * parentResponder, SequenceStore * sequenceStore, Shared::Interval * interval, ButtonRowController * header);
    void willDisplayCellAtLocation(HighlightCell * cell, int i, int j) override;
    I18n::Message emptyMessage() override;
    IntervalParameterController * intervalParameterController() override;
  private:
    bool setDataAtLocation(double floatBody, int columnIndex, int rowIndex) override;
    int maxNumberOfCells() override;
    int maxNumberOfFunctions() override;
    constexpr static int k_maxNumberOfCells = 30;
    constexpr static int k_maxNumberOfSequences = 3;
    SequenceTitleCell * m_sequenceTitleCells[k_maxNumberOfSequences];
    SequenceTitleCell * functionTitleCells(int j) override;
    EvenOddBufferTextCell * m_floatCells[k_maxNumberOfCells];
    EvenOddBufferTextCell * floatCells(int j) override;
    SequenceStore * m_sequenceStore;
    SequenceStore * functionStore() const override;
    View * loadView() override;
    void unloadView(View * view) override;
  #if COPY_COLUMN
    Shared::ValuesFunctionParameterController m_sequenceParameterController;
  #endif
    Shared::ValuesFunctionParameterController * functionParameterController() override;
    IntervalParameterController m_intervalParameterController;
  };
  
  }
  
  #endif