[apps/escher] Invocation::Action returns a bool

This commit is contained in:
Léa Saviot
2018-10-26 11:36:54 +02:00
committed by Émilie Feral
parent 91d6955ddf
commit bea78aa3b1
16 changed files with 35 additions and 11 deletions

View File

@@ -131,8 +131,10 @@ void ListController::editExpression(Sequence * sequence, int sequenceDefinition,
InputViewController * myInputViewController = (InputViewController *)sender;
const char * textBody = myInputViewController->textBody();
mySequence->setContent(textBody);
return true; //TODO should return result of mySequence->setContent
},
[](void * context, void * sender){
return true;
});
break;
case 1:
@@ -142,8 +144,10 @@ void ListController::editExpression(Sequence * sequence, int sequenceDefinition,
InputViewController * myInputViewController = (InputViewController *)sender;
const char * textBody = myInputViewController->textBody();
mySequence->setFirstInitialConditionContent(textBody);
return true; //TODO should return result of mySequence->setFirstInitialConditionContent
},
[](void * context, void * sender){
return true;
});
break;
default:
@@ -153,8 +157,10 @@ void ListController::editExpression(Sequence * sequence, int sequenceDefinition,
InputViewController * myInputViewController = (InputViewController *)sender;
const char * textBody = myInputViewController->textBody();
mySequence->setSecondInitialConditionContent(textBody);
return true; //TODO should return the result of mySequence->setSecondInitialConditionContent
},
[](void * context, void * sender){
return true;
});
}
}