Files
Upsilon/apps/shared/function_go_to_parameter_controller.h
Hugo Saint-Vignes 5c75cc55d3 [apps/shared] Apply changes on confirm with GoTo functions
Change-Id: I6ebec412b4b6612710476274a8665375d21f9ef8
2020-07-29 10:07:07 +02:00

27 lines
831 B
C++

#ifndef SHARED_FUNCTION_GO_TO_PARAMETER_CONTROLLER_H
#define SHARED_FUNCTION_GO_TO_PARAMETER_CONTROLLER_H
#include "go_to_parameter_controller.h"
#include "function.h"
namespace Shared {
class FunctionGoToParameterController : public GoToParameterController {
public:
FunctionGoToParameterController(Responder * parentResponder, InputEventHandlerDelegate * inputEventHandlerDelegate, InteractiveCurveViewRange * graphRange, CurveViewCursor * cursor);
const char * title() override { return I18n::translate(I18n::Message::Goto); }
void setRecord(Ion::Storage::Record record);
protected:
bool confirmParameterAtIndex(int parameterIndex, double f) override;
Ion::Storage::Record m_record;
private:
double extractParameterAtIndex(int index) override {
assert(index == 0);
return m_cursor->t();
}
};
}
#endif