Files
Upsilon/apps/code/editor_controller.h
Léa Saviot 35520fb3d4 [code] Scripts can be automatically imported when the console is opened.
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
2017-11-17 11:59:50 +01:00

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