XGP::MessageDlg Class Reference

Message dialog, designed to display a StatusObject object. More...

List of all members.

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 MessageDlgcreate (const YGP::StatusObject &obj)

Protected Member Functions

void free (int)

Static Protected Member Functions

static Gtk::MessageType getButtonType (YGP::StatusObject::type tp)


Detailed Description

Message dialog, designed to display a StatusObject object.

Constructor & Destructor Documentation

XGP::MessageDlg::MessageDlg ( const YGP::StatusObject &  obj  ) 

Constructor.

Parameters:
obj StatusObject to display

XGP::MessageDlg::~MessageDlg (  )  [virtual]

Destructor.


Member Function Documentation

MessageDlg * XGP::MessageDlg::create ( const YGP::StatusObject &  obj  )  [static]

Creates a (modeless) dialog and registers a handler to free it after deleting.

Parameters:
obj,: StatusObject object to display in the dialog

void XGP::MessageDlg::free ( int   )  [protected]

Frees the dialog.

Remarks:
Call only if the dialog was created with new

Gtk::MessageType XGP::MessageDlg::getButtonType ( YGP::StatusObject::type  tp  )  [static, protected]

Converts the type of the StatusObject to the type of the messagebox.

Parameters:
tp,: Type of the StatusObject to display
Returns:
Gtk::MessageType: Type of message to display

void XGP::MessageDlg::showDetails ( bool  show = true  ) 

Shows or hides the details box and adapts the show button accordingly.

Parameters:
show,: Flag, if details should be shown
Remarks:
If the object does not have any details, the show-details button is disabled

void XGP::MessageDlg::update ( const YGP::StatusObject &  obj  ) 

Frees the dialog.

Remarks:
Call only if the dialog was created with new


The documentation for this class was generated from the following files:

XGP Version 0.9.31 - Generated on Wed Nov 18 11:25:29 2009 by doxygen 1.5.8