Public Member Functions | |
MessageDlg (const YGP::StatusObject &obj) | |
virtual | ~MessageDlg () |
void | showDetails (bool show=true) |
void | update (const YGP::StatusObject &obj) |
Static Public Member Functions | |
static MessageDlg * | create (const YGP::StatusObject &obj) |
Protected Member Functions | |
void | free (int) |
Static Protected Member Functions | |
static Gtk::MessageType | getButtonType (YGP::StatusObject::type tp) |
XGP::MessageDlg::MessageDlg | ( | const YGP::StatusObject & | obj | ) |
Constructor.
obj | StatusObject to display |
XGP::MessageDlg::~MessageDlg | ( | ) | [virtual] |
Destructor.
MessageDlg * XGP::MessageDlg::create | ( | const YGP::StatusObject & | obj | ) | [static] |
Creates a (modeless) dialog and registers a handler to free it after deleting.
obj,: | StatusObject object to display in the dialog |
void XGP::MessageDlg::free | ( | int | ) | [protected] |
Frees the dialog.
Gtk::MessageType XGP::MessageDlg::getButtonType | ( | YGP::StatusObject::type | tp | ) | [static, protected] |
Converts the type of the StatusObject to the type of the messagebox.
tp,: | Type of the StatusObject to display |
void XGP::MessageDlg::showDetails | ( | bool | show = true |
) |
Shows or hides the details box and adapts the show button accordingly.
show,: | Flag, if details should be shown |
void XGP::MessageDlg::update | ( | const YGP::StatusObject & | obj | ) |
Frees the dialog.