Files
Upsilon/apps/regression/go_to_parameter_controller.h
Émilie Feral e76cab75c1 [apps/shared] Factorize go to parameter controllers in parent class
(used in regression, graph, sequence)

Change-Id: I5e54bca17f9de7b21aeb705ea87818b064662904
2017-03-30 16:08:40 +02:00

26 lines
721 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 GoToParameterController : public Shared::GoToParameterController {
public:
GoToParameterController(Responder * parentResponder, Store * store, Shared::CurveViewCursor * cursor);
void setXPrediction(bool xPrediction);
const char * title() override;
void willDisplayCellForIndex(HighlightCell * cell, int index) override;
private:
float parameterAtIndex(int index) override;
bool setParameterAtIndex(int parameterIndex, float f) override;
Store * m_store;
bool m_xPrediction;
};
}
#endif