4 #include "images/calcul1_icon.h" 5 #include "images/calcul2_icon.h" 6 #include "images/calcul3_icon.h" 7 #include "images/calcul4_icon.h" 8 #include "images/focused_calcul1_icon.h" 9 #include "images/focused_calcul2_icon.h" 10 #include "images/focused_calcul3_icon.h" 11 #include "images/focused_calcul4_icon.h" 17 m_selectableTableView(this),
19 m_calculation(calculation),
20 m_calculationController(calculationController)
22 assert(m_calculation !=
nullptr);
30 return &m_selectableTableView;
49 m_calculationController->
reload();
81 return &m_imageCells[index];
90 const Image * images[
k_numberOfImages] = {ImageStore::Calcul1Icon, ImageStore::Calcul2Icon, ImageStore::Calcul3Icon, ImageStore::Calcul4Icon};
91 const Image * focusedImages[
k_numberOfImages] = {ImageStore::FocusedCalcul1Icon, ImageStore::FocusedCalcul2Icon, ImageStore::FocusedCalcul3Icon, ImageStore::FocusedCalcul4Icon};
92 myCell->
setImage(images[index], focusedImages[index]);
virtual bool isContinuous() const =0
static constexpr KDCoordinate k_height
void setVerticalCellOverlap(KDCoordinate o)
HighlightCell * reusableCell(int index) override
bool handleEvent(Ion::Events::Event event) override
KDCoordinate cellWidth() override
void setCalculationAccordingToIndex(int index, bool forceReinitialisation=false)
int reusableCellCount() override
void didBecomeFirstResponder() override
void willDisplayCellForIndex(HighlightCell *cell, int index) override
CalculationTypeController(Responder *parentResponder, Law *law, Calculation *calculation, CalculationController *calculationController)
static constexpr KDCoordinate k_width
KDCoordinate cellHeight() override
void setImage(const Image *image, const Image *focusedImage)
int numberOfRows() override
void setFirstResponder(Responder *responder)
void dismissModalViewController()
void selectCellAtLocation(int i, int j)
static constexpr int k_numberOfImages
void viewDidDisappear() override
void viewWillAppear() override