Files
Upsilon/apps/graph/values/function_parameter_controller.h
Émilie Feral 2e16365100 [escher] Reorganize all cells'name and factorize their layouts
Change-Id: I69900ee98ff6a6868f96d70a0e335a589ef16c3f
2017-02-20 10:54:02 +01:00

40 lines
1.2 KiB
C++

#ifndef GRAPH_FUNCTION_PARAM_CONTROLLER_H
#define GRAPH_FUNCTION_PARAM_CONTROLLER_H
#include <escher.h>
#include "../cartesian_function.h"
namespace Graph {
class ValuesController;
class FunctionParameterController : public ViewController, public SimpleListViewDataSource {
public:
FunctionParameterController(ValuesController * valuesController);
View * view() override;
const char * title() const override;
bool handleEvent(Ion::Events::Event event) override;
void didBecomeFirstResponder() override;
int numberOfRows() override;
KDCoordinate cellHeight() override;
HighlightCell * reusableCell(int index) override;
int reusableCellCount() override;
void willDisplayCellForIndex(HighlightCell * cell, int index) override;
void setFunction(CartesianFunction * function);
private:
constexpr static int k_totalNumberOfCell = 2;
constexpr static int k_maxNumberOfCharsInTitle = 16;
char m_pageTitle[k_maxNumberOfCharsInTitle];
PointerTableCellWithSwitch m_displayDerivativeColumn;
PointerTableCellWithChevron m_copyColumn;
SelectableTableView m_selectableTableView;
CartesianFunction * m_function;
ValuesController * m_valuesController;
};
}
#endif