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 SHARED_GO_TO_PARAMETER_CONTROLLER_H
|
|
#define SHARED_GO_TO_PARAMETER_CONTROLLER_H
|
|
|
|
#include <escher.h>
|
|
#include "float_parameter_controller.h"
|
|
#include "curve_view_cursor.h"
|
|
#include "interactive_curve_view_range.h"
|
|
#include "function.h"
|
|
|
|
namespace Shared {
|
|
|
|
class GoToParameterController : public FloatParameterController {
|
|
public:
|
|
GoToParameterController(Responder * parentResponder, InteractiveCurveViewRange * graphRange, CurveViewCursor * cursor, const char * symbol);
|
|
const char * title() const override;
|
|
int numberOfRows() override;
|
|
HighlightCell * reusableCell(int index) override;
|
|
int reusableCellCount() override;
|
|
void setFunction(Function * function);
|
|
bool textFieldDidFinishEditing(TextField * textField, const char * text) override;
|
|
private:
|
|
float parameterAtIndex(int index) override;
|
|
void setParameterAtIndex(int parameterIndex, float f) override;
|
|
char m_draftTextBuffer[PointerTableCellWithEditableText::k_bufferLength];
|
|
PointerTableCellWithEditableText m_abscisseCell;
|
|
InteractiveCurveViewRange * m_graphRange;
|
|
CurveViewCursor * m_cursor;
|
|
Function * m_function;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|