26#include <unordered_map>
35 : wxRichMessageDialog( aParent, aMessage, aCaption, aStyle | wxCENTRE | wxSTAY_ON_TOP ),
37 m_cancelMeansCancel( true )
43 const wxString& aCaption )
44 : wxRichMessageDialog( aParent, aMessage, getCaption( aType, aCaption ), getStyle( aType ) ),
46 m_cancelMeansCancel( true )
53 ShowCheckBox(
_(
"Do not show again" ),
false );
55 m_hash = std::hash<wxString>{}( aUniqueId ) + line;
83 int ret = wxRichMessageDialog::Show( aShow );
103 int ret = wxRichMessageDialog::ShowModal();
117 if( !aCaption.IsEmpty() )
123 case KD_INFO:
return _(
"Message" );
129 return wxEmptyString;
135 long style = wxOK | wxCENTRE | wxSTAY_ON_TOP;
140 case KD_INFO: style |= wxICON_INFORMATION;
break;
142 case KD_WARNING: style |= wxICON_WARNING;
break;
143 case KD_ERROR: style |= wxICON_ERROR;
break;
KD_TYPE
< Dialog type. Selects appropriate icon and default dialog title
bool DoNotShowAgain() const
static long getStyle(KD_TYPE aType)
KIDIALOG(wxWindow *aParent, const wxString &aMessage, const wxString &aCaption, long aStyle=wxOK)
void DoNotShowCheckbox(wxString file, int line)
Checks the 'do not show again' setting for the dialog.
static wxString getCaption(KD_TYPE aType, const wxString &aCaption)
bool Show(bool aShow=true) override
static std::unordered_map< unsigned long, int > doNotShowAgainDlgs
This file is part of the common library.