editor_controller.h 390 Bytes
#ifndef CODE_EDITOR_CONTROLLER_H
#define CODE_EDITOR_CONTROLLER_H

#include <escher.h>
#include "program.h"

namespace Code {

class EditorController : public ViewController {
public:
  EditorController(Program * program);
  View * view() override;
  bool handleEvent(Ion::Events::Event event) override;
  void didBecomeFirstResponder() override;
private:
  TextArea m_view;
};

}

#endif