24#include <wx/richmsgdlg.h>
27#if defined( _WIN32 ) && wxCHECK_VERSION( 3, 3, 0 )
28#define KIDIALOG_BASE wxGenericRichMessageDialog
30#define KIDIALOG_BASE wxRichMessageDialog
45 KIDIALOG( wxWindow* aParent,
const wxString& aMessage,
const wxString& aCaption,
long aStyle = wxOK );
46 KIDIALOG( wxWindow* aParent,
const wxString& aMessage, KD_TYPE aType,
const wxString& aCaption =
"" );
51 return KIDIALOG_BASE::SetOKCancelLabels( ok,
cancel );
55 void DoNotShowCheckbox( wxString file,
int line );
58 bool DoNotShowAgain()
const;
60 bool Show(
bool aShow =
true )
override;
61 int ShowModal()
override;
65 static wxString getCaption( KD_TYPE aType,
const wxString& aCaption );
66 static long getStyle( KD_TYPE aType );
Helper class to create more flexible dialogs, including 'do not show again' checkbox handling.
KIDIALOG(wxWindow *aParent, const wxString &aMessage, const wxString &aCaption, long aStyle=wxOK)
bool SetOKCancelLabels(const ButtonLabel &ok, const ButtonLabel &cancel) override
static void ClearDoNotShowAgainDialogs()
Dialog type. Selects appropriate icon and default dialog title.