Files
Upsilon/apps/code/editor_controller.h
Léa Saviot fbb5c70339 [code] Cleaned Script and ScriptStore classes, created accordion.h
A Script object now contains its AutoImport marker, its name and its
content. The ScripStore methods have better names and the optimization
is cleaner.

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

26 lines
448 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);
/* ViewController */
View * view() override { return &m_view; }
bool handleEvent(Ion::Events::Event event) override;
void didBecomeFirstResponder() override;
private:
TextArea m_view;
};
}
#endif