36#include <wx/richmsgdlg.h>
39#if defined( _WIN32 ) && wxCHECK_VERSION( 3, 3, 0 )
40#define KIDIALOG_BASE wxGenericRichMessageDialog
42#define KIDIALOG_BASE wxRichMessageDialog
53 enum KD_TYPE { KD_NONE, KD_INFO, KD_QUESTION, KD_WARNING, KD_ERROR };
55 KIDIALOG( wxWindow* aParent,
const wxString& aMessage,
const wxString& aCaption,
57 KIDIALOG( wxWindow* aParent,
const wxString& aMessage, KD_TYPE aType,
58 const wxString& aCaption =
"" );
62 m_cancelMeansCancel =
false;
63 return KIDIALOG_BASE::SetOKCancelLabels( ok,
cancel );
67 void DoNotShowCheckbox( wxString file,
int line );
70 bool DoNotShowAgain()
const;
71 void ForceShowAgain();
73 bool Show(
bool aShow =
true )
override;
74 int ShowModal()
override;
78 static wxString getCaption( KD_TYPE aType,
const wxString& aCaption );
79 static long getStyle( KD_TYPE aType );
Helper class to create more flexible dialogs, including 'do not show again' checkbox handling.
KD_TYPE
< Dialog type. Selects appropriate icon and default dialog title
bool SetOKCancelLabels(const ButtonLabel &ok, const ButtonLabel &cancel) override