mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
A script can now be imported in the console. Moved all the MicroPython functions to python/port files. Change-Id: I0a23e8cb20005719b800e81470e1c574c702c3b7
24 lines
424 B
C++
24 lines
424 B
C++
#ifndef CODE_EDITOR_CONTROLLER_H
|
|
#define CODE_EDITOR_CONTROLLER_H
|
|
|
|
#include <escher.h>
|
|
#include "script.h"
|
|
|
|
namespace Code {
|
|
|
|
class EditorController : public ViewController {
|
|
public:
|
|
EditorController();
|
|
void setScript(Script script);
|
|
View * view() override { return &m_view; }
|
|
bool handleEvent(Ion::Events::Event event) override;
|
|
void didBecomeFirstResponder() override;
|
|
private:
|
|
TextArea m_view;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|
|
|