1 #ifndef PROBABILITY_CALCULATION_CONTROLLER_H 2 #define PROBABILITY_CALCULATION_CONTROLLER_H 9 #include "calculation/calculation.h" 10 #include "../shared/parameter_text_field_delegate.h" 24 const char *
title()
override;
51 constexpr
static int k_numberOfCalculationCells = 3;
55 class ContentView :
public View {
59 return &m_lawCurveView;
63 int numberOfSubviews()
const override;
64 View * subviewAtIndex(
int index)
override;
65 void layoutSubviews()
override;
70 ContentView m_contentView;
77 constexpr
static int k_maxNumberOfTitleCharacters = 30;
78 char m_titleBuffer[k_maxNumberOfTitleCharacters];
int indexFromCumulatedWidth(KDCoordinate offsetX) override
static constexpr int maxBufferSize()
int reusableCellCount(int type) override
KDCoordinate cumulatedHeightFromIndex(int j) override
bool textFieldShouldFinishEditing(TextField *textField, Ion::Events::Event event) override
void willDisplayCellAtLocation(HighlightCell *cell, int i, int j) override
Responder * parentResponder() const
bool textFieldDidFinishEditing(TextField *textField, const char *text, Ion::Events::Event event) override
const char * title() override
void setCalculationAccordingToIndex(int index, bool forceReinitialisation=false)
void reloadLawCurveView()
int typeAtLocation(int i, int j) override
KDCoordinate columnWidth(int i) override
bool textFieldDidHandleEvent(TextField *textField, bool returnValue, bool textHasChanged) override
HighlightCell * reusableCell(int index, int type) override
void didBecomeFirstResponder() override
int numberOfRows() override
KDCoordinate rowHeight(int j) override
void viewWillAppear() override
CalculationController(Responder *parentResponder, Law *law, Calculation *calculation)
int indexFromCumulatedHeight(KDCoordinate offsetY) override
int numberOfColumns() override
void didEnterResponderChain(Responder *previousResponder) override
void viewDidDisappear() override
bool handleEvent(Ion::Events::Event event) override
KDCoordinate cumulatedWidthFromIndex(int i) override