#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"
// 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>
#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>
#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"
#include "wx/defs.h"
+#include "wx/frame.h"
#include "wx/dialog.h"
#include "wx/control.h"
#include "wx/app.h"
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();
// 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"
#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)
// 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__
#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"
#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"
// 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"
#include <gtk/gtkversion.h>
#if GTK_CHECK_VERSION(2, 1, 0)
-#include "wx/gtk/taskbarpriv.h"
#include "eggtrayicon.h"
wxTaskBarIconAreaBase::wxTaskBarIconAreaBase()
// 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()
// 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"
#if wxUSE_TOOLTIPS
-#include "wx/window.h"
#include "wx/tooltip.h"
+#include "wx/window.h"
#include "wx/gtk/private.h"
#include "wx/defs.h"
+#include "wx/toplevel.h"
#include "wx/log.h"
#include "wx/dialog.h"
#include "wx/control.h"
#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"
// 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>
#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>
#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"
#include "wx/defs.h"
+#include "wx/frame.h"
#include "wx/dialog.h"
#include "wx/control.h"
#include "wx/app.h"
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();
// 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"
#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)
// 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__
#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"
#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"
// 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"
#include <gtk/gtkversion.h>
#if GTK_CHECK_VERSION(2, 1, 0)
-#include "wx/gtk/taskbarpriv.h"
#include "eggtrayicon.h"
wxTaskBarIconAreaBase::wxTaskBarIconAreaBase()
// 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()
// 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"
#if wxUSE_TOOLTIPS
-#include "wx/window.h"
#include "wx/tooltip.h"
+#include "wx/window.h"
#include "wx/gtk/private.h"
#include "wx/defs.h"
+#include "wx/toplevel.h"
#include "wx/log.h"
#include "wx/dialog.h"
#include "wx/control.h"