25 #ifndef JUCE_ALERTWINDOW_H_INCLUDED 26 #define JUCE_ALERTWINDOW_H_INCLUDED 74 Component* associatedComponent =
nullptr);
89 void setMessage (
const String& message);
100 void addButton (
const String& name,
106 int getNumButtons()
const;
109 void triggerButtonClick (
const String& buttonName);
117 void setEscapeKeyCancels (
bool shouldEscapeKeyCancel);
132 void addTextEditor (
const String& name,
133 const String& initialContents,
135 bool isPasswordBox =
false);
145 String getTextEditorContents (
const String& nameOfTextEditor)
const;
162 void addComboBox (
const String& name,
180 void addTextBlock (
const String& text);
189 void addProgressBarComponent (
double& progressValue);
198 void addCustomComponent (
Component* component);
203 int getNumCustomComponents()
const;
211 Component* getCustomComponent (
int index)
const;
221 Component* removeCustomComponent (
int index);
225 bool containsAnyExtraComponents()
const;
230 #if JUCE_MODAL_LOOPS_PERMITTED 250 Component* associatedComponent =
nullptr);
278 Component* associatedComponent =
nullptr,
322 Component* associatedComponent =
nullptr,
325 const String& button1Text,
326 const String& button2Text,
377 Component* associatedComponent =
nullptr,
380 const String& button1Text,
381 const String& button2Text,
382 const String& button3Text,
396 #if JUCE_MODAL_LOOPS_PERMITTED 413 backgroundColourId = 0x1001800,
414 textColourId = 0x1001810,
415 outlineColourId = 0x1001820
436 virtual int getAlertBoxWindowFlags() = 0;
438 virtual int getAlertWindowButtonHeight() = 0;
440 virtual Font getAlertWindowTitleFont() = 0;
441 virtual Font getAlertWindowMessageFont() = 0;
442 virtual Font getAlertWindowFont() = 0;
454 bool keyPressed (
const KeyPress&)
override;
456 void buttonClicked (
Button*)
override;
458 void lookAndFeelChanged()
override;
460 void userTriedToCloseWindow()
override;
462 int getDesktopWindowStyleFlags()
const override;
481 bool escapeKeyCancels;
483 void updateLayout (
bool onlyIncreaseSize);
488 #endif // JUCE_ALERTWINDOW_H_INCLUDED
Definition: juce_KeyPress.h:37
static const String empty
Definition: juce_String.h:152
Definition: juce_Font.h:39
#define noexcept
Definition: juce_CompilerSupport.h:141
Definition: juce_AlertWindow.h:42
Definition: juce_TextLayout.h:38
Definition: juce_TopLevelWindow.h:51
Definition: juce_AlertWindow.h:50
Definition: juce_ModalComponentManager.h:53
AlertIconType
Definition: juce_AlertWindow.h:48
Definition: juce_String.h:43
#define JUCE_API
Definition: juce_StandardHeader.h:139
Definition: juce_Rectangle.h:36
Definition: juce_AlertWindow.h:422
AlertIconType getAlertType() const noexcept
Definition: juce_AlertWindow.h:82
Definition: juce_Component.h:33
Definition: juce_TextEditor.h:38
ColourIds
Definition: juce_AlertWindow.h:411
Definition: juce_StringArray.h:39
virtual ~LookAndFeelMethods()
Definition: juce_AlertWindow.h:424
Definition: juce_GraphicsContext.h:42
Definition: juce_ComboBox.h:44
Definition: juce_ComponentBoundsConstrainer.h:41
Definition: juce_MouseEvent.h:36
Definition: juce_ComponentDragger.h:56