mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +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
|
|
@ -529,10 +529,13 @@ private:
|
|||
}
|
||||
else
|
||||
{
|
||||
NativeMessageBox::showMessageBoxAsync (AlertWindow::WarningIcon, "Enable Code Signing",
|
||||
"You need to enable code-signing for your iOS project and enable \"iCloud Documents\" "
|
||||
"permissions to be able to open audio files on your iDevice. See: "
|
||||
"https://forum.juce.com/t/native-ios-android-file-choosers");
|
||||
NativeMessageBox::showAsync (MessageBoxOptions()
|
||||
.withIconType (MessageBoxIconType::WarningIcon)
|
||||
.withTitle ("Enable Code Signing")
|
||||
.withMessage ("You need to enable code-signing for your iOS project and enable \"iCloud Documents\" "
|
||||
"permissions to be able to open audio files on your iDevice. See: "
|
||||
"https://forum.juce.com/t/native-ios-android-file-choosers"),
|
||||
nullptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -359,11 +359,11 @@ private:
|
|||
fileToShare.deleteFile();
|
||||
|
||||
if (! success && error.isNotEmpty())
|
||||
{
|
||||
NativeMessageBox::showMessageBoxAsync (AlertWindow::WarningIcon,
|
||||
"Sharing Error",
|
||||
error);
|
||||
}
|
||||
NativeMessageBox::showAsync (MessageBoxOptions()
|
||||
.withIconType (MessageBoxIconType::WarningIcon)
|
||||
.withTitle ("Sharing Error")
|
||||
.withMessage (error),
|
||||
nullptr);
|
||||
});
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -524,7 +524,7 @@ private:
|
|||
|
||||
void handleInvalidLegacyModeParameters() const
|
||||
{
|
||||
AlertWindow::showMessageBoxAsync (AlertWindow::WarningIcon,
|
||||
AlertWindow::showMessageBoxAsync (MessageBoxIconType::WarningIcon,
|
||||
"Invalid legacy mode channel layout",
|
||||
"Cannot set legacy mode start/end channel:\n"
|
||||
"The end channel must not be less than the start channel!",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue