Blame view

build4/epsilon-master/apps/statistics/store_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
  #ifndef STATISTICS_STORE_CONTROLLER_H
  #define STATISTICS_STORE_CONTROLLER_H
  
  #include <escher.h>
  #include "store.h"
  #include "statistics_context.h"
  #include "../shared/store_controller.h"
  #include "../shared/store_title_cell.h"
  
  namespace Statistics {
  
  class StoreController : public Shared::StoreController {
  public:
    StoreController(Responder * parentResponder, Store * store, ButtonRowController * header);
    Shared::StoreContext * storeContext() override;
    void setFormulaLabel() override;
    bool fillColumnWithFormula(Poincare::Expression * formula) override;
    void willDisplayCellAtLocation(HighlightCell * cell, int i, int j) override;
  private:
    bool setDataAtLocation(double floatBody, int columnIndex, int rowIndex) override;
    HighlightCell * titleCells(int index) override;
    View * loadView() override;
    void unloadView(View * view) override;
    Shared::StoreParameterController * storeParameterController() override { return &m_storeParameterController; }
    Shared::StoreTitleCell * m_titleCells[k_numberOfTitleCells];
    Store * m_store;
    StatisticsContext m_statisticsContext;
    Shared::StoreParameterController m_storeParameterController;
  };
  
  }
  
  #endif