Files
Upsilon/apps/graph/graph/graph_controller.h
Émilie Feral b36e5dc67c [escher] Generelize header view controller to button row controller and
use it to add two buttons: "tracer" "afficher valeurs"

Change-Id: I8ee9afec9e381de367133e6b3f5ceb738b9790ab
2017-03-07 13:28:26 +01:00

35 lines
1.1 KiB
C++

#ifndef GRAPH_GRAPH_CONTROLLER_H
#define GRAPH_GRAPH_CONTROLLER_H
#include "graph_view.h"
#include "banner_view.h"
#include "curve_parameter_controller.h"
#include "../../shared/function_graph_controller.h"
#include "../cartesian_function_store.h"
namespace Graph {
class GraphController : public Shared::FunctionGraphController {
public:
GraphController(Responder * parentResponder, CartesianFunctionStore * functionStore, ButtonRowController * header);
const char * emptyMessage() override;
private:
BannerView * bannerView() override;
void reloadBannerView() override;
bool moveCursorHorizontally(int direction) override;
void initCursorParameters() override;
Shared::InteractiveCurveViewRange * interactiveCurveViewRange() override;
CartesianFunctionStore * functionStore() const override;
GraphView * functionGraphView() override;
CurveParameterController * curveParameterController() override;
BannerView m_bannerView;
GraphView m_view;
Shared::InteractiveCurveViewRange m_graphRange;
CurveParameterController m_curveParameterController;
CartesianFunctionStore * m_functionStore;
};
}
#endif