Files
Upsilon/apps/graph/graph/graph_controller.h
Émilie Feral 96a9ac3a9c [apps/graph] Wrap in namespace Graph
Change-Id: I08b37438f42749ff86e105770cd5aa566f84a237
2016-10-14 11:47:19 +02:00

31 lines
751 B
C++

#ifndef GRAPH_GRAPH_CONTROLLER_H
#define GRAPH_GRAPH_CONTROLLER_H
#include <escher.h>
#include "graph_view.h"
#include "../function_store.h"
#include "../evaluate_context.h"
namespace Graph {
class GraphController : public HeaderViewController {
public:
GraphController(Responder * parentResponder, FunctionStore * functionStore, EvaluateContext * evaluateContext);
const char * title() const override;
bool handleEvent(Ion::Events::Event event) override;
void didBecomeFirstResponder() override;
int numberOfButtons() const override;
Button * buttonAtIndex(int index) override;
private:
Responder * tabController() const;
GraphView m_view;
bool m_headerSelected;
Button m_windowButton;
Button m_displayButton;
};
}
#endif