13 m_modelVersion(modelVersion),
14 m_rangeVersion(rangeVersion),
15 m_rangeParameterController(this, interactiveRange),
16 m_zoomParameterController(this, interactiveRange, curveView),
17 m_rangeButton(this,
I18n::Message::Axis,
Invocation([](void * context, void * sender) {
22 m_zoomButton(
this, I18n::Message::Zoom,
Invocation([](
void * context,
void * sender) {
27 m_defaultInitialisationButton(
this, I18n::Message::Initialization,
Invocation([](
void * context,
void * sender) {
28 InteractiveCurveViewController * graphController = (InteractiveCurveViewController *) context;
30 stack->
push(graphController->initialisationParameterController());
83 return &m_rangeParameterController;
87 return &m_zoomParameterController;
98 const Button * buttons[3] = {&m_rangeButton, &m_zoomButton, &m_defaultInitialisationButton};
99 return (
Button *)buttons[index];
108 if (*m_modelVersion != newModelVersion) {
109 *m_modelVersion = newModelVersion;
116 if (*m_rangeVersion != newRangeVersion) {
117 *m_rangeVersion = newRangeVersion;
123 if (!
curveView()->isMainViewSelected()) {
141 if (nextFirstResponder ==
nullptr || nextFirstResponder ==
tabController()) {
virtual StackViewController * stackController() const
virtual uint32_t rangeVersion()=0
ViewController * rangeParameterController()
int numberOfButtons(ButtonRowController::Position position) const override
Responder * defaultController() override
void push(ViewController *vc, KDColor textColor=Palette::SubTab, KDColor backgroundColor=KDColorWhite, KDColor separatorColor=Palette::GreyBright)
Responder * parentResponder() const
virtual void initRangeParameters()=0
virtual uint32_t modelVersion()=0
virtual CurveView * curveView()=0
void setOkView(View *okView)
void viewDidDisappear() override
Button * buttonAtIndex(int index, ButtonRowController::Position position) const override
void didEnterResponderChain(Responder *previousFirstResponder) override
void willExitResponderChain(Responder *nextFirstResponder) override
ViewController * zoomParameterController()
enum Message uint16_t enum Language uint16_t const char * translate(Message m, Language l=(Language) 0)
Responder * tabController() const
virtual bool isEmpty() const =0
virtual bool moveCursorVertically(int direction)=0
void viewWillAppear() override
bool handleEvent(Ion::Events::Event event) override
virtual bool isCursorVisible()=0
virtual void initCursorParameters()=0
void setFirstResponder(Responder *responder)
bool handleEvent(Ion::Events::Event event) override
void selectMainView(bool mainViewSelected)
void didBecomeFirstResponder() override
const char * title() override
virtual void reloadBannerView()