Files
Upsilon/apps/graph/graph/curve_parameter_controller.h
Émilie Feral ba67ef4a2e [apps/graph/graph] Add a banner view in the graph view
Change-Id: Iafa0dcfc730911264d5b045c14bde54f432f53a2
2016-12-21 14:50:35 +01:00

38 lines
1.1 KiB
C++

#ifndef GRAPH_GRAPH_CURVE_PARAMETER_CONTROLLER_H
#define GRAPH_GRAPH_CURVE_PARAMETER_CONTROLLER_H
#include <escher.h>
#include "goto_parameter_controller.h"
#include "../function.h"
namespace Graph {
class CurveParameterController : public ViewController, public SimpleListViewDataSource {
public:
CurveParameterController(GraphView * graphView);
View * view() override;
const char * title() const override;
bool handleEvent(Ion::Events::Event event) override;
void didBecomeFirstResponder() override;
int numberOfRows() override;
KDCoordinate cellHeight() override;
TableViewCell * reusableCell(int index) override;
int reusableCellCount() override;
void willDisplayCellForIndex(TableViewCell * cell, int index) override;
void setFunction(Function * function);
private:
GraphView * m_graphView;
Function * m_function;
constexpr static int k_totalNumberOfCells = 3;
ChevronMenuListCell m_calculationCell;
ChevronMenuListCell m_goToCell;
SwitchMenuListCell m_derivativeCell;
SelectableTableView m_selectableTableView;
GoToParameterController m_goToParameterController;
};
}
#endif