compilation fixes for wxUSE_MSGDLG==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -1742,16 +1742,6 @@
 | 
			
		||||
#   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
 | 
			
		||||
 
 | 
			
		||||
@@ -132,7 +132,7 @@ protected:
 | 
			
		||||
// implementation which shows output in a message box
 | 
			
		||||
// ----------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
#if wxUSE_GUI
 | 
			
		||||
#if wxUSE_GUI && wxUSE_MSGDLG
 | 
			
		||||
 | 
			
		||||
class WXDLLIMPEXP_CORE wxMessageOutputMessageBox : public wxMessageOutput
 | 
			
		||||
{
 | 
			
		||||
@@ -143,7 +143,7 @@ protected:
 | 
			
		||||
    virtual void Output(const wxString& str);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif // wxUSE_GUI
 | 
			
		||||
#endif // wxUSE_GUI && wxUSE_MSGDLG
 | 
			
		||||
 | 
			
		||||
// ----------------------------------------------------------------------------
 | 
			
		||||
// implementation using the native way of outputting debug messages
 | 
			
		||||
 
 | 
			
		||||
@@ -209,7 +209,7 @@ void wxMessageOutputLog::Output(const wxString& str)
 | 
			
		||||
// wxMessageOutputMessageBox
 | 
			
		||||
// ----------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
#if wxUSE_GUI
 | 
			
		||||
#if wxUSE_GUI && wxUSE_MSGDLG
 | 
			
		||||
 | 
			
		||||
void wxMessageOutputMessageBox::Output(const wxString& str)
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -2348,9 +2348,9 @@ void wxWindowBase::OnMiddleClick( wxMouseEvent& event )
 | 
			
		||||
        wxMessageBox(msg, _T("wxWidgets information"),
 | 
			
		||||
                     wxICON_INFORMATION | wxOK,
 | 
			
		||||
                     (wxWindow *)this);
 | 
			
		||||
#endif // wxUSE_MSGDLG
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
#endif // wxUSE_MSGDLG
 | 
			
		||||
    {
 | 
			
		||||
        event.Skip();
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user