Blame view

build3/apps/shared/go_to_parameter_controller.h 1.07 KB
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  #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);
    int numberOfRows() override;
    bool handleEvent(Ion::Events::Event event) override;
  protected:
    constexpr static double k_maxDisplayableFloat = 1E8;
    CurveViewCursor * m_cursor;
    InteractiveCurveViewRange * m_graphRange;
  private:
    void buttonAction() override;
    HighlightCell * reusableParameterCell(int index, int type) override;
    int reusableParameterCellCount(int type) override;
    View * loadView() override;
    void unloadView(View * view) override;
    char m_draftTextBuffer[MessageTableCellWithEditableText::k_bufferLength];
    MessageTableCellWithEditableText * m_abscisseCell;
    I18n::Message m_abscissaSymbol;
  };
  
  }
  
  #endif