git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39021
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
57 files changed:
#ifndef WX_PRECOMP
#include "wx/object.h"
#ifndef WX_PRECOMP
#include "wx/object.h"
#include "wx/dc.h"
#include "wx/cursor.h"
#include "wx/dc.h"
#include "wx/cursor.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/gtk/dcscreen.cpp
// Purpose:
// Author: Robert Roebling
// Id: $Id$
// Purpose:
// Author: Robert Roebling
// Id: $Id$
#include "wx/wxprec.h"
#include "wx/dcscreen.h"
#include "wx/wxprec.h"
#include "wx/dcscreen.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/window.h"
+#endif
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
wxScreenDC::wxScreenDC()
{
wxScreenDC::wxScreenDC()
{
m_cmap = gdk_colormap_get_system();
m_window = gdk_get_default_root_window();
m_cmap = gdk_colormap_get_system();
m_window = gdk_get_default_root_window();
m_layout = pango_layout_new( m_context );
// m_fontdesc = pango_font_description_copy( widget->style->font_desc );
m_layout = pango_layout_new( m_context );
// m_fontdesc = pango_font_description_copy( widget->style->font_desc );
#include "wx/log.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/gdicmn.h"
#include "wx/gtk/private.h"
#include "wx/gdicmn.h"
#include "wx/gtk/private.h"
#endif
#include "wx/renderer.h"
#endif
#include "wx/renderer.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/window.h"
+#endif
+
#include <gtk/gtk.h>
#include "wx/gtk/win_gtk.h"
#include <gtk/gtk.h>
#include "wx/gtk/win_gtk.h"
#include "wx/dc.h"
#include "wx/dcclient.h"
#include "wx/settings.h"
#include "wx/dc.h"
#include "wx/dcclient.h"
#include "wx/settings.h"
DrawDropArrow(win,dc,rect);
}
DrawDropArrow(win,dc,rect);
}
wxRendererGTK::DrawCheckBox(wxWindow *win,
wxDC& dc,
const wxRect& rect,
wxRendererGTK::DrawCheckBox(wxWindow *win,
wxDC& dc,
const wxRect& rect,
NULL,
button,
"cellcheck",
NULL,
button,
"cellcheck",
- dc.LogicalToDeviceX(rect.x)+2,
- dc.LogicalToDeviceY(rect.y)+3,
+ dc.LogicalToDeviceX(rect.x)+2,
+ dc.LogicalToDeviceY(rect.y)+3,
wxRendererGTK::DrawItemSelectionRect(wxWindow *win,
wxRendererGTK::DrawItemSelectionRect(wxWindow *win,
- wxDC& dc,
- const wxRect& rect,
- int flags )
+ wxDC& dc,
+ const wxRect& rect,
+ int flags )
{
// for reason why we do this, see DrawDropArrow
wxWindowDC& wdc = (wxWindowDC&)dc;
{
// for reason why we do this, see DrawDropArrow
wxWindowDC& wdc = (wxWindowDC&)dc;
GTK_PIZZA(win->m_wxwindow)->bin_window,
state,
GTK_SHADOW_NONE,
GTK_PIZZA(win->m_wxwindow)->bin_window,
state,
GTK_SHADOW_NONE,
win->m_wxwindow,
"treeview",
dc.LogicalToDeviceX(rect.x),
win->m_wxwindow,
"treeview",
dc.LogicalToDeviceX(rect.x),
#if wxUSE_TOOLTIPS
#include "wx/tooltip.h"
#if wxUSE_TOOLTIPS
#include "wx/tooltip.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/window.h"
+#endif
#include "wx/gtk/private.h"
#include "wx/gtk/private.h"
m_window->ApplyToolTip( ss_tooltips, (wxChar*) NULL );
else
m_window->ApplyToolTip( ss_tooltips, m_text );
m_window->ApplyToolTip( ss_tooltips, (wxChar*) NULL );
else
m_window->ApplyToolTip( ss_tooltips, m_text );
gtk_tooltips_set_delay( ss_tooltips, (int)msecs );
}
gtk_tooltips_set_delay( ss_tooltips, (int)msecs );
}
+#endif // wxUSE_TOOLTIPS
#ifndef WX_PRECOMP
#include "wx/object.h"
#ifndef WX_PRECOMP
#include "wx/object.h"
#include "wx/dc.h"
#include "wx/cursor.h"
#include "wx/dc.h"
#include "wx/cursor.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/gtk1/dcscreen.cpp
// Purpose:
// Author: Robert Roebling
// Id: $Id$
// Purpose:
// Author: Robert Roebling
// Id: $Id$
#include "wx/wxprec.h"
#include "wx/dcscreen.h"
#include "wx/wxprec.h"
#include "wx/dcscreen.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/window.h"
+#endif
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
wxScreenDC::wxScreenDC()
{
wxScreenDC::wxScreenDC()
{
m_cmap = gdk_colormap_get_system();
m_window = GDK_ROOT_PARENT();
m_cmap = gdk_colormap_get_system();
m_window = GDK_ROOT_PARENT();
#include "wx/log.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/gdicmn.h"
#include "wx/gtk1/private.h"
#include "wx/gdicmn.h"
#include "wx/gtk1/private.h"
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
-// Name: gtk/renderer.cpp
+// Name: src/gtk1/renderer.cpp
// Purpose: implementation of wxRendererNative for wxGTK
// Author: Vadim Zeitlin
// Modified by:
// Purpose: implementation of wxRendererNative for wxGTK
// Author: Vadim Zeitlin
// Modified by:
#endif
#include "wx/renderer.h"
#endif
#include "wx/renderer.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/window.h"
+#endif
+
#include <gtk/gtk.h>
#include "wx/gtk1/win_gtk.h"
#include <gtk/gtk.h>
#include "wx/gtk1/win_gtk.h"
#include "wx/dc.h"
#include "wx/dcclient.h"
#include "wx/dc.h"
#include "wx/dcclient.h"
#if wxUSE_TOOLTIPS
#include "wx/tooltip.h"
#if wxUSE_TOOLTIPS
#include "wx/tooltip.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/window.h"
+#endif
#include "wx/gtk1/private.h"
#include "wx/gtk1/private.h"
m_window->ApplyToolTip( ss_tooltips, (wxChar*) NULL );
else
m_window->ApplyToolTip( ss_tooltips, m_text );
m_window->ApplyToolTip( ss_tooltips, (wxChar*) NULL );
else
m_window->ApplyToolTip( ss_tooltips, m_text );
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/frame.h"
#include "wx/button.h"
#include "wx/gdicmn.h"
#include "wx/frame.h"
#include "wx/button.h"
#include "wx/gdicmn.h"
+#ifndef WX_PRECOMP
+ #include "wx/window.h"
+#endif
+
IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton, wxButton)
#include "wx/mac/uma.h"
#include "wx/bitmap.h"
bool wxBitmapButton::Create( wxWindow *parent,
IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton, wxButton)
#include "wx/mac/uma.h"
#include "wx/bitmap.h"
bool wxBitmapButton::Create( wxWindow *parent,
- wxWindowID id, const wxBitmap& bitmap,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxValidator& validator,
- const wxString& name )
+ wxWindowID id, const wxBitmap& bitmap,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style,
+ const wxValidator& validator,
+ const wxString& name )
{
m_macIsUserPane = false;
{
m_macIsUserPane = false;
if ( bitmap.Ok() )
{
wxSize newSize = DoGetBestSize();
if ( bitmap.Ok() )
{
wxSize newSize = DoGetBestSize();
+ if ( width == wxDefaultCoord )
+ if ( height == wxDefaultCoord )
#ifndef WX_PRECOMP
#include "wx/log.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#endif
#include "wx/dcmemory.h"
#include "wx/region.h"
#endif
#include "wx/dcmemory.h"
#include "wx/region.h"
#include "wx/toplevel.h"
#include "wx/settings.h"
#include "wx/math.h"
#include "wx/toplevel.h"
#include "wx/settings.h"
#include "wx/math.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/toplevel.h"
#include "wx/gdicmn.h"
#include "wx/mac/private.h"
#include "wx/toplevel.h"
#include "wx/gdicmn.h"
#include "wx/mac/private.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/utils.h"
#endif
#include "wx/menuitem.h"
#endif
#include "wx/menuitem.h"
#include "wx/log.h"
#include "wx/frame.h"
#include "wx/log.h"
#include "wx/frame.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#endif // WX_PRECOMP
#include "wx/dc.h"
#endif // WX_PRECOMP
#include "wx/dc.h"
#include "wx/timer.h"
#include "wx/geometry.h"
#include "wx/mac/uma.h"
#include "wx/timer.h"
#include "wx/geometry.h"
#include "wx/mac/uma.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/frame.h"
#include "wx/button.h"
#include "wx/gdicmn.h"
#include "wx/frame.h"
#include "wx/button.h"
#include "wx/gdicmn.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/mac/classic/bmpbuttn.cpp
// Purpose: wxBitmapButton
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
// Purpose: wxBitmapButton
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+#include "wx/wxprec.h"
+
+#if wxUSE_BMPBUTTON
+
+#ifndef WX_PRECOMP
+ #include "wx/window.h"
+#endif
+
IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton, wxButton)
#include "wx/mac/uma.h"
IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton, wxButton)
#include "wx/mac/uma.h"
return false;
m_bmpNormal = bitmap;
return false;
m_bmpNormal = bitmap;
if (style & wxBU_AUTODRAW)
{
m_marginX = wxDEFAULT_BUTTON_MARGIN;
if (style & wxBU_AUTODRAW)
{
m_marginX = wxDEFAULT_BUTTON_MARGIN;
Str255 title ;
m_bmpNormal = bitmap;
wxBitmapRefData * bmap = NULL ;
Str255 title ;
m_bmpNormal = bitmap;
wxBitmapRefData * bmap = NULL ;
if ( m_bmpNormal.Ok() )
bmap = (wxBitmapRefData*) ( m_bmpNormal.GetRefData()) ;
if ( m_bmpNormal.Ok() )
bmap = (wxBitmapRefData*) ( m_bmpNormal.GetRefData()) ;
MacPreControlCreate( parent , id , wxEmptyString , pos , wxSize( width , height ) ,style, validator , name , &bounds , title ) ;
MacPreControlCreate( parent , id , wxEmptyString , pos , wxSize( width , height ) ,style, validator , name , &bounds , title ) ;
- m_macControl = (WXWidget) ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 ,
- kControlBehaviorOffsetContents +
- ( bmap && bmap->m_bitmapType == kMacBitmapTypeIcon ?
- kControlContentCIconHandle : kControlContentPictHandle ) , 0,
+ m_macControl = (WXWidget) ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 ,
+ kControlBehaviorOffsetContents +
+ ( bmap && bmap->m_bitmapType == kMacBitmapTypeIcon ?
+ kControlContentCIconHandle : kControlContentPictHandle ) , 0,
(( style & wxBU_AUTODRAW ) ? kControlBevelButtonSmallBevelProc : kControlBevelButtonNormalBevelProc ), (long) this ) ;
wxASSERT_MSG( (ControlHandle) m_macControl != NULL , wxT("No valid mac control") ) ;
(( style & wxBU_AUTODRAW ) ? kControlBevelButtonSmallBevelProc : kControlBevelButtonNormalBevelProc ), (long) this ) ;
wxASSERT_MSG( (ControlHandle) m_macControl != NULL , wxT("No valid mac control") ) ;
ControlButtonContentInfo info ;
wxMacCreateBitmapButton( &info , m_bmpNormal ) ;
if ( info.contentType != kControlNoContent )
ControlButtonContentInfo info ;
wxMacCreateBitmapButton( &info , m_bmpNormal ) ;
if ( info.contentType != kControlNoContent )
}
MacPostControlCreate() ;
}
MacPostControlCreate() ;
}
void wxBitmapButton::SetBitmapLabel(const wxBitmap& bitmap)
}
void wxBitmapButton::SetBitmapLabel(const wxBitmap& bitmap)
+
+#endif // wxUSE_BMPBUTTON
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/mac/classic/dcclient.cpp
// Purpose: wxClientDC class
// Author: Stefan Csomor
// Modified by:
// Created: 01/02/97
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
// Purpose: wxClientDC class
// Author: Stefan Csomor
// Modified by:
// Created: 01/02/97
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+#include "wx/wxprec.h"
+
+
+#ifndef WX_PRECOMP
+ #include "wx/window.h"
+#endif
+
#include "wx/dcmemory.h"
#include "wx/region.h"
#include "wx/dcmemory.h"
#include "wx/region.h"
#include "wx/toplevel.h"
#include "wx/math.h"
#include "wx/mac/private.h"
#include "wx/toplevel.h"
#include "wx/math.h"
#include "wx/mac/private.h"
-wxWindowDC::wxWindowDC()
+wxWindowDC::wxWindowDC()
-wxWindowDC::wxWindowDC(wxWindow *window)
+wxWindowDC::wxWindowDC(wxWindow *window)
{
m_window = window ;
wxTopLevelWindowMac* rootwindow = window->MacGetTopLevelWindow() ;
WindowRef windowref = (WindowRef) rootwindow->MacGetWindowRef() ;
{
m_window = window ;
wxTopLevelWindowMac* rootwindow = window->MacGetTopLevelWindow() ;
WindowRef windowref = (WindowRef) rootwindow->MacGetWindowRef() ;
int x , y ;
x = y = 0 ;
window->MacWindowToRootWindow( &x , &y ) ;
int x , y ;
x = y = 0 ;
window->MacWindowToRootWindow( &x , &y ) ;
OffsetRgn( (RgnHandle) m_macBoundaryClipRgn , m_macLocalOrigin.x , m_macLocalOrigin.y ) ;
CopyRgn( (RgnHandle) m_macBoundaryClipRgn , (RgnHandle) m_macCurrentClipRgn ) ;
m_macPort = UMAGetWindowPort( windowref ) ;
OffsetRgn( (RgnHandle) m_macBoundaryClipRgn , m_macLocalOrigin.x , m_macLocalOrigin.y ) ;
CopyRgn( (RgnHandle) m_macBoundaryClipRgn , (RgnHandle) m_macCurrentClipRgn ) ;
m_macPort = UMAGetWindowPort( windowref ) ;
SetBackground(window->MacGetBackgroundBrush());
}
SetBackground(window->MacGetBackgroundBrush());
}
CopyRgn( (RgnHandle) m_macBoundaryClipRgn ,(RgnHandle) m_macCurrentClipRgn ) ;
m_macPort = UMAGetWindowPort( windowref ) ;
CopyRgn( (RgnHandle) m_macBoundaryClipRgn ,(RgnHandle) m_macCurrentClipRgn ) ;
m_macPort = UMAGetWindowPort( windowref ) ;
SetBackground(window->MacGetBackgroundBrush());
SetFont( window->GetFont() ) ;
}
SetBackground(window->MacGetBackgroundBrush());
SetFont( window->GetFont() ) ;
}
CopyRgn( (RgnHandle) m_macBoundaryClipRgn , (RgnHandle) m_macCurrentClipRgn ) ;
m_macPort = UMAGetWindowPort( windowref ) ;
CopyRgn( (RgnHandle) m_macBoundaryClipRgn , (RgnHandle) m_macCurrentClipRgn ) ;
m_macPort = UMAGetWindowPort( windowref ) ;
SetBackground(window->MacGetBackgroundBrush());
SetFont( window->GetFont() ) ;
}
SetBackground(window->MacGetBackgroundBrush());
SetFont( window->GetFont() ) ;
}
m_window->GetClientSize( width, height );
}
m_window->GetClientSize( width, height );
}
#ifndef WX_PRECOMP
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/toplevel.h"
#include "wx/gdicmn.h"
#include "wx/mac/private.h"
#include "wx/toplevel.h"
#include "wx/gdicmn.h"
#include "wx/mac/private.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/utils.h"
#endif
#include "wx/menuitem.h"
#endif
#include "wx/menuitem.h"
#include "wx/frame.h"
#include "wx/mac/uma.h"
#include "wx/frame.h"
#include "wx/mac/uma.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#endif
#include "wx/dc.h"
#endif
#include "wx/dc.h"
#include "wx/timer.h"
#include "wx/geometry.h"
#include "wx/mac/uma.h"
#include "wx/timer.h"
#include "wx/geometry.h"
#include "wx/mac/uma.h"
+#endif // wxUSE_TOOLTIPS
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/event.h" //joystick wxEvents
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/event.h" //joystick wxEvents
+ #include "wx/window.h" //for wxWindow to "capture" joystick
#endif
#include "wx/joystick.h" //...
#include "wx/thread.h" //wxThread for polling thread/ wxCriticalSection
#endif
#include "wx/joystick.h" //...
#include "wx/thread.h" //wxThread for polling thread/ wxCriticalSection
-#include "wx/window.h" //for wxWindow to "capture" joystick
//private headers
#include "wx/mac/corefoundation/hid.h" //private mac hid stuff
//private headers
#include "wx/mac/corefoundation/hid.h" //private mac hid stuff
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/utils.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/utils.h"
-#include "wx/window.h"
-
#if wxUSE_IMAGE
#include "wx/image.h"
#endif
#if wxUSE_IMAGE
#include "wx/image.h"
#endif
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/app.h"
#endif
#include "wx/dcmemory.h"
#endif
#include "wx/dcmemory.h"
#include "wx/image.h"
#include "wx/math.h"
#include "wx/image.h"
#include "wx/math.h"
#ifndef WX_PRECOMP
#include "wx/utils.h"
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/frame.h"
#ifdef __VMS__
#include "wx/frame.h"
#ifdef __VMS__
#include "wx/log.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/gdicmn.h"
#include <X11/Xlib.h>
#include "wx/gdicmn.h"
#include <X11/Xlib.h>
#ifndef WX_PRECOMP
#include "wx/event.h"
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/event.h"
#include "wx/app.h"
#endif //WX_PRECOMP
#include "wx/evtloop.h"
#endif //WX_PRECOMP
#include "wx/evtloop.h"
#ifdef __VMS__
#pragma message disable nosimpint
#ifdef __VMS__
#pragma message disable nosimpint
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/utils.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/utils.h"
-#include "wx/window.h"
-
#ifdef __VMS__
#pragma message disable nosimpint
#endif
#ifdef __VMS__
#pragma message disable nosimpint
#endif
#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/log.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/log.h"
-#include "wx/window.h"
-
#include "wx/msw/private.h"
// ----------------------------------------------------------------------------
#include "wx/msw/private.h"
// ----------------------------------------------------------------------------
#ifndef WX_PRECOMP
#include "wx/string.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/msw/private.h"
#if !defined(__GNUWIN32_OLD__) || defined(__CYGWIN10__)
#include "wx/msw/private.h"
#if !defined(__GNUWIN32_OLD__) || defined(__CYGWIN10__)
#define NO_JOYGETPOSEX
#endif
#define NO_JOYGETPOSEX
#endif
#include "wx/msw/registry.h"
#include <regstr.h>
#include "wx/msw/registry.h"
#include <regstr.h>
#include "wx/dc.h"
#include "wx/utils.h"
#include "wx/log.h"
#include "wx/dc.h"
#include "wx/utils.h"
#include "wx/log.h"
#include "wx/msw/private.h"
#include <windowsx.h>
#include "wx/msw/private.h"
#include <windowsx.h>
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/msw/statbmp.cpp
// Purpose: wxStaticBitmap
// Author: Julian Smart
// Modified by:
// Purpose: wxStaticBitmap
// Author: Julian Smart
// Modified by:
-#include "wx/window.h"
-#include "wx/msw/private.h"
- #include "wx/statbmp.h"
+#include "wx/msw/private.h"
+
#include "wx/sysopt.h"
#include <stdio.h>
#include "wx/sysopt.h"
#include <stdio.h>
if (m_currentHandle != 0 && oldHandle != (HGDIOBJ) m_currentHandle)
{
// the static control made a copy and we are responsible for deleting it
if (m_currentHandle != 0 && oldHandle != (HGDIOBJ) m_currentHandle)
{
// the static control made a copy and we are responsible for deleting it
- DeleteObject((HGDIOBJ) oldHandle);
+ DeleteObject((HGDIOBJ) oldHandle);
- m_currentHandle = (WXHANDLE)handle;
+ m_currentHandle = (WXHANDLE)handle;
#endif // Win32
if ( ImageIsOk() )
#endif // Win32
if ( ImageIsOk() )
}
#endif // wxUSE_STATBMP
}
#endif // wxUSE_STATBMP
#ifndef WX_PRECOMP
#include "wx/object.h"
#include "wx/log.h"
#ifndef WX_PRECOMP
#include "wx/object.h"
#include "wx/log.h"
#endif
#include "wx/colour.h"
#include "wx/font.h"
#include "wx/bitmap.h"
#endif
#include "wx/colour.h"
#include "wx/font.h"
#include "wx/bitmap.h"
#include "wx/listbox.h"
#include "wx/ownerdrw.h"
#include "wx/settings.h"
#include "wx/listbox.h"
#include "wx/ownerdrw.h"
#include "wx/settings.h"
#include "wx/string.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/string.h"
#include "wx/log.h"
#include "wx/app.h"
-#include "wx/window.h"
-
#include "wx/os2/private.h"
// ----------------------------------------------------------------------------
#include "wx/os2/private.h"
// ----------------------------------------------------------------------------
#include "wx/math.h"
#include "wx/string.h"
#include "wx/log.h"
#include "wx/math.h"
#include "wx/string.h"
#include "wx/log.h"
#include "wx/os2/private.h"
IMPLEMENT_CLASS(wxPrinterDC, wxDC)
#include "wx/os2/private.h"
IMPLEMENT_CLASS(wxPrinterDC, wxDC)
#ifndef WX_PRECOMP
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/gdicmn.h"
#define INCL_PM
#include "wx/gdicmn.h"
#define INCL_PM
#ifndef WX_PRECOMP
#include "wx/string.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
-#include "wx/window.h"
-
IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject)
// Attributes
IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject)
// Attributes
#include "wx/utils.h"
#include "wx/scrolwin.h"
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/scrolwin.h"
#include "wx/log.h"
#include "wx/os2/private.h"
#define INCL_M
#include "wx/os2/private.h"
#define INCL_M
#ifndef WX_PRECOMP
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#endif
#include "wx/os2/region.h"
#include "wx/gdicmn.h"
#endif
#include "wx/os2/region.h"
#include "wx/gdicmn.h"
#include "wx/os2/private.h"
IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject)
#include "wx/os2/private.h"
IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject)
#include "wx/pen.h"
#include "wx/brush.h"
#include "wx/gdicmn.h"
#include "wx/pen.h"
#include "wx/brush.h"
#include "wx/gdicmn.h"
#endif
#include "wx/module.h"
#include "wx/settings.h"
#endif
#include "wx/module.h"
#include "wx/settings.h"
#include "wx/os2/private.h"
// the module which is used to clean up wxSystemSettings data (this is a
#include "wx/os2/private.h"
// the module which is used to clean up wxSystemSettings data (this is a
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/os2/statbmp.cpp
// Purpose: wxStaticBitmap
// Author: David Webster
// Modified by:
// Purpose: wxStaticBitmap
// Author: David Webster
// Modified by:
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
-#include "wx/dcclient.h"
-#include "wx/window.h"
-#include "wx/os2/private.h"
#ifndef WX_PRECOMP
#include "wx/icon.h"
#ifndef WX_PRECOMP
#include "wx/icon.h"
- #include "wx/statbmp.h"
+#include "wx/dcclient.h"
+#include "wx/os2/private.h"
+
#include <stdio.h>
// ---------------------------------------------------------------------------
#include <stdio.h>
// ---------------------------------------------------------------------------
sError = wxPMErrorToStr(vError);
return false;
}
sError = wxPMErrorToStr(vError);
return false;
}
- wxCHECK_MSG( m_hWnd, FALSE, wxT("Failed to create static bitmap") );
+ wxCHECK_MSG( m_hWnd, false, wxT("Failed to create static bitmap") );
m_pImage = ConvertImage(rBitmap);
::WinSendMsg( m_hWnd,
SM_SETHANDLE,
m_pImage = ConvertImage(rBitmap);
::WinSendMsg( m_hWnd,
SM_SETHANDLE,
return wxWindow::DoGetBestSize();
}
return wxWindow::DoGetBestSize();
}
-void wxStaticBitmap::OnPaint (
- wxPaintEvent& WXUNUSED(rEvent)
-)
+void wxStaticBitmap::OnPaint ( wxPaintEvent& WXUNUSED(rEvent) )
- wxPaintDC vDc(this);
- wxBitmap* pBitmap;
+ wxPaintDC vDc(this);
+ wxBitmap* pBitmap;
if (m_pImage->IsKindOf(CLASSINFO(wxIcon)))
{
if (m_pImage->IsKindOf(CLASSINFO(wxIcon)))
{
}
} // end of wxStaticBitmap::OnPaint
}
} // end of wxStaticBitmap::OnPaint
-void wxStaticBitmap::SetImage(
- const wxGDIImage& rBitmap
-)
+void wxStaticBitmap::SetImage( const wxGDIImage& rBitmap )
- int nX = 0;
- int nY = 0;
- int nWidth = 0;
- int nHeight = 0;
+ int nX = 0;
+ int nY = 0;
+ int nWidth = 0;
+ int nHeight = 0;
Free();
::WinSendMsg( GetHwnd()
Free();
::WinSendMsg( GetHwnd()
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/dcclient.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/dcclient.h"
#include "wx/os2/private.h"
IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl)
#include "wx/os2/private.h"
IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl)
#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/log.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/log.h"
-#include "wx/window.h"
-
// ----------------------------------------------------------------------------
// array/list types
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// array/list types
// ----------------------------------------------------------------------------
#ifndef WX_PRECOMP
#include "wx/string.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
-#include "wx/window.h"
-
IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject)
// Attributes
IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject)
// Attributes
#include "wx/dc.h"
#include "wx/utils.h"
#include "wx/log.h"
#include "wx/dc.h"
#include "wx/utils.h"
#include "wx/log.h"
#include "wx/palmos/private.h"
#if wxUSE_OWNER_DRAWN
#include "wx/palmos/private.h"
#if wxUSE_OWNER_DRAWN
-#include "wx/window.h"
-#include "wx/palmos/private.h"
#ifndef WX_PRECOMP
#include "wx/icon.h"
#ifndef WX_PRECOMP
#include "wx/icon.h"
- #include "wx/statbmp.h"
+#include "wx/palmos/private.h"
+
// ---------------------------------------------------------------------------
// macors
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// macors
// ---------------------------------------------------------------------------
#include "wx/textctrl.h"
#include "wx/notebook.h"
#include "wx/listctrl.h"
#include "wx/textctrl.h"
#include "wx/notebook.h"
#include "wx/listctrl.h"
#ifndef WX_PRECOMP
#include "wx/event.h"
#ifndef WX_PRECOMP
#include "wx/event.h"
#endif //WX_PRECOMP
#include <linux/joystick.h>
#endif //WX_PRECOMP
#include <linux/joystick.h>
#include <fcntl.h>
#include <unistd.h>
#include <fcntl.h>
#include <unistd.h>
#include "wx/unix/private.h"
enum {
#include "wx/unix/private.h"
enum {
#ifndef WX_PRECOMP
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#endif
#include "wx/dcmemory.h"
#endif
#include "wx/dcmemory.h"
#include "wx/image.h"
#include "wx/module.h"
#include "wx/fontutil.h"
#include "wx/image.h"
#include "wx/module.h"
#include "wx/fontutil.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/utils.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/frame.h"
#include "wx/fontutil.h"
#include "wx/frame.h"
#include "wx/fontutil.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/gdicmn.h"
#include <X11/Xlib.h>
#include "wx/gdicmn.h"
#include <X11/Xlib.h>
#ifndef WX_PRECOMP
#include "wx/hash.h"
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/hash.h"
#include "wx/app.h"
#include "wx/tooltip.h"
#include "wx/timer.h"
#include "wx/module.h"
#include "wx/tooltip.h"
#include "wx/timer.h"
#include "wx/module.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/x11/icon.cpp
// Purpose: wxIcon class
// Author: Julian Smart
// Modified by:
// Created: 17/09/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Purpose: wxIcon class
// Author: Julian Smart
// Modified by:
// Created: 17/09/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// for compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+
+#ifndef WX_PRECOMP
+ #include "wx/window.h"
+#endif
#include "wx/x11/private.h"
#include "wx/x11/private.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/utils.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/utils.h"
-#include "wx/window.h"
-
#ifdef __VMS__
#pragma message disable nosimpint
#endif
#ifdef __VMS__
#pragma message disable nosimpint
#endif
#ifndef WX_PRECOMP
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
+ #include "wx/window.h" // for wxTopLevelWindows
#endif
#include "wx/apptrait.h"
#include "wx/msgdlg.h"
#include "wx/cursor.h"
#endif
#include "wx/apptrait.h"
#include "wx/msgdlg.h"
#include "wx/cursor.h"
-#include "wx/window.h" // for wxTopLevelWindows
#include <ctype.h>
#include <stdarg.h>
#include <ctype.h>
#include <stdarg.h>
#ifndef WX_PRECOMP
#include "wx/log.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/sizer.h"
#include "wx/panel.h"
#include "wx/sizer.h"
#include "wx/panel.h"