]> git.saurik.com Git - wxWidgets.git/commitdiff
Include wx/dcmemory.h according to precompiled headers of wx/wx.h (with other minor...
authorWłodzimierz Skiba <abx@abx.art.pl>
Mon, 8 May 2006 07:58:37 +0000 (07:58 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Mon, 8 May 2006 07:58:37 +0000 (07:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

40 files changed:
src/cocoa/dcmemory.mm
src/common/effects.cpp
src/common/rgncmn.cpp
src/generic/dcpsg.cpp
src/gtk/bitmap.cpp
src/gtk/dcclient.cpp
src/gtk/dcmemory.cpp
src/gtk/gnome/gprint.cpp
src/gtk1/bitmap.cpp
src/gtk1/dcclient.cpp
src/gtk1/dcmemory.cpp
src/html/htmlwin.cpp
src/mac/carbon/bitmap.cpp
src/mac/carbon/dataobj.cpp
src/mac/carbon/dc.cpp
src/mac/carbon/dccg.cpp
src/mac/carbon/dcclient.cpp
src/mac/carbon/dcmemory.cpp
src/mac/carbon/taskbar.cpp
src/mac/classic/dc.cpp
src/mac/classic/dcclient.cpp
src/mac/classic/dcmemory.cpp
src/mgl/bitmap.cpp
src/mgl/dcmemory.cpp
src/motif/dc.cpp
src/motif/dcclient.cpp
src/motif/utils.cpp
src/msw/dcmemory.cpp
src/msw/notebook.cpp
src/msw/ownerdrw.cpp
src/msw/statbox.cpp
src/os2/checklst.cpp
src/os2/dcmemory.cpp
src/os2/ownerdrw.cpp
src/palmos/dcmemory.cpp
src/palmos/ownerdrw.cpp
src/univ/notebook.cpp
src/x11/bitmap.cpp
src/x11/dc.cpp
src/x11/dcclient.cpp

index 0f2f04c365e862307df8a0f9e2c9396cc0b6fc1b..218fb4ff8eedccfb39f61e9f409530de46d6ebe8 100644 (file)
@@ -6,10 +6,11 @@
 // Created:     2003/03/16
 // RCS-ID:      $Id$
 // Copyright:   (c) 2002 David Elliott
-// Licence:    wxWidgets licence
+// Licence:     wxWidgets licence
 /////////////////////////////////////////////////////////////////////////////
 
 #include "wx/wxprec.h"
+
 #ifndef WX_PRECOMP
     #include "wx/log.h"
     #include "wx/dcmemory.h"
@@ -103,7 +104,7 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
             operation: NSCompositeCopy
             fraction: 1.0];
         [m_cocoaNSImage unlockFocus];
-        
+
         [nsimage release];
     }
 }
@@ -149,7 +150,7 @@ bool wxMemoryDC::CocoaDoBlitOnFocusedDC(wxCoord xdest, wxCoord ydest,
             width, height)
         operation: NSCompositeCopy // FIXME: raster ops
         fraction: 1.0];
-        
+
     [context restoreGraphicsState];
     return false;
 }
index 5a7ac476e0b12c903a001c9e126c43c99a7364ba..ed11c6934d426faeb2c374e7560db88e4318a811 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        effects.cpp
+// Name:        src/common/effects.cpp
 // Purpose:     wxEffects implementation
 // Author:      Julian Smart
 // Modified by:
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#include "wx/effects.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/dcmemory.h"
+#endif //WX_PRECOMP
+
 #include "wx/gdicmn.h"
 #include "wx/pen.h"
-#include "wx/dcmemory.h"
 #include "wx/settings.h"
