11 #include "GUIDialogBoxBase.h" 12 #include "IProgressCallback.h" 24 void Open(
const std::string ¶m =
"");
26 bool OnBack(
int actionID)
override;
27 void OnWindowLoaded()
override;
29 bool IsCanceled()
const {
return m_iChoice == CHOICE_CANCELED; }
30 void SetPercentage(
int iPercentage);
31 int GetPercentage()
const {
return m_percentage; }
32 void ShowProgressBar(
bool bOnOff);
34 void ShowChoice(
int iChoice,
const CVariant& label);
36 static constexpr
int CHOICE_NONE = -2;
37 static constexpr
int CHOICE_CANCELED = -1;
38 int GetChoice()
const;
47 bool Wait(
int progresstime = 10);
57 void SetProgressMax(
int iMax)
override;
58 void SetProgressAdvance(
int nSteps=1)
override;
59 bool Abort()
override;
61 void SetCanCancel(
bool bCanCancel);
65 int GetDefaultLabelID(
int controlId)
const override;
66 void Process(
unsigned int currentTime, CDirtyRegionList &dirtyregions)
override;
75 std::array<bool, DIALOG_MAX_CHOICES> m_supportedChoices = {};
76 int m_iChoice = CHOICE_NONE;
79 void UpdateControls();
This is an Event class built from a ConditionVariable.
Definition: Event.h:35
bool WaitOnEvent(CEvent &event)
Wait on an event or for the progress dialog to be canceled, while regularly rendering to allow for po...
Definition: GUIDialogProgress.cpp:207
bool Wait(int progresstime=10)
Wait for the progress dialog to be closed or canceled, while regularly rendering to allow for pointer...
Definition: GUIDialogProgress.cpp:198
void OnInitWindow() override
Called on window open.
Definition: GUIDialogProgress.cpp:263
Definition: IProgressCallback.h:11
Definition: GUIMessage.h:365
Definition: GUIDialogProgress.h:16
Definition: GUIDialogBoxBase.h:27