Files
Upsilon/apps/graph/graph/goto_parameter_controller.h
Émilie Feral f95e49929b [apps] Move float parameter controller from apps/graph to apps/ to be
used in apps/robability

Change-Id: I00ab38bd35d2b3ad77d9aee3072422b9bd36fe01
2016-12-08 15:21:52 +01:00

30 lines
877 B
C++

#ifndef GRAPH_GRAPH_GOTO_PARAMETER_CONTROLLER_H
#define GRAPH_GRAPH_GOTO_PARAMETER_CONTROLLER_H
#include <escher.h>
#include "axis_interval.h"
#include "graph_view.h"
#include "../../float_parameter_controller.h"
namespace Graph {
class GoToParameterController : public FloatParameterController {
public:
GoToParameterController(Responder * parentResponder, GraphView * graphView);
ExpressionTextFieldDelegate * textFieldDelegate() override;
const char * title() const override;
int numberOfRows() override;
TableViewCell * reusableCell(int index) override;
int reusableCellCount() override;
void setFunction(Function * function);
private:
float parameterAtIndex(int index) override;
void setParameterAtIndex(int parameterIndex, float f) override;
EditableTextMenuListCell m_abscisseCell;
GraphView * m_graphView;
Function * m_function;
};
}
#endif