Files
Upsilon/apps/sequence/sequence_title_cell.h
Émilie Feral f76b603c67 [apps/sequence] Create a class sequence title cell
Change-Id: I2a891e6a47ec742cedfa6780ee1a50eb3df24085
2017-02-13 17:15:08 +01:00

33 lines
1.0 KiB
C++

#ifndef SEQUENCE_SEQUENCE_TITLE_CELL_H
#define SEQUENCE_SEQUENCE_TITLE_CELL_H
#include "../shared/function_title_cell.h"
namespace Sequence {
class SequenceTitleCell : public Shared::FunctionTitleCell, public Responder {
public:
SequenceTitleCell(Responder * parentResponder = nullptr);
void setFirstInitialConditionText(const char * textContent);
void setSecondInitialConditionText(const char * textContent);
int selectedSubCell();
void selectSubCell(int index);
void setHighlighted(bool highlight) override;
void setEven(bool even) override;
int numberOfSubviews() const override;
View * subviewAtIndex(int index) override;
void layoutSubviews() override;
bool handleEvent(Ion::Events::Event event) override;
private:
static constexpr KDCoordinate k_emptyRowHeight = 50;
constexpr static KDCoordinate k_separatorThickness = 1;
int m_numberOfSubCells;
int m_selectedSubCell;
EvenOddBufferTextCell m_firstInitialConditionView;
EvenOddBufferTextCell m_secondInitialConditionView;
};
}
#endif