Files
Upsilon/apps/graph/values/values_controller.h
Émilie Feral b36e5dc67c [escher] Generelize header view controller to button row controller and
use it to add two buttons: "tracer" "afficher valeurs"

Change-Id: I8ee9afec9e381de367133e6b3f5ceb738b9790ab
2017-03-07 13:28:26 +01:00

44 lines
1.6 KiB
C++

#ifndef GRAPH_VALUES_CONTROLLER_H
#define GRAPH_VALUES_CONTROLLER_H
#include "../cartesian_function_store.h"
#include "../function_title_cell.h"
#include "../../shared/values_controller.h"
#include "derivative_parameter_controller.h"
#include "function_parameter_controller.h"
namespace Graph {
class ValuesController : public Shared::ValuesController {
public:
ValuesController(Responder * parentResponder, CartesianFunctionStore * functionStore, ButtonRowController * header);
bool handleEvent(Ion::Events::Event event) override;
int numberOfColumns() override;
void willDisplayCellAtLocation(HighlightCell * cell, int i, int j) override;
const char * emptyMessage() override;
void selectCellAtLocation(int i, int j);
int activeRow();
int activeColumn();
private:
CartesianFunction * functionAtColumn(int i) override;
bool isDerivativeColumn(int i);
void configureDerivativeFunction();
int maxNumberOfCells() override;
int maxNumberOfFunctions() override;
constexpr static int k_maxNumberOfCells = 50;
constexpr static int k_maxNumberOfFunctions = 5;
FunctionTitleCell m_functionTitleCells[k_maxNumberOfFunctions];
FunctionTitleCell * functionTitleCells(int j) override;
EvenOddBufferTextCell m_floatCells[k_maxNumberOfCells];
EvenOddBufferTextCell * floatCells(int j) override;
CartesianFunctionStore * m_functionStore;
CartesianFunctionStore * functionStore() const override;
FunctionParameterController m_functionParameterController;
FunctionParameterController * functionParameterController() override;
DerivativeParameterController m_derivativeParameterController;
};
}
#endif