mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 15:20:39 +01:00
[apps/graph] Rename functions
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user