Files
Upsilon/apps/code/editor_controller.h
Léa Saviot 5de4b5cd67 [code] Each script has a name, stored in the accordeon buffer.
A script can now be imported in the console.
Moved all the MicroPython functions to python/port files.

Change-Id: I0a23e8cb20005719b800e81470e1c574c702c3b7
2017-11-17 11:59:50 +01:00

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