5 #include "../../../poincare/src/layout/baseline_relative_layout.h" 6 #include "../../../poincare/src/layout/string_layout.h" 15 m_expliciteCell(
I18n::Message::Explicit, cellLayout),
16 m_singleRecurrenceCell(
I18n::Message::SingleRecurrence, cellLayout),
17 m_doubleRecurenceCell(
I18n::Message::DoubleRecurrence, cellLayout),
18 m_expressionLayouts{},
19 m_selectableTableView(
this),
20 m_sequenceStore(sequenceStore),
22 m_listController(
list)
24 m_selectableTableView.setMargins(topMargin, rightMargin, bottomMargin, leftMargin);
25 m_selectableTableView.setShowsIndicators(
false);
29 for (
int i = 0; i < k_totalNumberOfCell; i++) {
30 if (m_expressionLayouts[i]) {
31 delete m_expressionLayouts[i];
32 m_expressionLayouts[i] =
nullptr;
45 return &m_selectableTableView;
67 if (m_sequence->
type() != sequenceType) {
69 m_sequence->
setType(sequenceType);
71 static_cast<App *
>(
app())->localContext()->resetCache();
89 stackController()->
pop();
96 return k_totalNumberOfCell;
101 assert(index < k_totalNumberOfCell);
102 HighlightCell * cells[] = {&m_expliciteCell, &m_singleRecurrenceCell, &m_doubleRecurenceCell};
107 return k_totalNumberOfCell;
121 nextName = m_sequence->
name();
124 const char * subscripts[3] = {
"n",
"n+1",
"n+2"};
125 if (m_expressionLayouts[j]) {
126 delete m_expressionLayouts[j];
127 m_expressionLayouts[j] =
nullptr;
void viewWillAppear() override
Responder * parentResponder() const
bool handleEvent(Ion::Events::Event event) override
void reloadData(bool setFirstResponder=true)
enum Message uint16_t enum Language uint16_t const char * translate(Message m, Language l=(Language) 0)
void selectPreviousNewSequenceCell()
size_t strlen(const char *s)
int reusableCellCount() override
KDCoordinate cellHeight() override
void setExpression(Poincare::ExpressionLayout *expressionLayout)
virtual void viewWillAppear()
const char * name() const
void willDisplayCellAtLocation(HighlightCell *cell, int i, int j) override
Sequence * addEmptyFunction() override
static constexpr KDCoordinate ParameterCellHeight
void setFirstResponder(Responder *responder)
const char * title() override
~TypeParameterController()
void didBecomeFirstResponder() override
void setInitialRank(int rank)
virtual void viewDidDisappear()
void dismissModalViewController()
void selectCellAtLocation(int i, int j)
void viewDidDisappear() override
void setSequence(Sequence *sequence)
HighlightCell * reusableCell(int index) override
int numberOfRows() override
const char * firstAvailableName() override