39 _msg(msg), _yes(yes), _no(no), _cancel(cancel) {
41 load(
"yesnocancelpanel");
48 if (widget.
getTag() ==
"MessageLabel") {
52 if (widget.
getTag() ==
"YesButton") {
58 if (widget.
getTag() ==
"NoButton") {
60 dynamic_cast<WidgetLabel &>(widget).setText(
_no);
64 if (widget.
getTag() ==
"CancelButton") {
66 dynamic_cast<WidgetLabel &>(widget).setText(
_cancel);
85 if (widget.
getTag() ==
"YesButton") {
90 if (widget.
getTag() ==
"NoButton") {
95 if (widget.
getTag() ==
"CancelButton") {
void initWidget(Widget &widget)
uint32 _returnCode
The GUI's return code.
A class holding an UTF-8 string.
The yes/no/cancel dialog.
virtual void show()
Show the GUI.
WidgetLabel * getLabel(const Common::UString &tag, bool vital=false)
WidgetPanel * getPanel(const Common::UString &tag, bool vital=false)
void load(const Common::UString &resref)
bool empty() const
Is the string empty?
YesNoCancelDialog(const Common::UString &msg, const Common::UString &yes="", const Common::UString &no="", const Common::UString &cancel="", ::Engines::Console *console=0)
void callbackActive(Widget &widget)
Callback that's triggered when a widget was activated.