Numworks Epsilon  1.4.1
Graphing Calculator Operating System
calculation_type_controller.h
Go to the documentation of this file.
1 #ifndef PROBABILITY_CALCULATION_TYPE_CONTROLLER_H
2 #define PROBABILITY_CALCULATION_TYPE_CONTROLLER_H
3 
4 #include <escher.h>
5 #include "calculation/calculation.h"
6 #include "law/law.h"
7 #include "image_cell.h"
8 
9 namespace Probability {
10 
11 class CalculationController;
12 
14 public:
15  CalculationTypeController(Responder * parentResponder, Law * law, Calculation * calculation, CalculationController * calculationController);
16  View * view() override;
17  void viewWillAppear() override;
18  void viewDidDisappear() override;
19  void didBecomeFirstResponder() override;
20  bool handleEvent(Ion::Events::Event event) override;
21  int numberOfRows() override;
22  KDCoordinate cellWidth() override;
23  KDCoordinate cellHeight() override;
24  HighlightCell * reusableCell(int index) override;
25  int reusableCellCount() override;
26  void willDisplayCellForIndex(HighlightCell * cell, int index) override;
27  constexpr static int k_numberOfImages = 4;
28 private:
29  ImageCell m_imageCells[k_numberOfImages];
30  SelectableTableView m_selectableTableView;
31  Law * m_law;
32  Calculation * m_calculation;
33  CalculationController * m_calculationController;
34 };
35 
36 }
37 
38 #endif
int16_t KDCoordinate
Definition: coordinate.h:6
Responder * parentResponder() const
Definition: responder.cpp:12
HighlightCell * reusableCell(int index) override
bool handleEvent(Ion::Events::Event event) override
void willDisplayCellForIndex(HighlightCell *cell, int index) override
CalculationTypeController(Responder *parentResponder, Law *law, Calculation *calculation, CalculationController *calculationController)
Definition: view.h:23