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 );
121 #endif //YMGAMessageBox_h YMGAMessageBox(DLG_BUTTON b_num=B_ONE, DLG_MODE dlg_mode=D_NORMAL)
The constructor.
DLG_BUTTON show()
it shows the message box dialog using data set by user.
void setButtonLabel(const std::string &label, DLG_BUTTON button=B_ONE)
sets the message box button name (empty string is assigned by default)
two buttons dialog, or button two pressed
One button dialog, or button one pressed.
void setDefaultButton(DLG_BUTTON button=B_ONE)
sets the message box default button
void setText(const std::string &text, bool useRichText=false)
sets the message box text information
void setMinSize(YLayoutSize_t minWidth, YLayoutSize_t minHeight)
sets the dilaog box minimum size according to YWidgetFactory::createMinSize()
void setTitle(const std::string &title)
sets the message box title
virtual ~YMGAMessageBox()
Destructor.
void setIcon(const std::string &icon)
sets the message box icon (full path)