-#include "wx/effects.h"
 
 /*
  * wxEffects: various 3D effects
index b06227cc2426b39d4b4d78f427d545ed01934f57..a32f24e8cf25a6089db563e2c8bf1e4233a6db0f 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        rgncmn.cpp
+// Name:        src/common/rgncmn.cpp
 // Purpose:     Methods of wxRegion that have a generic implementation
 // Author:      Robin Dunn
 // Modified by:
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
 #include "wx/region.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/dcmemory.h"
+#endif //WX_PRECOMP
+
 #include "wx/bitmap.h"
+
 #if wxUSE_IMAGE
-#include "wx/image.h"
+    #include "wx/image.h"
 #endif
-#include "wx/dcmemory.h"
 
 
 //---------------------------------------------------------------------------
@@ -131,7 +136,7 @@ bool wxRegion::Union(const wxBitmap& bmp,
                          tolerance);
 #else
     return false;
-#endif                         
+#endif
 }
 
 #else
index 266b12c3a8379f52e121b1a906900602e70fd214..62c685559c7cedd854866f812976337ed3447740 100644 (file)
@@ -24,9 +24,9 @@
     #include "wx/log.h"
     #include "wx/app.h"
     #include "wx/utils.h"
+    #include "wx/dcmemory.h"
 #endif // WX_PRECOMP
 
-#include "wx/dcmemory.h"
 #include "wx/image.h"
 #include "wx/prntbase.h"
 #include "wx/generic/prntdlgg.h"
index eb638d494479b9f90d57ff84cc691dfc120b7e10..4a0e1111f1d74a6360a6e26b75056b13daa317a1 100644 (file)
@@ -12,6 +12,7 @@
 
 #ifndef WX_PRECOMP
     #include "wx/app.h"
+    #include "wx/dcmemory.h"
 #endif
 
 #include "wx/bitmap.h"
@@ -19,7 +20,6 @@
 #include "wx/icon.h"
 #include "wx/filefn.h"
 #include "wx/image.h"
-#include "wx/dcmemory.h"
 
 #include "wx/rawbmp.h"
     // need this to get gdk_image_new_bitmap()
index 6df12003f0062a1218e11edc4f19fc61388606dc..cfb49766cd8606f46ffc3195aa4768e25f16c4eb 100644 (file)
@@ -18,9 +18,9 @@
 
 #ifndef WX_PRECOMP
     #include "wx/log.h"
+    #include "wx/dcmemory.h"
 #endif
 
-#include "wx/dcmemory.h"
 #include "wx/image.h"
 #include "wx/module.h"
 #include "wx/fontutil.h"
index 3894dd4f2edf4aff2168a8a3bc0f7c11dbc2cef7..c758430a6391f524c13874466ec87d1d92fc1f7e 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        dcmemory.cpp
+// Name:        src/gtk/dcmemory.cpp
 // Purpose:
 // Author:      Robert Roebling
 // RCS-ID:      $Id$
@@ -23,7 +23,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxWindowDC)
 
 wxMemoryDC::wxMemoryDC() : wxWindowDC()
 {
-    m_ok = FALSE;
+    m_ok = false;
 
     m_cmap = gtk_widget_get_default_colormap();
 
@@ -38,7 +38,7 @@ wxMemoryDC::wxMemoryDC() : wxWindowDC()
 wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )
   : wxWindowDC()
 {
-    m_ok = FALSE;
+    m_ok = false;
 
     m_cmap = gtk_widget_get_default_colormap();
 
@@ -70,13 +70,13 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
 
         m_selected.PurgeOtherRepresentations(wxBitmap::Pixmap);
 
-        m_isMemDC = TRUE;
+        m_isMemDC = true;
 
         SetUpDC();
     }
     else
     {
-        m_ok = FALSE;
+        m_ok = false;
         m_window = (GdkWindow *) NULL;
     }
 }
@@ -158,5 +158,3 @@ void wxMemoryDC::DoGetSize( int *width, int *height ) const
         if (height) (*height) = 0;
     }
 }
-
-
index 8c09929a655906f1f02d655d429c522df5fba52c..cf2ebd86bcac2d3622b14447fd036d15c2360534 100644 (file)
@@ -21,6 +21,7 @@
 
 #ifndef WX_PRECOMP
     #include "wx/log.h"
+    #include "wx/dcmemory.h"
 #endif
 
 #include "wx/math.h"
@@ -28,7 +29,6 @@
 #include "wx/gtk/private.h"
 #include "wx/module.h"
 #include "wx/dynlib.h"
-#include "wx/dcmemory.h"
 #include "wx/icon.h"
 
 #include <libgnomeprint/gnome-print.h>
index facb2e7204b4db15aaff000b084c068feb8dced5..492e8751bb0186f950a96d90dcd6f6e72a6cf0c0 100644 (file)
 
 #ifndef WX_PRECOMP
     #include "wx/app.h"
+    #include "wx/dcmemory.h"
 #endif // WX_PRECOMP
 
 #include "wx/palette.h"
 #include "wx/icon.h"
 #include "wx/filefn.h"
 #include "wx/image.h"
-#include "wx/dcmemory.h"
 
 #include <gdk/gdk.h>
 #include <gtk/gtk.h>
index b326e0d15219f4d10bb0c49bb7c2634a42896942..9d579b0bb631ac222e4cbce117565f34644c681a 100644 (file)
@@ -18,9 +18,9 @@
 
 #ifndef WX_PRECOMP
     #include "wx/log.h"
+    #include "wx/dcmemory.h"
 #endif
 
-#include "wx/dcmemory.h"
 #include "wx/image.h"
 #include "wx/module.h"
 #include "wx/fontutil.h"
index 977e3d22fdcb30e93acb470926ad250b28a406fb..713e58e881250c040554ceba76b4e564997cc207 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        dcmemory.cpp
+// Name:        src/gtk1/dcmemory.cpp
 // Purpose:
 // Author:      Robert Roebling
 // RCS-ID:      $Id$
@@ -23,15 +23,15 @@ IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxWindowDC)
 
 wxMemoryDC::wxMemoryDC() : wxWindowDC()
 {
-    m_ok = FALSE;
+    m_ok = false;
 
     m_cmap = gtk_widget_get_default_colormap();
 }
 
 wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )
-  : wxWindowDC()
+          : wxWindowDC()
 {
-    m_ok = FALSE;
+    m_ok = false;
 
     m_cmap = gtk_widget_get_default_colormap();
 
@@ -56,13 +56,13 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
             m_window = m_selected.GetBitmap();
         }
 
-        m_isMemDC = TRUE;
+        m_isMemDC = true;
 
         SetUpDC();
     }
     else
     {
-        m_ok = FALSE;
+        m_ok = false;
         m_window = (GdkWindow *) NULL;
     }
 }
@@ -144,5 +144,3 @@ void wxMemoryDC::DoGetSize( int *width, int *height ) const
         if (height) (*height) = 0;
     }
 }
-
-
index 698e4cccb47aa0ea8d89896603046b9df48f3a78..26a6420d9d9d5578f4c4c15cf6ffbcff5327113b 100644 (file)
@@ -21,6 +21,7 @@
     #include "wx/intl.h"
     #include "wx/dcclient.h"
     #include "wx/frame.h"
+    #include "wx/dcmemory.h"
 #endif
 
 #include "wx/html/htmlwin.h"
@@ -28,7 +29,6 @@
 #include "wx/clipbrd.h"
 #include "wx/dataobj.h"
 #include "wx/timer.h"
-#include "wx/dcmemory.h"
 #include "wx/settings.h"
 
 #include "wx/arrimpl.cpp"
index d7f9c3ba838af7b508e368c5ceb894aebf822c65..c22d1b7821f5ddfa10d00eb2ebc903e954417085 100644 (file)
@@ -15,6 +15,7 @@
 
 #ifndef WX_PRECOMP
     #include "wx/log.h"
+    #include "wx/dcmemory.h"
 #endif
 
 #include "wx/icon.h"
@@ -35,7 +36,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxBitmapHandler, wxObject)
 #endif
 
 #include "wx/mac/uma.h"
-#include "wx/dcmemory.h"
 
 // Implementation Notes
 // --------------------
index 3ace48bcd887bb711732dc9b674174a21e2e094b..041084127d8304d951d9125e14c34d25aa982837 100644 (file)
@@ -19,9 +19,9 @@
 #ifndef WX_PRECOMP
     #include "wx/intl.h"
     #include "wx/log.h"
+    #include "wx/dcmemory.h"
 #endif
 
-#include "wx/dcmemory.h"
 #include "wx/mstream.h"
 #include "wx/image.h"
 #include "wx/metafile.h"
index 1d07f860742f8c50ef6b9db940aec53317544f10..719b77aecc495fda8c757984c4749e7f83c835d6 100644 (file)
 #ifndef WX_PRECOMP
     #include "wx/log.h"
     #include "wx/app.h"
+    #include "wx/dcmemory.h"
 #endif
 
 #include "wx/mac/uma.h"
-#include "wx/dcmemory.h"
 #include "wx/dcprint.h"
 #include "wx/region.h"
 #include "wx/image.h"
index 2378561aa35cd7a40e60cd559f75142e418b7d2b..0431b8eba7fec78fb53e2ae5b50251334ff145ce 100755 (executable)
 #ifndef WX_PRECOMP
     #include "wx/log.h"
     #include "wx/app.h"
+    #include "wx/dcmemory.h"
 #endif
 
 #include "wx/mac/uma.h"
-#include "wx/dcmemory.h"
 #include "wx/dcprint.h"
 #include "wx/region.h"
 #include "wx/image.h"
index f706434036799f99d1193e9da44a50d61957b73d..0eb7e0a3ce457108067336b3809b23011c69c40f 100644 (file)
@@ -16,9 +16,9 @@
 #ifndef WX_PRECOMP
     #include "wx/log.h"
     #include "wx/window.h"
+    #include "wx/dcmemory.h"
 #endif
 
-#include "wx/dcmemory.h"
 #include "wx/region.h"
 #include "wx/toplevel.h"
 #include "wx/settings.h"
index c085610570690eefe165ba22cf35e454cd489b02..79ef4ee3ccf5b4a27b1eb9e3d87d2bec5d3249ab 100644 (file)
@@ -1,17 +1,18 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        dcmemory.cpp
+// Name:        src/mac/carbon/dcmemory.cpp
 // Purpose:     wxMemoryDC 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"
 
 #include "wx/dcmemory.h"
+
 #include "wx/mac/private.h"
 
 //-----------------------------------------------------------------------------
@@ -86,7 +87,7 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
         int h = bitmap.GetHeight() ;
 
         // TODO: should this be kCGImageAlphaPremultiplied[First,Last] ?
-        CGImageAlphaInfo a = kCGImageAlphaNoneSkipFirst ; 
+        CGImageAlphaInfo a = kCGImageAlphaNoneSkipFirst ;
 
         CGColorSpaceRef genericColorSpace  = wxMacGetGenericRGBColorSpace();
         CGContextRef bmCtx = CGBitmapContextCreate( data , w, h, bitsPerComp , bytesPerPixel * w , genericColorSpace, a );
@@ -94,15 +95,15 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
 
         if ( bmCtx )
         {
-            CGContextSetFillColorSpace( bmCtx, genericColorSpace ); 
-            CGContextSetStrokeColorSpace( bmCtx, genericColorSpace ); 
+            CGContextSetFillColorSpace( bmCtx, genericColorSpace );
+            CGContextSetStrokeColorSpace( bmCtx, genericColorSpace );
 
             CGContextTranslateCTM( bmCtx , 0 ,  m_selected.GetHeight() ) ;
             CGContextScaleCTM( bmCtx , 1 , -1 ) ;
 
-            m_graphicContext = new wxMacCGContext( bmCtx ) ;  
+            m_graphicContext = new wxMacCGContext( bmCtx ) ;
             m_graphicContext->SetPen( m_pen ) ;
-            m_graphicContext->SetBrush( m_brush ) ;     
+            m_graphicContext->SetBrush( m_brush ) ;
         }
         m_ok = (m_graphicContext != NULL) ;
 
index 5fea2b7552e73e3db85f9df4a241d32a0235cb7f..cc9afbef1d09f6b35f1fb2202947841764d206e0 100644 (file)
@@ -1,6 +1,6 @@
 ///////////////////////////////////////////////////////////////////////////////
 // Name:        src/mac/carbon/taskbar.cpp
-// Purpose:    wxTaskBarIcon
+// Purpose:     wxTaskBarIcon
 // Author:      Ryan Norton
 // Modified by:
 // Created:     09/25/2004
 
 #ifdef wxHAS_TASK_BAR_ICON
 
+#include "wx/taskbar.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/dcmemory.h"
+#endif
+
 #include "wx/mac/private.h"
 
-#include "wx/taskbar.h"
 #include "wx/menu.h"
 #include "wx/icon.h"
-#include "wx/dcmemory.h"
 
 
 class wxTaskBarIconImpl
@@ -54,7 +58,7 @@ class wxTaskBarIconWindow : public wxTopLevelWindow
 {
 public:
     wxTaskBarIconWindow(wxTaskBarIconImpl *impl)
-        : wxTopLevelWindow(NULL, -1, wxT("")), m_impl(impl)
+        : wxTopLevelWindow(NULL, wxID_ANY, wxEmptyString), m_impl(impl)
     {
         Connect(
             -1, wxEVT_COMMAND_MENU_SELECTED,
index e1d53daa38c513ee858ad4aedb60450b688b3398..a8c87e57be132e27d09aad39e76669fbb4765a60 100644 (file)
 #ifndef WX_PRECOMP
     #include "wx/log.h"
     #include "wx/app.h"
+    #include "wx/dcmemory.h"
 #endif
 
 #include "wx/mac/uma.h"
-#include "wx/dcmemory.h"
 #include "wx/dcprint.h"
 #include "wx/region.h"
 #include "wx/image.h"
index 747423c2593a70a710802eebb76b09c9cbb89664..bd31dd9744b88481e444b235462e312a1a94e2b2 100644 (file)
@@ -15,9 +15,9 @@
 
 #ifndef WX_PRECOMP
     #include "wx/window.h"
+    #include "wx/dcmemory.h"
 #endif
 
-#include "wx/dcmemory.h"
 #include "wx/region.h"
 #include "wx/toplevel.h"
 #include "wx/math.h"
index b1be90dbe91c60d1c0330ab3db155afe14ad2be1..32949efa7524951e4ab82a6542504e03af1c2e26 100644 (file)
@@ -1,15 +1,18 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        dcmemory.cpp
+// Name:        src/mac/classic/dcmemory.cpp
 // Purpose:     wxMemoryDC 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"
+
 #include "wx/dcmemory.h"
+
 #include "wx/mac/private.h"
 
 //-----------------------------------------------------------------------------
 IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxPaintDC)
 
 wxMemoryDC::wxMemoryDC(void)
-: m_selected()
+          : m_selected()
 {
-    m_ok = TRUE;
+    m_ok = true;
     SetBackground(*wxWHITE_BRUSH);
     SetBrush(*wxWHITE_BRUSH);
     SetPen(*wxBLACK_PEN);
-    m_ok = FALSE;
+    m_ok = false;
 };
 
 wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )
-: m_selected()
+          : m_selected()
 {
-    m_ok = TRUE;
+    m_ok = true;
     SetBackground(*wxWHITE_BRUSH);
     SetBrush(*wxWHITE_BRUSH);
     SetPen(*wxBLACK_PEN);
-    m_ok = FALSE;
+    m_ok = false;
 };
 
 wxMemoryDC::~wxMemoryDC()
@@ -66,16 +69,16 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
             }
             SetRectRgn( (RgnHandle) m_macBoundaryClipRgn , 0 , 0 , m_selected.GetWidth() , m_selected.GetHeight() ) ;
             CopyRgn( (RgnHandle) m_macBoundaryClipRgn ,(RgnHandle)  m_macCurrentClipRgn ) ;
-            m_ok = TRUE ;
+            m_ok = true ;
         }
         else
         {
-            m_ok = FALSE;
+            m_ok = false;
         }
     }
     else
     {
-        m_ok = FALSE;
+        m_ok = false;
     }
 }
 
@@ -92,5 +95,3 @@ void wxMemoryDC::DoGetSize( int *width, int *height ) const
         if (height) (*height) = 0;
     }
 }
-
-
index 7f5df13f1fe09ba45a20c1008911c6ce3d633035..06e840311a500094f9a95cdf38e992aac7c19596 100644 (file)
     #include "wx/intl.h"
     #include "wx/log.h"
     #include "wx/utils.h"
+    #include "wx/dcmemory.h"
 #endif
 
 #include "wx/icon.h"
 #include "wx/filefn.h"
 #include "wx/image.h"
-#include "wx/dcmemory.h"
 #include "wx/image.h"
 #include "wx/xpmdecod.h"
 
index 8c3b60c194467352f497f929f768a9251387d749..c6c4233795bc6b9d01d99c59c9e57a04160e389d 100644 (file)
@@ -1,9 +1,9 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        dcmemory.cpp
+// Name:        src/mgl/dcmemory.cpp
 // Purpose:
 // Author:      Robert Roebling, Vaclav Slavik
 // RCS-ID:      $Id$
-// Copyright:   (c) 1998 Robert Roebling, 
+// Copyright:   (c) 1998 Robert Roebling,
 //                  2001 SciTech Software, Inc. (www.scitechsoft.com)
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -26,12 +26,12 @@ IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxWindowDC)
 
 wxMemoryDC::wxMemoryDC() : wxDC()
 {
-    m_isMemDC = TRUE;
+    m_isMemDC = true;
 }
 
 wxMemoryDC::wxMemoryDC(wxDC *WXUNUSED(dc)) : wxDC()
 {
-    m_isMemDC = TRUE;
+    m_isMemDC = true;
 }
 
 wxMemoryDC::~wxMemoryDC()
index c6bd10e42507e314a96d920912236ca32dd9a3e0..884ac2e7e6185db2ef3d7a19facba5e4b83d5633 100644 (file)
 #include "wx/wxprec.h"
 
 #include "wx/dc.h"
-#include "wx/dcmemory.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/dcmemory.h"
+#endif
 
 IMPLEMENT_ABSTRACT_CLASS(wxDC, wxObject)
 
index eef4a0aa7dba678110fe1e6775e9b992621daee8..cd858688c367efef897af2d462c77071199c598a 100644 (file)
@@ -45,9 +45,9 @@
     #include "wx/log.h"
     #include "wx/app.h"
     #include "wx/window.h"
+    #include "wx/dcmemory.h"
 #endif
 
-#include "wx/dcmemory.h"
 #include "wx/image.h"
 #include "wx/math.h"
 
index dea805a657979463c9c3c34c9d58bfc322c2cf25..efa8473ed12929a3e801af892f2e830cd1866bb2 100644 (file)
 
 #ifndef WX_PRECOMP
     #include "wx/app.h"
+    #include "wx/dcmemory.h"
 #endif
 
 #include "wx/apptrait.h"
-#include "wx/dcmemory.h"
 #include "wx/bitmap.h"
 #include "wx/evtloop.h"
 
index 9633d806918452591272365df5e60f3650f3d6bd..e68fe93b107ec32a52df9784bbac9fc2020f70ad 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        dcmemory.cpp
+// Name:        src/msw/dcmemory.cpp
 // Purpose:     wxMemoryDC class
 // Author:      Julian Smart
 // Modified by:
@@ -24,6 +24,8 @@
     #pragma hdrstop
 #endif
 
+#include "wx/dcmemory.h"
+
 #ifndef WX_PRECOMP
     #include "wx/utils.h"
     #include "wx/log.h"
@@ -31,8 +33,6 @@
 
 #include "wx/msw/private.h"
 
-#include "wx/dcmemory.h"
-
 // ----------------------------------------------------------------------------
 // wxWin macros
 // ----------------------------------------------------------------------------
@@ -199,4 +199,3 @@ void wxMemoryDC::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord he
         wxDC::DoDrawRectangle(x, y, width, height);
     }
 }
-
index f3d26b69d78028dc79fd7dd9f23fc01e0648eb49..ff438e3dc65bab1e3461b9251ec13febacc5c8cd 100644 (file)
     #include  "wx/event.h"
     #include  "wx/app.h"
     #include  "wx/dcclient.h"
+    #include  "wx/dcmemory.h"
 #endif  // WX_PRECOMP
 
 #include  "wx/imaglist.h"
 #include  "wx/control.h"
 #include  "wx/sysopt.h"
-#include  "wx/dcmemory.h"
 
 #include  "wx/msw/private.h"
 
index c7b56a1dbc4469ed2a179e483cb0300fc8653216..7711d8113e240060f6584f9370b8049229c43827 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        msw/ownerdrw.cpp
+// Name:        src/msw/ownerdrw.cpp
 // Purpose:     implementation of wxOwnerDrawn class
 // Author:      Vadim Zeitlin
 // Modified by:
 
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
-#include "wx/msw/private.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
 #ifndef WX_PRECOMP
-  #include "wx/window.h"
-  #include "wx/msw/private.h"
-  #include "wx/font.h"
-  #include "wx/bitmap.h"
-  #include "wx/dcmemory.h"
-  #include "wx/menu.h"
-  #include "wx/utils.h"
+    #include "wx/window.h"
+    #include "wx/msw/private.h"
+    #include "wx/font.h"
+    #include "wx/bitmap.h"
+    #include "wx/dcmemory.h"
+    #include "wx/menu.h"
+    #include "wx/utils.h"
 #endif
 
 #include "wx/settings.h"
@@ -192,7 +191,7 @@ bool wxOwnerDrawn::OnMeasureItem(size_t *pwidth, size_t *pheight)
         // placed on top of each other.
         if ( !m_strAccel.empty() )
         {
-            str.Pad(str.Length()%8);
+            str.Pad(str.length()%8);
             str += m_strAccel;
         }
 
@@ -353,7 +352,7 @@ bool wxOwnerDrawn::OnDrawItem(wxDC& dc,
         xText += 3; // separate text from the highlight rectangle
 
         SIZE sizeRect;
-        ::GetTextExtentPoint32(hdc, strMenuText.c_str(), strMenuText.Length(), &sizeRect);
+        ::GetTextExtentPoint32(hdc, strMenuText.c_str(), strMenuText.length(), &sizeRect);
         ::DrawState(hdc, NULL, NULL,
                     (LPARAM)strMenuText.c_str(), strMenuText.length(),
                     xText, rc.y + (int) ((rc.GetHeight()-sizeRect.cy)/2.0), // centre text vertically
@@ -465,4 +464,3 @@ bool wxOwnerDrawn::OnDrawItem(wxDC& dc,
 
 
 #endif // wxUSE_OWNER_DRAWN
-
index bbd39a04dcd18fd723aeb842110b678b8bf2b51a..e0680382eb061d618993d244e7c4a21dcb1e57b0 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        msw/statbox.cpp
+// Name:        src/msw/statbox.cpp
 // Purpose:     wxStaticBox
 // Author:      Julian Smart
 // Modified by:
 
 #if wxUSE_STATBOX
 
+#include "wx/statbox.h"
+
 #ifndef WX_PRECOMP
     #include "wx/app.h"
     #include "wx/dcclient.h"
+    #include "wx/dcmemory.h"
 #endif
 
-#include "wx/statbox.h"
 #include "wx/notebook.h"
 #include "wx/sysopt.h"
 #include "wx/image.h"
-#include "wx/dcmemory.h"
 #include "wx/sysopt.h"
 
 #include "wx/msw/uxtheme.h"
@@ -447,4 +448,3 @@ void wxStaticBox::OnPaint(wxPaintEvent& WXUNUSED(event))
 #endif // !__WXWINCE__
 
 #endif // wxUSE_STATBOX
-
index ed0d2e3f36f0f38bc9a8914f0702f88e977d5e73..3bcd1f9abe7c1070d628ce12574c8f96905b1654 100644 (file)
@@ -24,6 +24,7 @@
     #include "wx/object.h"
     #include "wx/log.h"
     #include "wx/window.h"
+    #include "wx/dcmemory.h"
 #endif
 
 #include "wx/colour.h"
@@ -32,7 +33,6 @@
 #include "wx/listbox.h"
 #include "wx/ownerdrw.h"
 #include "wx/settings.h"
-#include "wx/dcmemory.h"
 #include "wx/dcscreen.h"
 
 #define INCL_PM
index aeeff2c76b6b285ce9a14442fdcef183a28064da..b42e3844419cdd6a00ec961bbd76c973ff1e0048 100644 (file)
@@ -12,6 +12,8 @@
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
+#include "wx/dcmemory.h"
+
 #ifndef WX_PRECOMP
     #include "wx/utils.h"
     #include "wx/app.h"
@@ -20,8 +22,6 @@
 
 #include "wx/os2/private.h"
 
-#include "wx/dcmemory.h"
-
 IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC)
 
 /////////////////////////////////////////////////////////////////////////////
index ac75b71f40ee14cb7a7ba2ada36dd7ebd6e4c8d0..ee24483af6d77789bc443f3b574ce5361ebbf584 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        msw/ownerdrw.cpp
+// Name:        src/os2/ownerdrw.cpp
 // Purpose:     implementation of wxOwnerDrawn class
 // Author:      David Webster
 // Modified by:
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
+#if wxUSE_OWNER_DRAWN
+
 #ifndef WX_PRECOMP
-  #include "wx/window.h"
-  #include "wx/os2/private.h"
-  #include "wx/font.h"
-  #include "wx/bitmap.h"
-  #include "wx/dcmemory.h"
-  #include "wx/menu.h"
-  #include "wx/utils.h"
+    #include "wx/window.h"
+    #include "wx/os2/private.h"
+    #include "wx/font.h"
+    #include "wx/bitmap.h"
+    #include "wx/dcmemory.h"
+    #include "wx/menu.h"
+    #include "wx/utils.h"
 #endif
 
-#if wxUSE_OWNER_DRAWN
-
 #include "wx/settings.h"
 #include "wx/ownerdrw.h"
 #include "wx/menuitem.h"
@@ -74,7 +74,7 @@ bool wxOwnerDrawn::OnMeasureItem( size_t* pWidth,
     // placed on top of each other.
     if (!m_strAccel.empty() )
     {
-        sStr.Pad(sStr.Length()%8);
+        sStr.Pad(sStr.length()%8);
         sStr += m_strAccel;
     }
     vDC.SetFont(GetFont());
index 8b58a539b0d8265ca5acdd90af84a78b81ebc073..461b478a5390730bd684c0bd3920a1348c0ebcc4 100644 (file)
     #pragma hdrstop
 #endif
 
+#include "wx/dcmemory.h"
+
 #ifndef WX_PRECOMP
     #include "wx/utils.h"
     #include "wx/log.h"
 #endif
 
-#include "wx/dcmemory.h"
-
 // ----------------------------------------------------------------------------
 // wxWin macros
 // ----------------------------------------------------------------------------
@@ -88,4 +88,3 @@ static void wxDrawRectangle(wxDC& dc, wxCoord x, wxCoord y, wxCoord width, wxCoo
 void wxMemoryDC::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
 {
 }
-
index a9a6b77e26ff3c246fb35c33930e074f142ca843..60cb581412d04acdde1b8d8d8fdaedeb0578c349 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
 #ifndef WX_PRECOMP
-  #include "wx/window.h"
-  #include "wx/font.h"
-  #include "wx/bitmap.h"
-  #include "wx/dcmemory.h"
-  #include "wx/menu.h"
-  #include "wx/utils.h"
+    #include "wx/window.h"
+    #include "wx/font.h"
+    #include "wx/bitmap.h"
+    #include "wx/dcmemory.h"
+    #include "wx/menu.h"
+    #include "wx/utils.h"
 #endif
 
 #include "wx/settings.h"
@@ -108,4 +108,3 @@ bool wxOwnerDrawn::OnDrawItem(wxDC& dc,
 
 
 #endif // wxUSE_OWNER_DRAWN
-
index 1d8c16355cd5dd4f2cc67df8ddbfd19b3f4c302c..1255a2fe5ce6836a15e8aeb8611ffcf6feb43228 100644 (file)
 
 #if wxUSE_NOTEBOOK
 
-#include "wx/imaglist.h"
 #include "wx/notebook.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/dcmemory.h"
+#endif
+
+#include "wx/imaglist.h"
 #include "wx/spinbutt.h"
-#include "wx/dcmemory.h"
 
 #include "wx/univ/renderer.h"
 
index ae4c2e3f12cd39fd2c8b45756ebce36de95e4b6e..b9905dde46314baae345944bf787cf599d26a02a 100644 (file)
 #ifndef WX_PRECOMP
     #include "wx/log.h"
     #include "wx/app.h"
+    #include "wx/dcmemory.h"
 #endif
 
 #include "wx/icon.h"
 #include "wx/image.h"
-#if wxUSE_NANOX
-#include "wx/dcmemory.h"
-#endif
 
 #include "wx/x11/private.h"
 
index e3f513a14307d62d8a851660d23007aa95c64235..6d81131809f7bd4bb4df39be190037e9aefa5b88 100644 (file)
 #include "wx/wxprec.h"
 
 #include "wx/dc.h"
-#include "wx/dcmemory.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/dcmemory.h"
+#endif
 
 IMPLEMENT_ABSTRACT_CLASS(wxDC, wxObject)
 
index 2d5425934982efd501d5ce9c8392a77be8b3aa3f..5e3b5728cbd6ed54a3f48069ad7f0680cdfef7eb 100644 (file)
@@ -17,9 +17,9 @@
 #ifndef WX_PRECOMP
     #include "wx/app.h"
     #include "wx/window.h"
+    #include "wx/dcmemory.h"
 #endif
 
-#include "wx/dcmemory.h"
 #include "wx/image.h"
 #include "wx/module.h"
 #include "wx/fontutil.h"