The Gnome Chemistry Utils  0.14.0
Public Member Functions | List of all members
gcugtk::Message Class Reference

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
appthe Application owning the message box.
messagethe text displayed inside the message box.
typethe message box type.
buttonsthe buttons to display.
parentthe parent window.
modalwhether 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
appthe Application owning the message box.
messagethe text displayed inside the message box.
typethe message box type.
buttonsthe buttons to display.
parentthe parent window.
modalwhether the message should be a modal dialog.

Contructs a new message box.

virtual gcugtk::Message::~Message ( )
virtual

The destructor.

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: