mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
34 lines
1.1 KiB
C++
34 lines
1.1 KiB
C++
#ifndef REGRESSION_GO_TO_PARAMETER_CONTROLLER_H
|
|
#define REGRESSION_GO_TO_PARAMETER_CONTROLLER_H
|
|
|
|
#include <escher.h>
|
|
#include "../shared/float_parameter_controller.h"
|
|
#include "../shared/curve_view_cursor.h"
|
|
#include "store.h"
|
|
|
|
namespace Regression {
|
|
|
|
class GoToParameterController : public Shared::FloatParameterController {
|
|
public:
|
|
GoToParameterController(Responder * parentResponder, Store * store, Shared::CurveViewCursor * cursor);
|
|
void setXPrediction(bool xPrediction);
|
|
const char * title() const override;
|
|
int numberOfRows() override;
|
|
HighlightCell * reusableCell(int index) override;
|
|
int reusableCellCount() override;
|
|
void willDisplayCellForIndex(HighlightCell * cell, int index) override;
|
|
bool textFieldDidFinishEditing(TextField * textField, const char * text) override;
|
|
void viewWillAppear() override;
|
|
private:
|
|
float parameterAtIndex(int index) override;
|
|
void setParameterAtIndex(int parameterIndex, float f) override;
|
|
char m_draftTextBuffer[PointerTableCellWithEditableText::k_bufferLength];
|
|
PointerTableCellWithEditableText m_abscisseCell;
|
|
Store * m_store;
|
|
Shared::CurveViewCursor * m_cursor;
|
|
bool m_xPrediction;
|
|
};
|
|
|
|
}
|
|
|
|
#endif |