107 bool hasCancelButton,
108 int timeOutMsWhenCancelling = 10000,
110 Component* componentToCentreAround =
nullptr);
116 #if JUCE_MODAL_LOOPS_PERMITTED
128 bool runThread (
Priority priority = Priority::normal);
140 void launchThread (
Priority priority = Priority::normal);
147 void setProgress (
double newProgress);
150 void setStatusMessage (
const String& newStatusMessage);
159 virtual void threadComplete (
bool userPressedCancel);
163 void timerCallback()
override;
169 const int timeOutMsWhenCancelling;
170 bool wasCancelledByUser;
A window that displays a message and has buttons for the user to react to it.
The base class for all JUCE user-interface objects.
A thread that automatically pops up a modal dialog box with a progress bar and cancel button while it...
AlertWindow * getAlertWindow() const noexcept
Returns the AlertWindow that is being used.
Priority
The different runtime priorities of non-realtime threads.
Makes repeated callbacks to a virtual method at a specified time interval.