Files
Upsilon/apps/sequence/list/sequence_expression_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

35 lines
1016 B
C++

#ifndef SEQUENCE_SEQUENCE_EXPRESSION_CELL_H
#define SEQUENCE_SEQUENCE_EXPRESSION_CELL_H
#include "../sequence.h"
#include <escher.h>
namespace Sequence {
class SequenceExpressionCell : public Responder, public EvenOddCell {
public:
SequenceExpressionCell(Responder * parentResponder);
void setSequence(Sequence * sequence);
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;
Sequence * m_sequence;
int m_numberOfSubCells;
int m_selectedSubCell;
EvenOddExpressionCell m_expressionView;
EvenOddExpressionCell m_firstInitialConditionView;
EvenOddExpressionCell m_secondInitialConditionView;
};
}
#endif