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

33 lines
1.0 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"
namespace Shared {
class GoToParameterController : public FloatParameterController {
public:
GoToParameterController(Responder * parentResponder, InteractiveCurveViewRange * graphRange, CurveViewCursor * cursor, I18n::Message symbol);
void viewWillAppear() override;
int numberOfRows() override;
protected:
constexpr static float k_maxDisplayableFloat = 1E8f;
CurveViewCursor * m_cursor;
private:
void buttonAction() override;
HighlightCell * reusableParameterCell(int index, int type) override;
int reusableParameterCellCount(int type) override;
float previousParameterAtIndex(int index) override;
char m_draftTextBuffer[MessageTableCellWithEditableText::k_bufferLength];
MessageTableCellWithEditableText m_abscisseCell;
float m_previousParameter;
InteractiveCurveViewRange * m_graphRange;
};
}
#endif