mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
33 lines
1.0 KiB
C++
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
|