[code] Python toolbox.

Change-Id: I4028b05c662cae04a5ac3af5021f3438bb22dcd0
This commit is contained in:
Léa Saviot
2017-10-31 16:42:29 +01:00
committed by Romain Goyet
parent a19377ad5e
commit 13bf8c2d62
38 changed files with 1001 additions and 49 deletions

View File

@@ -112,6 +112,12 @@ bool EditorController::textAreaDidReceiveEvent(TextArea * textArea, Ion::Events:
return false;
}
::Toolbox * EditorController::toolboxForTextArea(TextArea * textArea) {
Code::App * codeApp = static_cast<Code::App *>(app());
codeApp->pythonToolbox()->setAction(codeApp->toolboxActionForTextArea());
return codeApp->pythonToolbox();
}
StackViewController * EditorController::stackController() {
return static_cast<StackViewController *>(parentResponder());
}