Files
Upsilon/apps/graph/graph/goto_parameter_controller.h
Émilie Feral bbe1b06eae [apps][escher] Use only one draftTextBuffer by controller (as you cannot
edit all cells at the same time)

Change-Id: Ifbc6e8c7b7f2dd17539666ed3b1253f1c28ef873
2016-12-15 13:51:40 +01:00

31 lines
1009 B
C++

#ifndef GRAPH_GRAPH_GOTO_PARAMETER_CONTROLLER_H
#define GRAPH_GRAPH_GOTO_PARAMETER_CONTROLLER_H
#include <escher.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);
bool textFieldDidReceiveEvent(TextField * textField, Ion::Events::Event event) override;
private:
float parameterAtIndex(int index) override;
void setParameterAtIndex(int parameterIndex, float f) override;
char m_draftTextBuffer[EditableTextMenuListCell::k_bufferLength];
EditableTextMenuListCell m_abscisseCell;
GraphView * m_graphView;
Function * m_function;
};
}
#endif