Files
Upsilon/apps/graph/values/function_parameter_controller.h
Émilie Feral 4b18d16b2b [apps/sequence||graph] Improve hiding of copy column functionnality
Change-Id: Ic31734f99c0c223e5865b46c48866b89aa62d383
2017-05-03 14:22:51 +02:00

34 lines
985 B
C++

#ifndef GRAPH_FUNCTION_PARAM_CONTROLLER_H
#define GRAPH_FUNCTION_PARAM_CONTROLLER_H
#include "../cartesian_function.h"
#include "../../shared/values_function_parameter_controller.h"
namespace Graph {
class ValuesController;
class FunctionParameterController : public Shared::ValuesFunctionParameterController {
public:
FunctionParameterController(ValuesController * valuesController);
bool handleEvent(Ion::Events::Event event) override;
int numberOfRows() override;
HighlightCell * reusableCell(int index) override;
int reusableCellCount() override;
void willDisplayCellForIndex(HighlightCell * cell, int index) override;
void setFunction(Shared::Function * function) override;
private:
#if COPY_COLUMN
constexpr static int k_totalNumberOfCell = 2;
#else
constexpr static int k_totalNumberOfCell = 1;
#endif
MessageTableCellWithSwitch m_displayDerivativeColumn;
CartesianFunction * m_cartesianFunction;
ValuesController * m_valuesController;
};
}
#endif