mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
27 lines
831 B
C++
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
|