The Gnome Chemistry Utils
0.13.6
|
A Gtk+ using gcu::CmdContext implementation. More...
Public Member Functions | |
CmdContextGtk (Application *App) | |
virtual | ~CmdContextGtk () |
Response | GetResponse (char const *message, int responses) |
void | Message (char const *message, Severity severity, bool modal) |
A Gtk+ using gcu::CmdContext implementation.
This class uses GtkMessageBox dialogs to interact with the user.
Definition at line 36 of file cmd-context-gtk.h.
App | the application owning the command context. |
The constructor.
virtual gcugtk::CmdContextGtk::~CmdContextGtk | ( | ) | [virtual] |
The destructor.
Response gcugtk::CmdContextGtk::GetResponse | ( | char const * | message, |
int | responses | ||
) | [virtual] |
message | the message string. |
responses | the responses that are meaningful such as 'ResponseYes | ResponseNo'. |
Ask a question to the user about what should be done. A message box is displayed showing the message and with a button for each bit in the response bits field.
Implements gcu::CmdContext.
void gcugtk::CmdContextGtk::Message | ( | char const * | message, |
Severity | severity, | ||
bool | modal | ||
) | [virtual] |
message | the message string. |
severity | the Severity of the situation. |
modal | whether the message should block the program execution or not. |
Inform the user of an abnormal situation using a message box with an icon corresponding to severity and a 'Close' button. This method is pure virtual and must be implemented in derived classes.
Implements gcu::CmdContext.