void MessageBoxInstance::buttonClicked() { bool ok = true; QString line; if(mMessageBox->clickedButton() == mMessageBox->button(QMessageBox::Yes)) { line = evaluateSubParameter(ok, mIfYes.actionParameter()); if(!ok) { closeAndDelete(); return; } if(mIfYes.action() == ActionTools::IfActionValue::GOTO) setNextLine(line); else if(mIfYes.action() == ActionTools::IfActionValue::CALLPROCEDURE) { if(!callProcedure(line)) { closeAndDelete(); return; } } } else if(mMessageBox->clickedButton() == mMessageBox->button(QMessageBox::No)) { line = evaluateSubParameter(ok, mIfNo.actionParameter()); if(!ok) { closeAndDelete(); return; } if(mIfNo.action() == ActionTools::IfActionValue::GOTO) setNextLine(line); else if(mIfNo.action() == ActionTools::IfActionValue::CALLPROCEDURE) { if(!callProcedure(line)) { closeAndDelete(); return; } } } closeAndDelete(); emit executionEnded(); }
void MessageBoxInstance::stopExecution() { closeAndDelete(); }
void Guitar::pressClose() { emit closeAndDelete(); }