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);
38 void SetHeading(
const CVariant& heading);
39 bool HasHeading()
const;
40 void SetChoice(
int iButton,
const CVariant &choice);
42 std::string GetDefaultLabel(
int controlId)
const;
43 virtual int GetDefaultLabelID(
int controlId)
const;
51 void Process(
unsigned int currentTime, CDirtyRegionList &dirtyregions)
override;
53 void OnDeinitWindow(
int nextWindowID)
override;
59 mutable CCriticalSection m_section;
60 std::string m_strHeading;
62 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:181
void OnInitWindow() override
Called on window open.
Definition: GUIDialogBoxBase.cpp:145
Definition: GUIDialog.h:35
Definition: GUIMessage.h:365
Definition: GUIDialogBoxBase.h:27