26#include "dialog_base.h"
27#include "dialog_footer.h"
63 const std::string& action);
108 const std::string& action,
const std::string& msg);
111 std::string m_action;
114 void OnClick(wxCommandEvent& event);
115 void OnTimer(wxTimerEvent& evt);
A modal message dialog with confirmation button and cancel button.
void SetListener(IAlertConfirmation *listener)
Listen for response.
int ShowModal() override
Show dialog and return response.
void SetMessage(const std::string &msg)
Set alert message.
AlertDialog(wxWindow *parent, const std::string &title)
Alert dialog with close button.
static int GetConfirmation(wxWindow *parent, const std::string &title, const std::string &action, const std::string &msg)
Helper that returns the dialog response.
void SetDefaultButton(int id)
Set default button (for enter).
void SetTimer(int seconds)
Activate timer.
void SetCancelLabel(const std::string &label)
Overwrite cancel button label.
AlertDialog(wxWindow *parent, const std::string &title, const std::string &action)
Alert dialog with labelled confirmation button and cancel.
Dialog layout with content sizer.
Alert confirmation listener interface.
virtual void OnConfirm(const bool result)=0
Handle confirmation response.