git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47325
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
# endif
#endif /* !wxUSE_IMAGLIST */
# endif
#endif /* !wxUSE_IMAGLIST */
-#if !wxUSE_MSGDLG
-# ifdef wxABORT_ON_CONFIG_ERROR
- /* FIXME: should compile without it, of course, but doesn't */
-# error "wxMessageBox is always needed"
-# else
-# undef wxUSE_MSGDLG
-# define wxUSE_MSGDLG 1
-# endif
-#endif
-
#if wxUSE_RADIOBOX
# if !wxUSE_RADIOBTN
# ifdef wxABORT_ON_CONFIG_ERROR
#if wxUSE_RADIOBOX
# if !wxUSE_RADIOBTN
# ifdef wxABORT_ON_CONFIG_ERROR
// implementation which shows output in a message box
// ----------------------------------------------------------------------------
// implementation which shows output in a message box
// ----------------------------------------------------------------------------
+#if wxUSE_GUI && wxUSE_MSGDLG
class WXDLLIMPEXP_CORE wxMessageOutputMessageBox : public wxMessageOutput
{
class WXDLLIMPEXP_CORE wxMessageOutputMessageBox : public wxMessageOutput
{
virtual void Output(const wxString& str);
};
virtual void Output(const wxString& str);
};
+#endif // wxUSE_GUI && wxUSE_MSGDLG
// ----------------------------------------------------------------------------
// implementation using the native way of outputting debug messages
// ----------------------------------------------------------------------------
// implementation using the native way of outputting debug messages
// wxMessageOutputMessageBox
// ----------------------------------------------------------------------------
// wxMessageOutputMessageBox
// ----------------------------------------------------------------------------
+#if wxUSE_GUI && wxUSE_MSGDLG
void wxMessageOutputMessageBox::Output(const wxString& str)
{
void wxMessageOutputMessageBox::Output(const wxString& str)
{
wxMessageBox(msg, _T("wxWidgets information"),
wxICON_INFORMATION | wxOK,
(wxWindow *)this);
wxMessageBox(msg, _T("wxWidgets information"),
wxICON_INFORMATION | wxOK,
(wxWindow *)this);