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

12 files changed:
src/cocoa/dcscreen.cpp
src/generic/sashwin.cpp
src/gtk/minifram.cpp
src/gtk1/minifram.cpp
src/mac/carbon/dcscreen.cpp
src/mac/classic/dcscreen.cpp
src/mgl/dcscreen.cpp
src/mgl/window.cpp
src/msw/dcscreen.cpp
src/os2/checklst.cpp
src/os2/dcscreen.cpp
src/palmos/dcscreen.cpp

index 50e5fa00f27d8a98f8c6afd984dd5da030e17777..d809bb7ee505f2e3c2c2eb65fdf230cda8459ec5 100644 (file)
@@ -4,14 +4,16 @@
 // Author:      David Elliott
 // Modified by:
 // Created:     2003/03/16
-// RCS-ID:      $Id:
+// RCS-ID:      $Id$
 // Copyright:   (c) 2002 David Elliott
-// Licence:    wxWindows license
+// Licence:     wxWindows license
 /////////////////////////////////////////////////////////////////////////////
 
 #include "wx/wxprec.h"
+
+#include "wx/dcscreen.h"
+
 #ifndef WX_PRECOMP
-    #include "wx/dcscreen.h"
 #endif //WX_PRECOMP
 
 //-----------------------------------------------------------------------------
@@ -22,15 +24,14 @@ IMPLEMENT_DYNAMIC_CLASS(wxScreenDC,wxDC)
 
 wxScreenDC::wxScreenDC(void)
 {
-  m_ok = false;
-};
+    m_ok = false;
+}
 
 wxScreenDC::wxScreenDC( wxDC *WXUNUSED(dc) )
 {
-  m_ok = false;
-};
+    m_ok = false;
+}
 
 wxScreenDC::~wxScreenDC(void)
 {
 }
-
index 752516aa9d1248f35e7e96782cdee7e333d74af0..3a4e2b6d9700b39cb9c56f7e58dcf5dff1d495af 100644 (file)
 
 #if wxUSE_SASH
 
+#include "wx/sashwin.h"
+
 #ifndef WX_PRECOMP
     #include "wx/dialog.h"
     #include "wx/frame.h"
     #include "wx/settings.h"
     #include "wx/dcclient.h"
+    #include "wx/dcscreen.h"
 #endif
 
 #include "wx/math.h"
 
 #include <stdlib.h>
 
-#include "wx/dcscreen.h"
-#include "wx/sashwin.h"
 #include "wx/laywin.h"
 
 DEFINE_EVENT_TYPE(wxEVT_SASH_DRAGGED)
index 2e55af6f5357df2b298c8e53366aba97f2b83ed2..45beaf5a6bfcfcb7b79747b12f64c2f6c5c2eb62 100644 (file)
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/minifram.h"
-
 #if wxUSE_MINIFRAME
 
-#include "wx/dcscreen.h"
+#include "wx/minifram.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/dcscreen.h"
+#endif
 
 #include "gtk/gtk.h"
 #include "wx/gtk/win_gtk.h"
@@ -167,7 +169,7 @@ static gint gtk_window_button_release_callback( GtkWidget *widget, GdkEventButto
 
     if (!win->m_isDragging) return TRUE;
 
-    win->m_isDragging = FALSE;
+    win->m_isDragging = false;
 
     int x = (int)gdk_event->x;
     int y = (int)gdk_event->y;
@@ -334,4 +336,4 @@ void wxMiniFrame::SetTitle( const wxString &title )
     gdk_window_invalidate_rect( GTK_PIZZA(m_mainWidget)->bin_window, NULL, true );
 }
 
-#endif
+#endif // wxUSE_MINIFRAME
index c60a64cb353fe6df21334e488bb51e4b70f7d3b6..a7803836b3e9ddb6b1ae03a36e7d4c9c40597a7b 100644 (file)
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/minifram.h"
-
 #if wxUSE_MINIFRAME
 
-#include "wx/dcscreen.h"
+#include "wx/minifram.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/dcscreen.h"
+#endif
 
 #include "gtk/gtk.h"
 #include "wx/gtk1/win_gtk.h"
@@ -219,7 +221,7 @@ static gint gtk_window_button_release_callback( GtkWidget *widget, GdkEventButto
 
     if (!win->m_isDragging) return TRUE;
 
-    win->m_isDragging = FALSE;
+    win->m_isDragging = false;
 
     int x = (int)gdk_event->x;
     int y = (int)gdk_event->y;
@@ -400,4 +402,4 @@ void wxMiniFrame::SetTitle( const wxString &title )
     gtk_widget_draw( m_mainWidget, (GdkRectangle*) NULL );
 }
 
