mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 22:00:28 +01:00
28 lines
666 B
C++
28 lines
666 B
C++
#ifndef EXPRESSION_EDITOR_CONTROLLER_H
|
|
#define EXPRESSION_EDITOR_CONTROLLER_H
|
|
|
|
#include <escher.h>
|
|
#include <poincare/expression_layout_cursor.h>
|
|
#include "expression_and_layout.h"
|
|
#include "expression_editor_view.h"
|
|
extern "C" {
|
|
#include <assert.h>
|
|
}
|
|
|
|
namespace ExpressionEditor {
|
|
|
|
class Controller : public ViewController {
|
|
public:
|
|
Controller(Responder * parentResponder, Poincare::ExpressionLayout * expressionLayout);
|
|
View * view() override { return &m_view; }
|
|
void didBecomeFirstResponder() override;
|
|
bool handleEvent(Ion::Events::Event event) override;
|
|
private:
|
|
ExpressionEditorView m_view;
|
|
Poincare::ExpressionLayoutCursor m_cursor;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|