Files
Upsilon/apps/shared/function_go_to_parameter_controller.h
Émilie Feral 5facbfb8ac [apps/sequence] Specialize sequence go to parameter controller to round
the given abscissa and forbid negative values

Change-Id: Iaae39e575c0e2de4993a558e234717a839905872
2017-03-30 16:43:28 +02:00

24 lines
668 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, InteractiveCurveViewRange * graphRange, CurveViewCursor * cursor, I18n::Message symbol);
const char * title() override;
void setFunction(Function * function);
protected:
bool setParameterAtIndex(int parameterIndex, float f) override;
Function * m_function;
private:
float parameterAtIndex(int index) override;
};
}
#endif