-#endif
+#endif // wxUSE_MINIFRAME
index 85f092c8f0c485686b87d5635544b21a75ae6381..b321bfcfb108d321c1190642725e696859a01072 100644 (file)
@@ -1,17 +1,18 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        dcscreen.cpp
+// Name:        src/mac/carbon/dcscreen.cpp
 // Purpose:     wxScreenDC class
 // 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"
 
 #include "wx/dcscreen.h"
+
 #include "wx/mac/uma.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
@@ -24,7 +25,7 @@ wxScreenDC::wxScreenDC()
     GetPort( &port ) ;
     SetPort( (GrafPtr) m_macPort ) ;
     Point pt = { 0,0 } ;
-    LocalToGlobal( &pt ) ;     
+    LocalToGlobal( &pt ) ;
     SetPort( port ) ;
     m_macLocalOrigin.x = -pt.h ;
     m_macLocalOrigin.y = -pt.v ;
@@ -43,17 +44,17 @@ wxScreenDC::wxScreenDC()
     m_maxY = screenBits.bounds.bottom ;
 
 #if wxMAC_USE_CORE_GRAPHICS
-    m_graphicContext = new wxMacCGContext( port ) ;    
+    m_graphicContext = new wxMacCGContext( port ) ;
 #else
     MacSetRectRgn( (RgnHandle) m_macBoundaryClipRgn , m_minX , m_minY , m_maxX , m_maxY ) ;
     OffsetRgn( (RgnHandle) m_macBoundaryClipRgn , m_macLocalOrigin.x , m_macLocalOrigin.y ) ;
     CopyRgn( (RgnHandle) m_macBoundaryClipRgn , (RgnHandle) m_macCurrentClipRgn ) ;
 #endif
-    m_ok = TRUE ;    
+    m_ok = true ;
 }
 
 wxScreenDC::~wxScreenDC()
-{   
+{
 #if wxMAC_USE_CORE_GRAPHICS
     delete m_graphicContext ;
     m_graphicContext = NULL ;
@@ -62,4 +63,3 @@ wxScreenDC::~wxScreenDC()
     if ( m_macPort )
         DisposePort( (CGrafPtr) m_macPort ) ;
 }
-
index bbfbc779641e5b6148575712fb30d375f5b61ca5..65f4ef442df1bf866a50da061365f98655990c9e 100644 (file)
@@ -1,15 +1,18 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        dcscreen.cpp
+// Name:        src/mac/classic/dcscreen.cpp
 // Purpose:     wxScreenDC class
 // 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"
+
 #include "wx/dcscreen.h"
+
 #include "wx/mac/uma.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
@@ -23,7 +26,7 @@ wxScreenDC::wxScreenDC()
     GetPort( &port ) ;
     SetPort( (GrafPtr) m_macPort ) ;
     Point pt = { 0,0 } ;
-    LocalToGlobal( &pt ) ;     
+    LocalToGlobal( &pt ) ;
     SetPort( port ) ;
     m_macLocalOrigin.x = -pt.h ;
     m_macLocalOrigin.y = -pt.v ;
@@ -32,17 +35,17 @@ wxScreenDC::wxScreenDC()
     m_macLocalOrigin.x = 0 ;
     m_macLocalOrigin.y = 0 ;
 #endif
-     m_ok = TRUE ;
+    m_ok = true ;
     BitMap screenBits;
     GetQDGlobalsScreenBits( &screenBits );
-     m_minX = screenBits.bounds.left ;
- #if TARGET_CARBON
-     SInt16 height ;
-     GetThemeMenuBarHeight( &height ) ;
-     m_minY = screenBits.bounds.top + height ;
- #else
-     m_minY = screenBits.bounds.top + LMGetMBarHeight() ;
- #endif
+    m_minX = screenBits.bounds.left ;
+#if TARGET_CARBON
+    SInt16 height ;
+    GetThemeMenuBarHeight( &height ) ;
+    m_minY = screenBits.bounds.top + height ;
+#else
+    m_minY = screenBits.bounds.top + LMGetMBarHeight() ;
+#endif
     m_maxX = screenBits.bounds.right  ;
     m_maxY = screenBits.bounds.bottom ;
     MacSetRectRgn( (RgnHandle) m_macBoundaryClipRgn , m_minX , m_minY , m_maxX , m_maxY ) ;
@@ -54,4 +57,3 @@ wxScreenDC::~wxScreenDC()
 {
     // TODO
 }
-
index 67fbc4590f58fd670755bea3752f383dc4bc508c..4edb3f61c7d1e0c356973e1c61574beb94c6963e 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        dcscreen.cpp
+// Name:        src/mgl/dcscreen.cpp
 // Author:      Vaclav Slavik
 // Id:          $Id$
 // Copyright:   (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
 #endif
 
 #include "wx/dcscreen.h"
+
 #include "wx/mgl/private.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxDC)
 
-wxScreenDC::wxScreenDC() : wxDC()
+wxScreenDC::wxScreenDC()
+           :wxDC()
 {
     SetMGLDC(g_displayDC, FALSE /* no ownership */);
-    
+
     // VS: we have to hide the mouse, otherwise rendering artifacts may occur
     MS_obscure();
 }
index db894387037a0b39bc67e2c931c898aa49be253f..8c203f29e7d69c5ea0f317cfc787b7532e6b2868 100644 (file)
@@ -35,6 +35,7 @@
     #include "wx/panel.h"
     #include "wx/intl.h"
     #include "wx/log.h"
+    #include "wx/dcscreen.h"
 #endif
 
 #if wxUSE_DRAG_AND_DROP
@@ -43,7 +44,6 @@
 
 #include "wx/sysopt.h"
 #include "wx/mgl/private.h"
-#include "wx/dcscreen.h"
 #include "wx/caret.h"
 
 #include <mgraph.hpp>
index 0dc06f194c509dcea070c39432a7b54e4d88fd58..26d350895dd0a03440566f4e5b8e76a46e8c8698 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#include "wx/dcscreen.h"
+
 #ifndef WX_PRECOMP
    #include "wx/string.h"
    #include "wx/window.h"
@@ -23,8 +25,6 @@
 
 #include "wx/msw/private.h"
 
-#include "wx/dcscreen.h"
-
 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxDC)
 
 // Create a DC representing the whole screen
