mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
[code] Fix handling of python heap by ConsoleController,
EditorController and VariableBoxController
This commit is contained in:
@@ -41,18 +41,24 @@ bool EditorController::handleEvent(Ion::Events::Event event) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void EditorController::didEnterResponderChain(Responder * previousFirstResponder) {
|
||||
m_editorView.loadSyntaxHighlighter();
|
||||
}
|
||||
|
||||
void EditorController::willExitResponderChain(Responder * nextFirstResponder) {
|
||||
m_editorView.unloadSyntaxHighlighter();
|
||||
}
|
||||
|
||||
void EditorController::didBecomeFirstResponder() {
|
||||
app()->setFirstResponder(&m_editorView);
|
||||
}
|
||||
|
||||
void EditorController::viewWillAppear() {
|
||||
m_editorView.loadSyntaxHighlighter();
|
||||
m_editorView.setCursorLocation(strlen(m_editorView.text()));
|
||||
}
|
||||
|
||||
void EditorController::viewDidDisappear() {
|
||||
m_menuController->scriptContentEditionDidFinish();
|
||||
m_editorView.unloadSyntaxHighlighter();
|
||||
}
|
||||
|
||||
bool EditorController::textAreaDidReceiveEvent(TextArea * textArea, Ion::Events::Event event) {
|
||||
|
||||
Reference in New Issue
Block a user