Files
Upsilon/apps/regression/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

28 lines
813 B
C++

#ifndef REGRESSION_GO_TO_PARAMETER_CONTROLLER_H
#define REGRESSION_GO_TO_PARAMETER_CONTROLLER_H
#include <escher.h>
#include "../shared/go_to_parameter_controller.h"
#include "store.h"
namespace Regression {
class GraphController;
class GoToParameterController : public Shared::GoToParameterController {
public:
GoToParameterController(Responder * parentResponder, InputEventHandlerDelegate * inputEventHandlerDelegate, Store * store, Shared::CurveViewCursor * cursor, GraphController * graphController);
void setXPrediction(bool xPrediction);
const char * title() override;
private:
double extractParameterAtIndex(int index) override;
bool confirmParameterAtIndex(int parameterIndex, double f) override;
Store * m_store;
bool m_xPrediction;
GraphController * m_graphController;
};
}
#endif