[apps/graph] Rename functions

This commit is contained in:
Léa Saviot
2018-10-16 15:43:30 +02:00
committed by Émilie Feral
parent b7770d087c
commit 933838ff5e
9 changed files with 98 additions and 14 deletions

View File

@@ -1,4 +1,5 @@
#include "list_parameter_controller.h"
#include "storage_list_controller.h"
#include <assert.h>
using namespace Shared;
@@ -14,9 +15,17 @@ HighlightCell * ListParameterController::reusableCell(int index) {
bool ListParameterController::handleEnterOnRow(int rowIndex) {
if (rowIndex == 0) {
renameFunction();
return true;
}
return StorageListParameterController::handleEnterOnRow(rowIndex-1);
}
void ListParameterController::renameFunction() {
// Set editing true on function title
StackViewController * stack = (StackViewController *)(parentResponder());
stack->pop();
m_listController->renameSelectedFunction();
}
}