[code] Split the Menu Controller in two columns.

The scripts names are on the right and open the script edition.
The left cells open the script options.

Change-Id: I3fbab8c3861f3395c3206775c92cda3470963b26
This commit is contained in:
Léa Saviot
2017-11-14 16:14:56 +01:00
committed by Romain Goyet
parent c294c15072
commit 57633829a9
18 changed files with 259 additions and 71 deletions

View File

@@ -1,14 +1,15 @@
#include "editor_controller.h"
#include "menu_controller.h"
#include "script_parameter_controller.h"
#include "helpers.h"
#include <apps/code/app.h>
namespace Code {
EditorController::EditorController(ScriptParameterController * scriptParameterController) :
EditorController::EditorController(MenuController * menuController) :
ViewController(nullptr),
m_textArea(this),
m_scriptParameterController(scriptParameterController)
m_menuController(menuController)
{
m_textArea.setDelegate(this);
}
@@ -34,7 +35,7 @@ void EditorController::viewWillAppear() {
}
void EditorController::viewDidDisappear() {
m_scriptParameterController->scriptContentEditionDidFinish();
m_menuController->scriptContentEditionDidFinish();
}
bool EditorController::textAreaShouldFinishEditing(TextArea * textArea, Ion::Events::Event event) {