12 #include "threads/CriticalSection.h" 16 #define CONTROL_CHOICES_START 10 17 #define CONTROL_NO_BUTTON CONTROL_CHOICES_START 18 #define CONTROL_YES_BUTTON CONTROL_CHOICES_START + 1 19 #define CONTROL_CUSTOM_BUTTON CONTROL_CHOICES_START + 2 20 #define CONTROL_PROGRESS_BAR 20 22 #define DIALOG_MAX_LINES 3 23 #define DIALOG_MAX_CHOICES 3 34 bool IsConfirmed()
const;
35 void SetLine(
unsigned int iLine,
const CVariant& line);
37 void SetHeading(
const CVariant& heading);
38 void SetChoice(
int iButton,
const CVariant &choice);
40 std::string GetDefaultLabel(
int controlId)
const;
41 virtual int GetDefaultLabelID(
int controlId)
const;
49 void Process(
unsigned int currentTime, CDirtyRegionList &dirtyregions)
override;
51 void OnDeinitWindow(
int nextWindowID)
override;
57 CCriticalSection m_section;
58 std::string m_strHeading;
60 std::string m_strChoices[DIALOG_MAX_CHOICES];
std::string GetLocalized(const CVariant &var) const
Get a localized string from a variant If the variant is already a string we return directly...
Definition: GUIDialogBoxBase.cpp:169
void OnInitWindow() override
Called on window open.
Definition: GUIDialogBoxBase.cpp:133
Definition: GUIDialog.h:35
Definition: GUIMessage.h:365
Definition: GUIDialogBoxBase.h:27