MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / questionDialog

Method questionDialog

Engine/AppManager.cpp:3523–3540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3521}
3522
3523StandardButtonEnum
3524Dialogs::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
3542StandardButtonEnum
3543Dialogs::questionDialog(const std::string & title,

Callers 1

Calls 3

getTopLevelInstanceMethod · 0.80
hideSplashScreenMethod · 0.45
isBackgroundMethod · 0.45

Tested by

no test coverage detected