The Gnome Chemistry Utils
0.13.6
|
#include <gcugtk/message.h>
Public Member Functions | |
Message (Application *app, std::string &message, GtkMessageType type, GtkButtonsType buttons, GtkWindow *parent=NULL, bool modal=false) | |
Message (Application *app, char const *message, GtkMessageType type, GtkButtonsType buttons, GtkWindow *parent=NULL, bool modal=false) | |
virtual | ~Message () |
int | Run () |
void | Show () |
Message box.
This class implements a wrapper around GtkMessageDialog.
gcugtk::Message::Message | ( | Application * | app, |
std::string & | message, | ||
GtkMessageType | type, | ||
GtkButtonsType | buttons, | ||
GtkWindow * | parent = NULL , |
||
bool | modal = false |
||
) |
app | the Application owning the message box. |
message | the text displayed inside the message box. |
type | the message box type. |
buttons | the buttons to display. |
parent | the parent window. |
modal | whether the message should be a modal dialog. |
Contructs a new message box.
gcugtk::Message::Message | ( | Application * | app, |
char const * | message, | ||
GtkMessageType | type, | ||
GtkButtonsType | buttons, | ||
GtkWindow * | parent = NULL , |
||
bool | modal = false |
||
) |
app | the Application owning the message box. |
message | the text displayed inside the message box. |
type | the message box type. |
buttons | the buttons to display. |
parent | the parent window. |
modal | whether the message should be a modal dialog. |
Contructs a new message box.
virtual gcugtk::Message::~Message | ( | ) | [virtual] |
The destructor.
int gcugtk::Message::Run | ( | ) |
Runs the modal message box.
void gcugtk::Message::Show | ( | ) |
Displays a non modal message box.