Applied patch to reorder includes. Not the most
important patch in the world, but still. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
cd86bf1e7e
commit
e1bf3ad3e8
@ -16,8 +16,8 @@
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#include "wx/palette.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/palette.h"
|
||||
#include "wx/icon.h"
|
||||
#include "wx/filefn.h"
|
||||
#include "wx/image.h"
|
||||
|
@ -15,8 +15,8 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/colour.h"
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/gtk/private.h"
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
|
@ -28,11 +28,8 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#endif //WX_PRECOMP
|
||||
|
||||
#include "wx/app.h"
|
||||
#include "wx/evtloop.h"
|
||||
#include "wx/app.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
|
@ -20,8 +20,8 @@
|
||||
|
||||
#ifndef __WXGPE__
|
||||
|
||||
#include "wx/fontutil.h"
|
||||
#include "wx/fontdlg.h"
|
||||
#include "wx/fontutil.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/debug.h"
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#include "wx/frame.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/control.h"
|
||||
#include "wx/app.h"
|
||||
|
@ -442,14 +442,34 @@ bool wxGnomePrintDC::DoBlit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord
|
||||
|
||||
void wxGnomePrintDC::DoDrawIcon( const wxIcon& icon, wxCoord x, wxCoord y )
|
||||
{
|
||||
DoDrawBitmap( icon, x, y, true );
|
||||
}
|
||||
|
||||
void wxGnomePrintDC::DoDrawBitmap( const wxBitmap& bitmap, wxCoord x, wxCoord y, bool useMask )
|
||||
{
|
||||
if (!bitmap.Ok()) return;
|
||||
|
||||
#if 0
|
||||
// TODO do something clever here
|
||||
if (bitmap.HasPixbuf())
|
||||
{
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
wxImage image = bitmap.ConvertToImage();
|
||||
|
||||
if (!image.Ok()) return;
|
||||
|
||||
gnome_print_moveto (m_gpc, XLOG2DEV(x), YLOG2DEV(y) );
|
||||
gnome_print_rgbimage( m_gpc, (guchar*) image.GetData(), image.GetWidth(), image.GetHeight(), image.GetWidth()*3 );
|
||||
}
|
||||
}
|
||||
|
||||
void wxGnomePrintDC::DoDrawText(const wxString& text, wxCoord x, wxCoord y )
|
||||
{
|
||||
return;
|
||||
|
||||
if (m_textForegroundColour.Ok())
|
||||
{
|
||||
unsigned char red = m_textForegroundColour.Red();
|
||||
|
@ -15,11 +15,11 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/menu.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/menu.h"
|
||||
|
||||
#if wxUSE_ACCEL
|
||||
#include "wx/accel.h"
|
||||
|
@ -22,10 +22,10 @@
|
||||
|
||||
#if wxUSE_MSGDLG && defined(__WXGTK20__) && !defined(__WXGPE__)
|
||||
|
||||
#include "wx/msgdlg.h"
|
||||
#include "wx/gtk/private.h"
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "wx/msgdlg.h"
|
||||
#include "wx/intl.h"
|
||||
|
||||
IMPLEMENT_CLASS(wxMessageDialog, wxDialog)
|
||||
|
@ -23,10 +23,8 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/log.h"
|
||||
|
||||
#include "wx/region.h"
|
||||
|
||||
#include "wx/log.h"
|
||||
#include "wx/gtk/private.h"
|
||||
|
||||
#ifndef __WXGTK20__
|
||||
|
@ -24,15 +24,12 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/renderer.h"
|
||||
#include <gtk/gtk.h>
|
||||
#include "wx/gtk/win_gtk.h"
|
||||
|
||||
#include "wx/window.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/renderer.h"
|
||||
|
||||
#ifdef __WXGTK20__
|
||||
#include "wx/settings.h"
|
||||
|
@ -28,10 +28,9 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/scrolwin.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dcclient.h"
|
||||
|
||||
#include "wx/scrolwin.h"
|
||||
#include "wx/panel.h"
|
||||
#include "wx/sizer.h"
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/gtk/taskbarpriv.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/frame.h"
|
||||
|
||||
@ -25,7 +26,6 @@
|
||||
#include <gtk/gtkversion.h>
|
||||
#if GTK_CHECK_VERSION(2, 1, 0)
|
||||
|
||||
#include "wx/gtk/taskbarpriv.h"
|
||||
#include "eggtrayicon.h"
|
||||
|
||||
wxTaskBarIconAreaBase::wxTaskBarIconAreaBase()
|
||||
|
@ -16,9 +16,9 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/thread.h"
|
||||
#include "wx/wx.h"
|
||||
#include "wx/module.h"
|
||||
#include "wx/thread.h"
|
||||
#include "wx/log.h"
|
||||
|
||||
wxMutex::wxMutex()
|
||||
|
@ -15,13 +15,13 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/thread.h"
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <signal.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/prctl.h>
|
||||
#include "wx/thread.h"
|
||||
#include "wx/module.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/log.h"
|
||||
|
@ -18,8 +18,8 @@
|
||||
|
||||
#if wxUSE_TOOLTIPS
|
||||
|
||||
#include "wx/window.h"
|
||||
#include "wx/tooltip.h"
|
||||
#include "wx/window.h"
|
||||
|
||||
#include "wx/gtk/private.h"
|
||||
|
||||
|
@ -28,6 +28,7 @@
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#include "wx/toplevel.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/control.h"
|
||||
|
@ -16,8 +16,8 @@
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#include "wx/palette.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/palette.h"
|
||||
#include "wx/icon.h"
|
||||
#include "wx/filefn.h"
|
||||
#include "wx/image.h"
|
||||
|
@ -15,8 +15,8 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/colour.h"
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/gtk/private.h"
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
|
@ -28,11 +28,8 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#endif //WX_PRECOMP
|
||||
|
||||
#include "wx/app.h"
|
||||
#include "wx/evtloop.h"
|
||||
#include "wx/app.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
|
@ -20,8 +20,8 @@
|
||||
|
||||
#ifndef __WXGPE__
|
||||
|
||||
#include "wx/fontutil.h"
|
||||
#include "wx/fontdlg.h"
|
||||
#include "wx/fontutil.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/debug.h"
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#include "wx/frame.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/control.h"
|
||||
#include "wx/app.h"
|
||||
|
@ -442,14 +442,34 @@ bool wxGnomePrintDC::DoBlit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord
|
||||
|
||||
void wxGnomePrintDC::DoDrawIcon( const wxIcon& icon, wxCoord x, wxCoord y )
|
||||
{
|
||||
DoDrawBitmap( icon, x, y, true );
|
||||
}
|
||||
|
||||
void wxGnomePrintDC::DoDrawBitmap( const wxBitmap& bitmap, wxCoord x, wxCoord y, bool useMask )
|
||||
{
|
||||
if (!bitmap.Ok()) return;
|
||||
|
||||
#if 0
|
||||
// TODO do something clever here
|
||||
if (bitmap.HasPixbuf())
|
||||
{
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
wxImage image = bitmap.ConvertToImage();
|
||||
|
||||
if (!image.Ok()) return;
|
||||
|
||||
gnome_print_moveto (m_gpc, XLOG2DEV(x), YLOG2DEV(y) );
|
||||
gnome_print_rgbimage( m_gpc, (guchar*) image.GetData(), image.GetWidth(), image.GetHeight(), image.GetWidth()*3 );
|
||||
}
|
||||
}
|
||||
|
||||
void wxGnomePrintDC::DoDrawText(const wxString& text, wxCoord x, wxCoord y )
|
||||
{
|
||||
return;
|
||||
|
||||
if (m_textForegroundColour.Ok())
|
||||
{
|
||||
unsigned char red = m_textForegroundColour.Red();
|
||||
|
@ -15,11 +15,11 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/menu.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/menu.h"
|
||||
|
||||
#if wxUSE_ACCEL
|
||||
#include "wx/accel.h"
|
||||
|
@ -22,10 +22,10 @@
|
||||
|
||||
#if wxUSE_MSGDLG && defined(__WXGTK20__) && !defined(__WXGPE__)
|
||||
|
||||
#include "wx/msgdlg.h"
|
||||
#include "wx/gtk/private.h"
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "wx/msgdlg.h"
|
||||
#include "wx/intl.h"
|
||||
|
||||
IMPLEMENT_CLASS(wxMessageDialog, wxDialog)
|
||||
|
@ -23,10 +23,8 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/log.h"
|
||||
|
||||
#include "wx/region.h"
|
||||
|
||||
#include "wx/log.h"
|
||||
#include "wx/gtk/private.h"
|
||||
|
||||
#ifndef __WXGTK20__
|
||||
|
@ -24,15 +24,12 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/renderer.h"
|
||||
#include <gtk/gtk.h>
|
||||
#include "wx/gtk/win_gtk.h"
|
||||
|
||||
#include "wx/window.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/renderer.h"
|
||||
|
||||
#ifdef __WXGTK20__
|
||||
#include "wx/settings.h"
|
||||
|
@ -28,10 +28,9 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/scrolwin.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dcclient.h"
|
||||
|
||||
#include "wx/scrolwin.h"
|
||||
#include "wx/panel.h"
|
||||
#include "wx/sizer.h"
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/gtk/taskbarpriv.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/frame.h"
|
||||
|
||||
@ -25,7 +26,6 @@
|
||||
#include <gtk/gtkversion.h>
|
||||
#if GTK_CHECK_VERSION(2, 1, 0)
|
||||
|
||||
#include "wx/gtk/taskbarpriv.h"
|
||||
#include "eggtrayicon.h"
|
||||
|
||||
wxTaskBarIconAreaBase::wxTaskBarIconAreaBase()
|
||||
|
@ -16,9 +16,9 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/thread.h"
|
||||
#include "wx/wx.h"
|
||||
#include "wx/module.h"
|
||||
#include "wx/thread.h"
|
||||
#include "wx/log.h"
|
||||
|
||||
wxMutex::wxMutex()
|
||||
|
@ -15,13 +15,13 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/thread.h"
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <signal.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/prctl.h>
|
||||
#include "wx/thread.h"
|
||||
#include "wx/module.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/log.h"
|
||||
|
@ -18,8 +18,8 @@
|
||||
|
||||
#if wxUSE_TOOLTIPS
|
||||
|
||||
#include "wx/window.h"
|
||||
#include "wx/tooltip.h"
|
||||
#include "wx/window.h"
|
||||
|
||||
#include "wx/gtk/private.h"
|
||||
|
||||
|
@ -28,6 +28,7 @@
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#include "wx/toplevel.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/control.h"
|
||||
|
Loading…
Reference in New Issue
Block a user