Message box.
More...
#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 () |
Detailed Description
Message box.
This class implements a wrapper around GtkMessageDialog.
Definition at line 41 of file message.h.
Constructor & Destructor Documentation
gcugtk::Message::Message |
( |
Application * |
app, |
|
|
std::string & |
message, |
|
|
GtkMessageType |
type, |
|
|
GtkButtonsType |
buttons, |
|
|
GtkWindow * |
parent = NULL , |
|
|
bool |
modal = false |
|
) |
| |
- Parameters
-
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 |
|
) |
| |
- Parameters
-
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 |
Member Function Documentation
int gcugtk::Message::Run |
( |
| ) |
|
Runs the modal message box.
- Returns
- the response from the dialog.
void gcugtk::Message::Show |
( |
| ) |
|
Displays a non modal message box.
The documentation for this class was generated from the following file: