A modal message dialog with a cancel and confirmation button.
More...
#include <dialog_alert.h>
|
|
| AlertDialog (wxWindow *parent, const std::string &title, const std::string &action="") |
| |
| void | SetListener (IAlertConfirmation *listener) |
| | Listen for response.
|
| |
| void | SetTimer (int seconds) |
| | Activate timer.
|
| |
| void | SetMessage (const std::string &msg) |
| | Set alert message.
|
| |
| int | ShowModal () override |
| | Show dialog and return response.
|
| |
|
| BaseDialog (wxWindow *parent, const std::string &title, long style=wxDEFAULT_DIALOG_STYLE) |
| |
|
void | SetInitialSize () |
| | Initialize by display geometry.
|
| |
| void | AddHtmlContent (const std::stringstream &html) |
| | Display HTML content.
|
| |
|
| static int | GetConfirmation (wxWindow *parent, const std::string &title, const std::string &action, const std::string &msg) |
| | Helper that returns the dialog response.
|
| |
A modal message dialog with a cancel and confirmation button.
Can be used with a listener to handle the response. Alternatively the static GetConfirmation function can be used without listener.
Definition at line 47 of file dialog_alert.h.
◆ GetConfirmation()
| static int AlertDialog::GetConfirmation |
( |
wxWindow * | parent, |
|
|
const std::string & | title, |
|
|
const std::string & | action, |
|
|
const std::string & | msg ) |
|
static |
Helper that returns the dialog response.
- Returns
- YES/NO response.
◆ SetListener()
Listen for response.
- Parameters
-
| listener | Confirmation listener. |
◆ SetMessage()
| void AlertDialog::SetMessage |
( |
const std::string & | msg | ) |
|
Set alert message.
- Parameters
-
◆ SetTimer()
| void AlertDialog::SetTimer |
( |
int | seconds | ) |
|
Activate timer.
- Parameters
-
◆ ShowModal()
| int AlertDialog::ShowModal |
( |
| ) |
|
|
override |
Show dialog and return response.
- Returns
- OK/Cancel response.
The documentation for this class was generated from the following file: