#ifndef APPS_MATH_TOOLBOX_H #define APPS_MATH_TOOLBOX_H #define MATRICES_ARE_DEFINED 1 #include #include class MathToolbox : public Toolbox { public: MathToolbox(); protected: TextField * sender() override; bool selectLeaf(ToolboxMessageTree * selectedMessageTree) override; const ToolboxMessageTree * rootModel() override; MessageTableCellWithMessage * leafCellAtIndex(int index) override; MessageTableCellWithChevron* nodeCellAtIndex(int index) override; int maxNumberOfDisplayedRows() override; constexpr static int k_maxNumberOfDisplayedRows = 6; // = 240/40 private: MessageTableCellWithMessage m_leafCells[k_maxNumberOfDisplayedRows]; MessageTableCellWithChevron m_nodeCells[k_maxNumberOfDisplayedRows]; }; #endif