Blame view

build3/apps/sequence/list/sequence_toolbox.h 1.05 KB
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  #ifndef SEQUENCE_SEQUENCE_TOOLBOX_H
  #define SEQUENCE_SEQUENCE_TOOLBOX_H
  
  #include "../../math_toolbox.h"
  
  namespace Sequence {
  
  class SequenceToolbox : public MathToolbox {
  public:
    SequenceToolbox();
    ~SequenceToolbox();
    SequenceToolbox(const SequenceToolbox& other) = delete;
    SequenceToolbox(SequenceToolbox&& other) = delete;
    SequenceToolbox& operator=(const SequenceToolbox& other) = delete;
    SequenceToolbox& operator=(SequenceToolbox&& other) = delete;
    bool handleEvent(Ion::Events::Event event) override;
    int numberOfRows() override;
    HighlightCell * reusableCell(int index, int type) override;
    void willDisplayCellForIndex(HighlightCell * cell, int index) override;
    int typeAtLocation(int i, int j) override;
    void setExtraCells(const char * sequenceName, int recurrenceDepth);
  private:
    bool selectAddedCell(int selectedRow);
    int mathToolboxIndex(int index);
    ExpressionTableCell m_addedCells[k_maxNumberOfDisplayedRows];
    Poincare::ExpressionLayout * m_addedCellLayout[k_maxNumberOfDisplayedRows];
    int m_numberOfAddedCells;
  };
  
  }
  
  #endif