mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 13:50:28 +01:00
use it to add two buttons: "tracer" "afficher valeurs" Change-Id: I8ee9afec9e381de367133e6b3f5ceb738b9790ab
37 lines
1.4 KiB
C++
37 lines
1.4 KiB
C++
#ifndef GRAPH_LIST_CONTROLLER_H
|
|
#define GRAPH_LIST_CONTROLLER_H
|
|
|
|
#include <escher.h>
|
|
#include "../function_title_cell.h"
|
|
#include "../../shared/function_expression_cell.h"
|
|
#include "../cartesian_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, CartesianFunctionStore * functionStore, ButtonRowController * header, ButtonRowController * footer);
|
|
const char * title() const override;
|
|
int numberOfRows() override;
|
|
KDCoordinate rowHeight(int j) override;
|
|
private:
|
|
void editExpression(Shared::Function * function, Ion::Events::Event event) override;
|
|
Shared::ListParameterController * parameterController() override;
|
|
int maxNumberOfRows() override;
|
|
HighlightCell * titleCells(int index) override;
|
|
HighlightCell * expressionCells(int index) override;
|
|
void willDisplayTitleCellAtIndex(HighlightCell * cell, int j) override;
|
|
void willDisplayExpressionCellAtIndex(HighlightCell * cell, int j) override;
|
|
constexpr static int k_maxNumberOfRows = 5;
|
|
FunctionTitleCell m_functionTitleCells[k_maxNumberOfRows];
|
|
Shared::FunctionExpressionCell m_expressionCells[k_maxNumberOfRows];
|
|
Shared::ListParameterController m_parameterController;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|