36#include <wx/richmsgdlg.h>
46 enum KD_TYPE { KD_NONE, KD_INFO, KD_QUESTION, KD_WARNING, KD_ERROR };
48 KIDIALOG( wxWindow* aParent,
const wxString& aMessage,
const wxString& aCaption,
50 KIDIALOG( wxWindow* aParent,
const wxString& aMessage, KD_TYPE aType,
51 const wxString& aCaption =
"" );
55 m_cancelMeansCancel =
false;
56 return wxRichMessageDialog::SetOKCancelLabels( ok,
cancel );
60 void DoNotShowCheckbox( wxString file,
int line );
63 bool DoNotShowAgain()
const;
64 void ForceShowAgain();
66 bool Show(
bool aShow =
true )
override;
67 int ShowModal()
override;
71 static wxString getCaption( KD_TYPE aType,
const wxString& aCaption );
72 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
Shows the 'do not show again' checkbox.