148 Component* associatedComponent =
nullptr);
159 Component* associatedComponent =
nullptr);
170 Component* associatedComponent =
nullptr);
182 Component* associatedComponent =
nullptr);
The base class for all JUCE user-interface objects.
Class used to create a set of options to pass to the AlertWindow and NativeMessageBox methods for sho...
MessageBoxIconType getIconType() const noexcept
Returns the icon type of the dialog box.
Component * getParentComponent() const noexcept
Returns the component that will be used as the parent of the dialog box.
Component * getAssociatedComponent() const noexcept
Returns the component that the dialog box is associated with.
MessageBoxOptions withMessage(const String &boxMessage) const
Sets the message that should be displayed in the dialog box.
MessageBoxOptions withTitle(const String &boxTitle) const
Sets the title of the dialog box.
MessageBoxOptions withButton(const String &text) const
If the string passed in is not empty, this will add a button to the dialog box with the specified tex...
int getNumButtons() const noexcept
Returns the number of buttons that have been added to the dialog box.
MessageBoxOptions withIconType(MessageBoxIconType type) const
Sets the type of icon that should be used for the dialog box.
String getTitle() const
Returns the title of the dialog box.
String getMessage() const
Returns the message of the dialog box.
String getButtonText(int buttonIndex) const
Returns the text that has been set for one of the buttons of the dialog box.
MessageBoxOptions withAssociatedComponent(Component *component) const
The component that the dialog box should be associated with.
MessageBoxOptions withParentComponent(Component *component) const
The component that will contain the message box (e.g.
A special array for holding a list of strings.
This class acts as a pointer which will automatically become null if the object to which it points is...
MessageBoxIconType
The type of icon to show in the dialog box.
@ WarningIcon
An exclamation mark to indicate that the dialog is a warning about something and shouldn't be ignored...
@ QuestionIcon
A question-mark icon, for dialog boxes that need the user to answer a question.
@ NoIcon
No icon will be shown on the dialog box.
@ InfoIcon
An icon that indicates that the dialog box is just giving the user some information,...
Object withMember(Object copy, Member OtherObject::*member, Other &&value)
Copies an object, sets one of the copy's members to the specified value, and then returns the copy.