Numworks Epsilon  1.4.1
Graphing Calculator Operating System
interval_parameter_controller.h
Go to the documentation of this file.
1 #ifndef SHARED_INTERVAL_PARAM_CONTROLLER_H
2 #define SHARED_INTERVAL_PARAM_CONTROLLER_H
3 
4 #include <escher.h>
5 #include "interval.h"
7 
8 namespace Shared {
9 
11 public:
13  Interval * interval();
14  const char * title() override;
15  void willDisplayCellForIndex(HighlightCell * cell, int index) override;
16  int numberOfRows() override;
17 protected:
18  constexpr static int k_totalNumberOfCell = 3;
19  bool setParameterAtIndex(int parameterIndex, double f) override;
21  bool handleEvent(Ion::Events::Event event) override;
22 private:
23  HighlightCell * reusableParameterCell(int index, int type) override;
24  int reusableParameterCellCount(int type) override;
25  double parameterAtIndex(int index) override;
26  void buttonAction() override;
27  View * loadView() override;
28  void unloadView(View * view) override;
31 };
32 
33 }
34 
35 #endif
Responder * parentResponder() const
Definition: responder.cpp:12
bool setParameterAtIndex(int parameterIndex, double f) override
bool handleEvent(Ion::Events::Event event) override
void willDisplayCellForIndex(HighlightCell *cell, int index) override
Definition: view.h:23
IntervalParameterController(Responder *parentResponder, Interval *interval)