Files
Upsilon/apps/graph/list/list_controller.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

37 lines
1.3 KiB
C++

#ifndef GRAPH_LIST_CONTROLLER_H
#define GRAPH_LIST_CONTROLLER_H
#include <escher.h>
#include "../function_title_cell.h"
#include "function_expression_cell.h"
#include "../function_store.h"
#include "../../shared/new_function_cell.h"
#include "../../shared/list_controller.h"
#include "../../shared/list_parameter_controller.h"
namespace Graph {
class ListController : public Shared::ListController {
public:
ListController(Responder * parentResponder, FunctionStore * functionStore, HeaderViewController * header);
const char * title() const override;
bool handleEvent(Ion::Events::Event event) override;
private:
bool handleEnter();
void editExpression(FunctionExpressionCell * functionCell, Ion::Events::Event event);
Shared::ListParameterController * parameterController() override;
int maxNumberOfRows() override;
TableViewCell * titleCells(int index) override;
TableViewCell * expressionCells(int index) override;
void willDisplayTitleCellAtIndex(TableViewCell * cell, int j) override;
void willDisplayExpressionCellAtIndex(TableViewCell * cell, int j) override;
constexpr static int k_maxNumberOfRows = 5;
FunctionTitleCell m_functionTitleCells[k_maxNumberOfRows];
FunctionExpressionCell m_expressionCells[k_maxNumberOfRows];
Shared::ListParameterController m_parameterController;
};
}
#endif