mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-06 04:00:08 +00:00
Add MessageBoxOptions class for specifying a set of AlertWindow and NativeMessageBox options
- Add AlertWindow::show() and showAsync() methods that take a MessageBoxOptions argument - Add NativeMessageBox::show() and showAsync() methods that take a MessageBoxOptions argument - Update the DialogsDemo to demonstrate the new methods - Deprecate AlertWindow::showNativeDialogBox() in favour of the NativeMessageBox methods - Pass button strings specified in MesssageBoxOptions to native dialog boxes correctly - Use modern TaskDialog on Windows for the native dialog box where available
This commit is contained in:
parent
89ca17cf34
commit
551d7b9c5b
54 changed files with 1357 additions and 595 deletions
|
|
@ -835,7 +835,7 @@ void ProjucerApplication::launchDemoRunner()
|
|||
"Couldn't find a compiled version of the Demo Runner."
|
||||
" Please compile the Demo Runner project in the JUCE examples directory.",
|
||||
"OK", {}, {},
|
||||
AlertWindow::WarningIcon, 1,
|
||||
MessageBoxIconType::WarningIcon, 1,
|
||||
mainWindowList.getFrontmostWindow (false)));
|
||||
demoRunnerAlert->enterModalState (true, ModalCallbackFunction::create ([this] (int)
|
||||
{
|
||||
|
|
@ -847,7 +847,7 @@ void ProjucerApplication::launchDemoRunner()
|
|||
"Couldn't find a compiled version of the Demo Runner."
|
||||
" Do you want to open the project?",
|
||||
"Open project", "Cancel", {},
|
||||
AlertWindow::QuestionIcon, 2,
|
||||
MessageBoxIconType::QuestionIcon, 2,
|
||||
mainWindowList.getFrontmostWindow (false)));
|
||||
demoRunnerAlert->enterModalState (true, ModalCallbackFunction::create ([this, demoRunnerFile] (int retVal)
|
||||
{
|
||||
|
|
@ -1102,7 +1102,7 @@ void ProjucerApplication::createNewProjectFromClipboard()
|
|||
{
|
||||
if (errorString.isNotEmpty())
|
||||
{
|
||||
AlertWindow::showMessageBoxAsync (AlertWindow::WarningIcon, "Error", errorString);
|
||||
AlertWindow::showMessageBoxAsync (MessageBoxIconType::WarningIcon, "Error", errorString);
|
||||
tempFile.deleteFile();
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue