26#include <unordered_map>
33KIDIALOG::KIDIALOG( wxWindow* aParent,
const wxString& aMessage,
const wxString& aCaption,
long aStyle ) :
34 KIDIALOG_BASE( aParent, aMessage, aCaption, aStyle | wxCENTRE | wxSTAY_ON_TOP ),
57 ShowCheckBox(
_(
"Do not show again" ),
false );
59 m_hash = std::hash<wxString>{}( aUniqueId ) + line;
81 int ret = KIDIALOG_BASE::Show( aShow );
101 int ret = KIDIALOG_BASE::ShowModal();
115 if( !aCaption.IsEmpty() )
121 case KD_INFO:
return _(
"Message" );
127 return wxEmptyString;
133 long style = wxOK | wxCENTRE | wxSTAY_ON_TOP;
138 case KD_INFO: style |= wxICON_INFORMATION;
break;
140 case KD_WARNING: style |= wxICON_WARNING;
break;
141 case KD_ERROR: style |= wxICON_ERROR;
break;
bool DoNotShowAgain() const
Checks the 'do not show again' setting for the dialog.
static long getStyle(KD_TYPE aType)
KIDIALOG(wxWindow *aParent, const wxString &aMessage, const wxString &aCaption, long aStyle=wxOK)
void DoNotShowCheckbox(wxString file, int line)
Shows the 'do not show again' checkbox.
static wxString getCaption(KD_TYPE aType, const wxString &aCaption)
static void ClearDoNotShowAgainDialogs()
Dialog type. Selects appropriate icon and default dialog title.
bool Show(bool aShow=true) override
static std::unordered_map< unsigned long, int > g_doNotShowAgainDlgs