@@ -36,4 +36,3 @@ wxScreenDC::wxScreenDC()
     // DrawText() to OPAQUE as required, otherwise always TRANSPARENT
     ::SetBkMode( GetHdc(), TRANSPARENT );
 }
-
index 3bcd1f9abe7c1070d628ce12574c8f96905b1654..8896782c0272efba60f6f36405c9c9ae757661af 100644 (file)
@@ -25,6 +25,7 @@
     #include "wx/log.h"
     #include "wx/window.h"
     #include "wx/dcmemory.h"
+    #include "wx/dcscreen.h"
 #endif
 
 #include "wx/colour.h"
@@ -33,7 +34,6 @@
 #include "wx/listbox.h"
 #include "wx/ownerdrw.h"
 #include "wx/settings.h"
-#include "wx/dcscreen.h"
 
 #define INCL_PM
 #include <os2.h>
index 4cf8dcc35b6af8195720bb6b455ab8a2287cbff3..2fa80efcef84997caaec905f9fadaf61a6ab3890 100644 (file)
@@ -1,12 +1,12 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        dcscreen.cpp
+// Name:        src/os2/dcscreen.cpp
 // Purpose:     wxScreenDC class
 // Author:      David Webster
 // Modified by:
 // Created:     10/14/99
 // RCS-ID:      $Id$
 // Copyright:   (c) David Webster
-// Licence:    wxWindows licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 // For compilers that support precompilation, includes "wx.h".
 #define INCL_PM
 #include<os2.h>
 
+#include "wx/dcscreen.h"
+
 #ifndef WX_PRECOMP
-   #include "wx/string.h"
-   #include "wx/window.h"
+    #include "wx/string.h"
+    #include "wx/window.h"
 #endif
 
 #include "wx/os2/private.h"
 
-#include "wx/dcscreen.h"
-
 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
 
 // Create a DC representing the whole screen
@@ -36,17 +36,13 @@ wxScreenDC::wxScreenDC()
     ::GpiSetBackMix(m_hPS, BM_LEAVEALONE);
 } // end of wxScreenDC::wxScreenDC()
 
-void wxScreenDC::DoGetSize(
-  int*                              pnWidth
-, int*                              pnHeight
-) const
+void wxScreenDC::DoGetSize( int* pnWidth,
+                            int* pnHeight ) const
 {
     //
     // Skip wxWindowDC version because it doesn't work without a valid m_canvas
     // (which we don't have)
     //
-    wxDC::DoGetSize( pnWidth
-                    ,pnHeight
-                   );
-} // end of wxScreenDC::DoGetSize
+    wxDC::DoGetSize( pnWidth, pnHeight );
 
+} // end of wxScreenDC::DoGetSize
index 5b25f590d4a09d3d7f45abcdab9dd4a0c110ebf8..f89af8a49ab8afe977291a0b171c0f2b221e6722 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#include "wx/dcscreen.h"
+
 #ifndef WX_PRECOMP
    #include "wx/string.h"
    #include "wx/window.h"
 #endif
 
-#include "wx/dcscreen.h"
-
 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
 
 // Create a DC representing the whole screen
@@ -33,4 +33,3 @@ wxScreenDC::wxScreenDC()
 void wxScreenDC::DoGetSize(int *width, int *height) const
 {
 }
-