A Gtk+ using gcu::CmdContext implementation.
More...
#include <gcugtk/cmd-context-gtk.h>
A Gtk+ using gcu::CmdContext implementation.
This class uses GtkMessageBox dialogs to interact with the user.
Definition at line 38 of file cmd-context-gtk.h.
gcugtk::CmdContextGtk::CmdContextGtk |
( |
Application * |
App | ) |
|
- Parameters
-
App | the application owning the command context. |
The constructor.
virtual gcugtk::CmdContextGtk::~CmdContextGtk |
( |
| ) |
|
|
virtual |
Response gcugtk::CmdContextGtk::GetResponse |
( |
char const * |
message, |
|
|
int |
responses |
|
) |
| |
|
virtual |
- Parameters
-
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.
- Returns
- the response chosen by the user.
Implements gcu::CmdContext.
void gcugtk::CmdContextGtk::Message |
( |
char const * |
message, |
|
|
Severity |
severity, |
|
|
bool |
modal |
|
) |
| |
|
virtual |
- Parameters
-
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.
The documentation for this class was generated from the following file: