93 int getNumButtons()
const;
96 void triggerButtonClick (
const String& buttonName);
104 void setEscapeKeyCancels (
bool shouldEscapeKeyCancel);
120 const String& initialContents,
122 bool isPasswordBox =
false);
132 String getTextEditorContents (
const String& nameOfTextEditor)
const;
176 void addProgressBarComponent (
double& progressValue);
185 void addCustomComponent (
Component* component);
190 int getNumCustomComponents()
const;
198 Component* getCustomComponent (
int index)
const;
208 Component* removeCustomComponent (
int index);
212 bool containsAnyExtraComponents()
const;
215 #if JUCE_MODAL_LOOPS_PERMITTED
235 Component* associatedComponent =
nullptr);
280 std::function<
void (
int)>
callback);
307 Component* associatedComponent =
nullptr,
351 Component* associatedComponent =
nullptr,
354 const String& button1Text,
355 const String& button2Text,
406 Component* associatedComponent =
nullptr,
409 const String& button1Text,
410 const String& button2Text,
411 const String& button3Text,
417 #if JUCE_MODAL_LOOPS_PERMITTED && ! defined (DOXYGEN)
426 [[deprecated (
"Use the NativeMessageBox methods instead for more options")]]
#define noexcept
Definition DistrhoDefines.h:72
static void message(int level, const char *fmt,...)
Definition adplugdb.cpp:120
void mouseDown(const MouseEvent &) override
Definition juce_AlertWindow.cpp:517
ColourIds
Definition juce_AlertWindow.h:442
@ textColourId
Definition juce_AlertWindow.h:444
@ outlineColourId
Definition juce_AlertWindow.h:445
@ backgroundColourId
Definition juce_AlertWindow.h:443
StringArray textboxNames
Definition juce_AlertWindow.h:519
static constexpr auto WarningIcon
Definition juce_AlertWindow.h:481
ComponentDragger dragger
Definition juce_AlertWindow.h:510
OwnedArray< TextEditor > textBoxes
Definition juce_AlertWindow.h:513
OwnedArray< ComboBox > comboBoxes
Definition juce_AlertWindow.h:514
OwnedArray< TextButton > buttons
Definition juce_AlertWindow.h:512
StringArray comboBoxNames
Definition juce_AlertWindow.h:519
String text
Definition juce_AlertWindow.h:505
MessageBoxIconType getAlertType() const noexcept
Definition juce_AlertWindow.h:69
float desktopScale
Definition juce_AlertWindow.h:522
Rectangle< int > textArea
Definition juce_AlertWindow.h:511
Array< Component * > allComps
Definition juce_AlertWindow.h:518
void updateLayout(bool onlyIncreaseSize)
Definition juce_AlertWindow.cpp:359
Array< Component * > customComps
Definition juce_AlertWindow.h:516
void lookAndFeelChanged() override
Definition juce_AlertWindow.cpp:553
static constexpr auto NoIcon
Definition juce_AlertWindow.h:479
OwnedArray< Component > textBlocks
Definition juce_AlertWindow.h:517
void mouseDrag(const MouseEvent &) override
Definition juce_AlertWindow.cpp:522
int getDesktopWindowStyleFlags() const override
Definition juce_AlertWindow.cpp:562
MessageBoxIconType AlertIconType
Definition juce_AlertWindow.h:477
OwnedArray< ProgressBar > progressBars
Definition juce_AlertWindow.h:515
Component *const associatedComponent
Definition juce_AlertWindow.h:520
void exitAlert(Button *button)
Definition juce_AlertWindow.cpp:104
bool escapeKeyCancels
Definition juce_AlertWindow.h:521
MessageBoxIconType alertIconType
Definition juce_AlertWindow.h:508
void paint(Graphics &) override
Definition juce_AlertWindow.cpp:324
std::unique_ptr< AccessibilityHandler > createAccessibilityHandler() override
Definition juce_AlertWindow.cpp:797
static constexpr auto QuestionIcon
Definition juce_AlertWindow.h:480
Label accessibleMessageLabel
Definition juce_AlertWindow.h:507
ComponentBoundsConstrainer constrainer
Definition juce_AlertWindow.h:509
static constexpr auto InfoIcon
Definition juce_AlertWindow.h:482
AlertWindow(const String &title, const String &message, MessageBoxIconType iconType, Component *associatedComponent=nullptr)
Definition juce_AlertWindow.cpp:39
TextLayout textLayout
Definition juce_AlertWindow.h:506
bool keyPressed(const KeyPress &) override
Definition juce_AlertWindow.cpp:527
void userTriedToCloseWindow() override
Definition juce_AlertWindow.cpp:79
float getDesktopScaleFactor() const override
Definition juce_AlertWindow.h:501
Definition juce_Array.h:56
Definition juce_ComboBox.h:49
Definition juce_ComponentBoundsConstrainer.h:44
Definition juce_ComponentDragger.h:59
Definition juce_Component.h:36
static Desktop &JUCE_CALLTYPE getInstance()
Definition juce_Desktop.cpp:50
Definition juce_Font.h:42
Definition juce_GraphicsContext.h:45
Definition juce_KeyPress.h:40
Definition juce_Label.h:41
Definition juce_MessageBoxOptions.h:63
Definition juce_ModalComponentManager.h:56
Definition juce_MouseEvent.h:39
Definition juce_OwnedArray.h:51
Definition juce_Rectangle.h:67
Definition juce_StringArray.h:35
Definition juce_String.h:53
Definition juce_TextEditor.h:43
Definition juce_TextLayout.h:41
TopLevelWindow(const String &name, bool addToDesktop)
Definition juce_TopLevelWindow.cpp:134
static const char * title
Definition pugl.h:1747
static const char * name
Definition pugl.h:1582
#define JUCE_API
Definition juce_StandardHeader.h:152
Definition carla_juce.cpp:31
MessageBoxIconType
Definition juce_MessageBoxOptions.h:31
@ WarningIcon
Definition juce_MessageBoxOptions.h:35
@ QuestionIcon
Definition juce_MessageBoxOptions.h:33
@ NoIcon
Definition juce_MessageBoxOptions.h:32
@ InfoIcon
Definition juce_MessageBoxOptions.h:37
Definition juce_AlertWindow.h:453
virtual void drawAlertBox(Graphics &, AlertWindow &, const Rectangle< int > &textArea, TextLayout &)=0
virtual ~LookAndFeelMethods()=default
virtual AlertWindow * createAlertWindow(const String &title, const String &message, const String &button1, const String &button2, const String &button3, MessageBoxIconType iconType, int numButtons, Component *associatedComponent)=0
virtual int getAlertWindowButtonHeight()=0
virtual Font getAlertWindowMessageFont()=0
virtual Font getAlertWindowFont()=0
virtual int getAlertBoxWindowFlags()=0
virtual Array< int > getWidthsForTextButtons(AlertWindow &, const Array< TextButton * > &)=0
virtual Font getAlertWindowTitleFont()=0
const char * text
Definition swell-functions.h:167
RECT const char void(* callback)(const char *droppath))) SWELL_API_DEFINE(BOOL
Definition swell-functions.h:1004
#define const
Definition zconf.h:137