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 | SetMessage (const std::string &msg) |
| Set alert message.
|
|
| BaseDialog (wxWindow *parent, const std::string &title, long style=wxDEFAULT_DIALOG_STYLE) |
|
void | SetInitialSize () |
| Initialize by display geometry.
|
|
int | ShowModal () override |
| Show dialog and return response.
|
|
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 46 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
-
The documentation for this class was generated from the following file: