mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
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
26 lines
448 B
C++
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
|
|
|