Files
Upsilon/apps/sequence/list/sequence_toolbox.h
Émilie Feral 2e16365100 [escher] Reorganize all cells'name and factorize their layouts
Change-Id: I69900ee98ff6a6868f96d70a0e335a589ef16c3f
2017-02-20 10:54:02 +01:00

31 lines
933 B
C++

#ifndef SEQUENCE_SEQUENCE_TOOLBOX_H
#define SEQUENCE_SEQUENCE_TOOLBOX_H
#include "../../math_toolbox.h"
#include "../sequence_store.h"
namespace Sequence {
class SequenceToolbox : public MathToolbox {
public:
SequenceToolbox(SequenceStore * sequenceStore);
bool handleEvent(Ion::Events::Event event) override;
int numberOfRows() override;
HighlightCell * reusableCell(int index, int type) override;
void willDisplayCellForIndex(HighlightCell * cell, int index) override;
KDCoordinate rowHeight(int j) override;
int typeAtLocation(int i, int j) override;
void addCells(int recurrenceDepth);
private:
bool selectAddedCell(int selectedRow);
constexpr static KDCoordinate k_addedRowHeight = 20;
ExpressionTableCell m_addedCells[k_maxNumberOfDisplayedRows];
Poincare::ExpressionLayout * m_addedCellLayout[k_maxNumberOfDisplayedRows];
int m_numberOfAddedCells;
SequenceStore * m_sequenceStore;
};
}
#endif