Files
Upsilon/apps/regression/go_to_parameter_controller.h
Émilie Feral affda5eae9 [apps] Modular reimplementation of application models (stores and
ranges) and of curve views/curve view controllers.

Change-Id: If4ca9bf1bec024917ef540a3fc7baefa8700f7ba
2017-01-10 13:35:19 +01:00

32 lines
998 B
C++

#ifndef REGRESSION_GO_TO_PARAMETER_CONTROLLER_H
#define REGRESSION_GO_TO_PARAMETER_CONTROLLER_H
#include <escher.h>
#include "../float_parameter_controller.h"
#include "../curve_view_cursor.h"
#include "store.h"
namespace Regression {
class GoToParameterController : public FloatParameterController {
public:
GoToParameterController(Responder * parentResponder, Store * store, CurveViewCursor * cursor);
void setXPrediction(bool xPrediction);
const char * title() const override;
int numberOfRows() override;
TableViewCell * reusableCell(int index) override;
int reusableCellCount() override;
void willDisplayCellForIndex(TableViewCell * cell, int index) override;
private:
float parameterAtIndex(int index) override;
void setParameterAtIndex(int parameterIndex, float f) override;
char m_draftTextBuffer[EditableTextMenuListCell::k_bufferLength];
EditableTextMenuListCell m_abscisseCell;
Store * m_store;
CurveViewCursor * m_cursor;
bool m_xPrediction;
};
}
#endif