24 #ifndef YMGAMessageBox_h
25 #define YMGAMessageBox_h
28 #include <yui/YTypes.h>
72 void setIcon(
const std::string& icon);
78 void setTitle(
const std::string& title);
85 void setText(
const std::string& text,
bool useRichText=
false);
92 void setMinSize(YLayoutSize_t minWidth, YLayoutSize_t minHeight );
void setTitle(const std::string &title)
sets the message box title
void setDefaultButton(DLG_BUTTON button=B_ONE)
sets the message box default button
virtual ~YMGAMessageBox()
Destructor.
void setText(const std::string &text, bool useRichText=false)
sets the message box text information
YMGAMessageBox(DLG_BUTTON b_num=B_ONE, DLG_MODE dlg_mode=D_NORMAL)
The constructor.
@ B_TWO
two buttons dialog, or button two pressed
@ B_ONE
One button dialog, or button one pressed.
@ D_WARNING
Warning dialog.
void setButtonLabel(const std::string &label, DLG_BUTTON button=B_ONE)
sets the message box button name (empty string is assigned by default)
void setIcon(const std::string &icon)
sets the message box icon (full path)
void setMinSize(YLayoutSize_t minWidth, YLayoutSize_t minHeight)
sets the dilaog box minimum size according to YWidgetFactory::createMinSize()
DLG_BUTTON show()
it shows the message box dialog using data set by user.