| 3521 | } |
| 3522 | |
| 3523 | StandardButtonEnum |
| 3524 | Dialogs::questionDialog(const std::string & title, |
| 3525 | const std::string & message, |
| 3526 | bool useHtml, |
| 3527 | StandardButtons buttons, |
| 3528 | StandardButtonEnum defaultButton) |
| 3529 | { |
| 3530 | appPTR->hideSplashScreen(); |
| 3531 | AppInstancePtr topLvlInstance = appPTR->getTopLevelInstance(); |
| 3532 | if ( topLvlInstance && !appPTR->isBackground() ) { |
| 3533 | return topLvlInstance->questionDialog(title, message, useHtml, buttons, defaultButton); |
| 3534 | } else { |
| 3535 | std::cout << "QUESTION ASKED: " << title << ":" << message << std::endl; |
| 3536 | std::cout << NATRON_APPLICATION_NAME " answered yes." << std::endl; |
| 3537 | |
| 3538 | return eStandardButtonYes; |
| 3539 | } |
| 3540 | } |
| 3541 | |
| 3542 | StandardButtonEnum |
| 3543 | Dialogs::questionDialog(const std::string & title, |
no test coverage detected