Files
Upsilon/apps/sequence/sequence_title_cell.h
Émilie Feral 0f4d7f0914 [apps/shared][apps/graph][apps/sequence] Reorganise list controllers,
function title cells and function expression cells

Change-Id: Idbdae4975c8ed83a023c781dc14929b8c2053bb0
2017-02-16 14:46:04 +01:00

37 lines
1.2 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 setDefinitionText(const char * textContent);
void setFirstInitialConditionText(const char * textContent);
void setSecondInitialConditionText(const char * textContent);
void setColor(KDColor color) override;
void setNumberOfSubCells(int numberOfSubcells);
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;
void drawRect(KDContext * ctx, KDRect rect) const override;
bool handleEvent(Ion::Events::Event event) override;
private:
constexpr static KDCoordinate k_separatorThickness = 1;
int m_numberOfSubCells;
int m_selectedSubCell;
EvenOddBufferTextCell m_definitionView;
EvenOddBufferTextCell m_firstInitialConditionView;
EvenOddBufferTextCell m_secondInitialConditionView;
};
}
#endif