mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
Editing, renaming, deleting or changing the auto-importation of a script triggers the reloading of the console (the history is cleared, Python restarted and the scripts re-imported). Change-Id: If8b933cc077ecd36cab09214b5e7a181aa3ae030
30 lines
630 B
C++
30 lines
630 B
C++
#ifndef CODE_EDITOR_CONTROLLER_H
|
|
#define CODE_EDITOR_CONTROLLER_H
|
|
|
|
#include <escher.h>
|
|
#include "script.h"
|
|
|
|
namespace Code {
|
|
|
|
class ScriptParameterController;
|
|
|
|
class EditorController : public ViewController {
|
|
public:
|
|
EditorController(ScriptParameterController * scriptParameterController);
|
|
void setScript(Script script);
|
|
|
|
/* ViewController */
|
|
View * view() override { return &m_view; }
|
|
bool handleEvent(Ion::Events::Event event) override;
|
|
void didBecomeFirstResponder() override;
|
|
void viewDidDisappear() override;
|
|
private:
|
|
TextArea m_view;
|
|
ScriptParameterController * m_scriptParameterController;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|
|
|