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

39 files changed:
src/cocoa/display.mm
src/common/socket.cpp
src/common/sysopt.cpp
src/common/url.cpp
src/common/variant.cpp
src/generic/notebook.cpp
src/gtk/utilsgtk.cpp
src/gtk/utilsres.cpp
src/gtk1/utilsgtk.cpp
src/gtk1/utilsres.cpp
src/mac/carbon/accel.cpp
src/mac/carbon/cfsocket.cpp
src/mac/carbon/display.cpp
src/mac/carbon/font.cpp
src/mac/carbon/notebmac.cpp
src/mac/carbon/sound.cpp
src/mac/classic/accel.cpp
src/mac/classic/display.cpp
src/mac/classic/font.cpp
src/mac/classic/notebmac.cpp
src/mac/classic/sound.cpp
src/mac/corefoundation/hid.cpp
src/mgl/fontenum.cpp
src/mgl/utils.cpp
src/motif/accel.cpp
src/motif/font.cpp
src/msdos/utilsdos.cpp
src/msw/dcclient.cpp
src/msw/joystick.cpp
src/msw/registry.cpp
src/msw/urlmsw.cpp
src/os2/dcclient.cpp
src/os2/dcprint.cpp
src/os2/joystick.cpp
src/palmos/dcclient.cpp
src/palmos/joystick.cpp
src/unix/fontenum.cpp
src/x11/font.cpp
src/xrc/xh_statbar.cpp

index f1d7739174e7e886db635b9b6b037478fd250fcc..0694473028426ab901bb9612b28b7f8ed957bf03 100644 (file)
 
 #if wxUSE_DISPLAY
 
+#include "wx/display.h"
+
 #ifndef WX_PRECOMP
-   #include "wx/dynarray.h"
+    #include "wx/dynarray.h"
+    #include "wx/string.h"
 #endif
 
-#include "wx/display.h"
 #include "wx/display_impl.h"
 #include "wx/gdicmn.h"
-#include "wx/string.h"
 
 #import <Foundation/Foundation.h>
 
@@ -226,4 +227,3 @@ bool wxDisplayImplMacOSX::ChangeMode(const wxVideoMode& mode)
 }
 
 #endif // wxUSE_DISPLAY
-
index 1448cbf02c4d07a7fa717b2f6ca7cd7c524168aa..da94159c173fc5104ccd1845259f1c40ff5e4a1b 100644 (file)
 
 #if wxUSE_SOCKETS
 
+#include "wx/socket.h"
+
 #ifndef WX_PRECOMP
     #include "wx/object.h"
+    #include "wx/string.h"
 #endif
 
 #include "wx/app.h"
 #include "wx/apptrait.h"
-#include "wx/string.h"
 #include "wx/timer.h"
 #include "wx/utils.h"
 #include "wx/module.h"
@@ -37,7 +39,6 @@
 #include "wx/event.h"
 
 #include "wx/sckaddr.h"
-#include "wx/socket.h"
 #include "wx/datetime.h"
 
 // DLL options compatibility check:
index 83183c926a24b0e01aecb75237dd555971c099e9..a5967226a8b6108baf176dde454c0c02d3f6d5ce 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        common/sysopt.cpp
+// Name:        src/common/sysopt.cpp
 // Purpose:     wxSystemOptions
 // Author:      Julian Smart
 // Modified by:
 
 #if wxUSE_SYSTEM_OPTIONS
 
+#include "wx/sysopt.h"
+
 #ifndef WX_PRECOMP
     #include "wx/list.h"
+    #include "wx/string.h"
 #endif
 
-#include "wx/string.h"
-#include "wx/sysopt.h"
 #include "wx/arrstr.h"
 
 // ----------------------------------------------------------------------------
@@ -86,4 +87,3 @@ bool wxSystemOptions::HasOption(const wxString& name)
 }
 
 #endif // wxUSE_SYSTEM_OPTIONS
-
index 65f2fe726511259b567b42855c4954a8af280092..084a93ca85d4509caa63e134684c54bc6384a974 100644 (file)
 
 #if wxUSE_URL
 
+#include "wx/url.h"
+
 #ifndef WX_PRECOMP
     #include "wx/list.h"
+    #include "wx/string.h"
 #endif
 
-#include "wx/string.h"
 #include "wx/utils.h"
 #include "wx/module.h"
-#include "wx/url.h"
 
 #include <string.h>
 #include <ctype.h>
index 5df645bb838e164b46438a5424a32e08d906490a..e76fbcb725b3a1045fe062d3542ccd79cb4c56ff 100644 (file)
     #pragma hdrstop
 #endif
 
+#include "wx/variant.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
+
 #if wxUSE_STD_IOSTREAM
     #if wxUSE_IOSTREAMH
         #include <fstream.h>
@@ -38,8 +44,6 @@ using namespace std ;
 #include "wx/tokenzr.h"
 #include "wx/math.h"
 
-#include "wx/variant.h"
-
 IMPLEMENT_ABSTRACT_CLASS(wxVariantData, wxObject)
 
 wxVariant WXDLLIMPEXP_BASE wxNullVariant;
index fe376a12022086889fe081e22f57a9526a26c710..b7891ecc37a7131c29a6fa7329553f6db3d03696 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
-#ifndef __WXPALMOS__
+#include  "wx/notebook.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
 
-#include  "wx/string.h"
 #include  "wx/log.h"
 #include  "wx/settings.h"
 #include  "wx/generic/imaglist.h"
-#include  "wx/notebook.h"
 #include  "wx/dcclient.h"
 #include  "wx/generic/tabg.h"
 
@@ -711,5 +713,3 @@ bool wxNotebookTabView::OnTabPreActivate(int activateId, int deactivateId)
   }
   return retval;
 }
-
-#endif // __WXPALMOS__
index cb2455bbcd8abe3cc4649d37f17606e843af3348..ae61014f023c53eee582cbc847ebb8255c56958b 100644 (file)
 #include "wx/wxprec.h"
 
 #include "wx/utils.h"
-#include "wx/string.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
 
 #include "wx/apptrait.h"
 #include "wx/intl.h"
@@ -69,12 +72,12 @@ bool wxSetDetectableAutoRepeat( bool flag )
 {
     Bool result;
     XkbSetDetectableAutoRepeat( GDK_DISPLAY(), flag, &result );
-    return result;       /* TRUE if keyboard hardware supports this mode */
+    return result;       /* true if keyboard hardware supports this mode */
 }
 #else
 bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) )
 {
-    return FALSE;
+    return false;
 }
 #endif
 
@@ -152,7 +155,7 @@ void wxGetMousePosition( int* x, int* y )
 
 bool wxColourDisplay()
 {
-    return TRUE;
+    return true;
 }
 
 int wxDisplayDepth()
@@ -256,4 +259,3 @@ int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)
 
     return tag;
 }
-
index 3efcd634f91c472156dd1b2653beae194b875a79..1b970632197f4eb8cdcdf48ae5b3ee9d8b3e8baf 100644 (file)
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
+#include "wx/utils.h"
+
 #ifndef WX_PRECOMP
     #include "wx/list.h"
+    #include "wx/string.h"
 #endif
 
-#include "wx/utils.h"
-#include "wx/string.h"
 #include "wx/log.h"
 #include "wx/config.h"
 #include "wx/app.h"
index e05a76624681cc4ea762f2829bcdd016adc0b63c..2f969d7be886fbd6384fbb99d479951325ac2dcf 100644 (file)
 #include "wx/wxprec.h"
 
 #include "wx/utils.h"
-#include "wx/string.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
 
 #include "wx/apptrait.h"
 #include "wx/intl.h"
@@ -70,12 +73,12 @@ bool wxSetDetectableAutoRepeat( bool flag )
 {
     Bool result;
     XkbSetDetectableAutoRepeat( GDK_DISPLAY(), flag, &result );
-    return result;       /* TRUE if keyboard hardware supports this mode */
+    return result;       /* true if keyboard hardware supports this mode */
 }
 #else
 bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) )
 {
-    return FALSE;
+    return false;
 }
 #endif
 
@@ -118,7 +121,7 @@ void wxGetMousePosition( int* x, int* y )
 
 bool wxColourDisplay()
 {
-    return TRUE;
+    return true;
 }
 
 int wxDisplayDepth()
@@ -194,4 +197,3 @@ int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)
 
     return tag;
 }
-
index 76deb2b6be66356a6de6bf8729614cf020c80e32..1bd989f80bcc052a362806da547b4f6dd43ca608 100644 (file)
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
+#include "wx/utils.h"
+
 #ifndef WX_PRECOMP
     #include "wx/list.h"
+    #include "wx/string.h"
 #endif
 
-#include "wx/utils.h"
-#include "wx/string.h"
 #include "wx/log.h"
 #include "wx/config.h"
 #include "wx/app.h"
index 1ca16d6c292d8a0d342fddd14376749a8b7964fe..36ea09768813ba297a38ef80c01401d3491422b0 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        accel.cpp
+// Name:        src/mac/carbon/accel.cpp
 // Purpose:     wxAcceleratorTable
 // Author:      Stefan Csomor
 // Modified by:
 #include "wx/wxprec.h"
 
 #include "wx/accel.h"
-#include "wx/string.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
 
 IMPLEMENT_DYNAMIC_CLASS(wxAcceleratorTable, wxObject)
 
@@ -99,5 +102,3 @@ int wxAcceleratorTable::GetCommand( wxKeyEvent &event )
 
     return -1;
 }
-
-
index 0916087f9707ef75d4b896297e3dceb011633d6d..205bc86ad10975ebc44695a43aec93d2352e5769 100644 (file)
 
 #if wxUSE_SOCKETS
 
+#include "wx/socket.h"
+
 #ifndef WX_PRECOMP
     #include "wx/object.h"
+    #include "wx/string.h"
 #endif
 
 #include "wx/app.h"
 #include "wx/apptrait.h"
-#include "wx/string.h"
 #include "wx/timer.h"
 #include "wx/utils.h"
 #include "wx/module.h"
@@ -32,7 +34,6 @@
 #include "wx/event.h"
 
 #include "wx/sckaddr.h"
-#include "wx/socket.h"
 #include "wx/mac/carbon/private.h"
 
 #include <sys/socket.h>
index d5af1de13a75c47c734ea9a25e2560a010dfc02c..aa3e320d348fe549402fb3b1f6cfb7011f2aec9c 100644 (file)
 
 #if wxUSE_DISPLAY
 
+#include "wx/display.h"
+
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
     #include "wx/log.h"
+    #include "wx/string.h"
 #endif
 
 #ifdef __DARWIN__
     #include <Debugging.h>
 #endif
 
-#include "wx/display.h"
 #include "wx/display_impl.h"
 #include "wx/gdicmn.h"
-#include "wx/string.h"
 
 // ----------------------------------------------------------------------------
 // display classes implementation
index 47ceb2e5b17c34947a0609b1bda7054c4043ab1f..5ea34328773fb38494eb83c1c613cf8f0cfafe3e 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        font.cpp
+// Name:        src/mac/carbon/font.cpp
 // Purpose:     wxFont class
 // Author:      Stefan Csomor
 // Modified by:
 
 #include "wx/wxprec.h"
 
-#include "wx/string.h"
 #include "wx/font.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
+
 #include "wx/fontutil.h"
 #include "wx/gdicmn.h"
 #include "wx/utils.h"
@@ -39,7 +43,7 @@ public:
         , m_family(wxDEFAULT)
         , m_style(wxNORMAL)
         , m_weight(wxNORMAL)
-        , m_underlined(FALSE)
+        , m_underlined(false)
         , m_faceName(wxT("applicationfont"))
         , m_encoding(wxFONTENCODING_DEFAULT)
         , m_macFontNum(0)
@@ -216,7 +220,7 @@ void wxFontRefData::MacFindFont()
     }
     else
     {
-        if ( m_faceName.Length() == 0 )
+        if ( m_faceName.empty() )
         {
             switch ( m_family )
             {
@@ -637,4 +641,3 @@ const wxNativeFontInfo * wxFont::GetNativeFontInfo() const
 
     return &(M_FONTDATA->m_info);
 }
-
index df02de6a4b2cc5f20549cfa9e574e0e5cd3f5eb1..26decfafb24c22c97052d55631b757573e19504f 100644 (file)
 
 #if wxUSE_NOTEBOOK
 
+#include "wx/notebook.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
+
 #include "wx/app.h"
 #include "wx/string.h"
 #include "wx/log.h"
 #include "wx/imaglist.h"
 #include "wx/image.h"
-#include "wx/notebook.h"
 #include "wx/mac/uma.h"
 
 
@@ -96,18 +101,18 @@ bool wxNotebook::Create( wxWindow *parent,
     ControlTabSize tabsize;
     switch (GetWindowVariant())
     {
-       case wxWINDOW_VARIANT_MINI:
+        case wxWINDOW_VARIANT_MINI:
             if ( UMAGetSystemVersion() >= 0x1030 )
                 tabsize = 3 ;
             else
                 tabsize = kControlSizeSmall;
             break;
 
-       case wxWINDOW_VARIANT_SMALL:
+        case wxWINDOW_VARIANT_SMALL:
             tabsize = kControlTabSizeSmall;
             break;
 
-       default:
+        default:
             tabsize = kControlTabSizeLarge;
             break;
     }
@@ -323,11 +328,11 @@ int wxNotebook::HitTest(const wxPoint& pt, long * flags) const
     const int countPages = GetPageCount();
 
     // we have to convert from Client to Window relative coordinates
-    wxPoint adjustedPt = pt + GetClientAreaOrigin(); 
+    wxPoint adjustedPt = pt + GetClientAreaOrigin();
     // and now to HIView native ones
     adjustedPt.x -= MacGetLeftBorderSize() ;
     adjustedPt.y -= MacGetTopBorderSize() ;
-    
+
     HIPoint hipoint= { adjustedPt.x , adjustedPt.y } ;
     HIViewPartCode outPart = 0 ;
     OSStatus err = HIViewGetPartHit( m_peer->GetControlRef(), &hipoint, &outPart );
index 78a0b6fba9a44ccb8b336433dc4ec88cce1c66dc..32147daa8a3fd92882115192483954a282ef85fe 100644 (file)
 
 #if wxUSE_SOUND
 
+#include "wx/sound.h"
+
 #ifndef WX_PRECOMP
     #include "wx/object.h"
+    #include "wx/string.h"
 #endif
 
-#include "wx/string.h"
 #include "wx/log.h"
 #include "wx/file.h"
-#include "wx/sound.h"
 #include "wx/timer.h"
 #include "wx/intl.h"
 
index ce99c542e6bf1e4d294a0d537338b74059d4bc22..89ac19e52186e2a7e9e7f4ca9d2115141da75552 100644 (file)
 #include "wx/wxprec.h"
 
 #include "wx/accel.h"
-#include "wx/string.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
 
 IMPLEMENT_DYNAMIC_CLASS(wxAcceleratorTable, wxObject)
 
@@ -47,7 +50,7 @@ wxAcceleratorRefData::wxAcceleratorRefData()
 
 wxAcceleratorRefData::~wxAcceleratorRefData()
 {
-    m_accels.DeleteContents( TRUE );
+    m_accels.DeleteContents( true );
 }
 
 wxAcceleratorTable::wxAcceleratorTable()
index 9798492bc9e0959eecaaad92207691dfd57a2f03..f216f1fd65d696d59875cc69546193cf4b9a36af 100644 (file)
 
 #if wxUSE_DISPLAY
 
+#include "wx/display.h"
+
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
     #include "wx/log.h"
+    #include "wx/string.h"
 #endif
 
 #ifdef __DARWIN__
     #include <FixMath.h>
 #endif
 
-#include "wx/display.h"
 #include "wx/display_impl.h"
 #include "wx/gdicmn.h"
-#include "wx/string.h"
 
 // ----------------------------------------------------------------------------
 // display implementation classes
index 7f4f120eb8ad291571a420a4898ad93625a6b1dd..42445ce21a4629516bb43fc46daeed73ecb3adb8 100644 (file)
     #pragma hdrstop
 #endif
 
-#include "wx/string.h"
 #include "wx/font.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
+
 #include "wx/fontutil.h"
 #include "wx/gdicmn.h"
 #include "wx/utils.h"
@@ -166,7 +170,7 @@ wxFontRefData::~wxFontRefData()
 
 void wxFontRefData::MacFindFont()
 {
-    if( m_faceName.Length() == 0 )
+    if( m_faceName.empty() )
     {
         switch( m_family )
         {
index 7edae0f4e6dcee0c872315b1973017213288276c..02c1dd550103076d10635ab4df86700eef6d4c90 100644 (file)
@@ -9,6 +9,8 @@
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
+#include "wx/wxprec.h"
+
 // ============================================================================
 // declarations
 // ============================================================================
 // ----------------------------------------------------------------------------
 // headers
 // ----------------------------------------------------------------------------
+
+#include "wx/notebook.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
+
 #include "wx/app.h"
-#include "wx/string.h"
 #include "wx/log.h"
 #include "wx/imaglist.h"
 #include "wx/image.h"
-#include "wx/notebook.h"
 #include "wx/mac/uma.h"
 // ----------------------------------------------------------------------------
 // macros
index 5698858cfd9db5a852ca3f0e07c2cb186bef6425..8f3eed837ebd47b4a2f83db222de4bd19c7edf3a 100644 (file)
 
 #if wxUSE_SOUND
 
+#include "wx/sound.h"
+
 #ifndef WX_PRECOMP
     #include "wx/object.h"
+    #include "wx/string.h"
 #endif
 
-#include "wx/string.h"
-#include "wx/sound.h"
-
 #ifdef __WXMAC__
 #include "wx/mac/private.h"
 #ifndef __DARWIN__
index 276571c883f166d8ff9b342f6f5aee13ebad88a5..e4577b1c98ec36cab3c21295d023109235355ce9 100644 (file)
 //DARWIN _ONLY_
 #ifdef __DARWIN__
 
+#include "wx/mac/corefoundation/hid.h"
+
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
+    #include "wx/string.h"
 #endif
 
-#include "wx/mac/corefoundation/hid.h"
-#include "wx/string.h"
 #include "wx/log.h"
 #include "wx/mac/corefoundation/cfstring.h"
 
index 2bc8300d3315c39c9e50e7736bc61d66c06214c3..044e47185112db0498c7fa3639443a984205ec87 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
+#include "wx/fontenum.h"
+
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
+    #include "wx/string.h"
 #endif
 
-#include "wx/string.h"
 #include "wx/utils.h"
 
-#include "wx/fontenum.h"
 #include "wx/encinfo.h"
 #include "wx/fontutil.h"
 
index fd2e5c63c73e0c0417e432908cffb3bd905a6c1e..d72278809802e3e920c04499c5ec92b5f7e94013 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        utils.cpp
+// Name:        src/mgl/utils.cpp
 // Purpose:
 // Author:      Vaclav Slavik
 // Id:          $Id$
 #endif
 
 #include "wx/utils.h"
-#include "wx/string.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
 
 #include "wx/intl.h"
 #include "wx/apptrait.h"
index e6769cd37c42d9a6e766376598c3494bfa4fc582..c1e6426f2225f2be37798f3a2dca699c58cbbe11 100644 (file)
 #include "wx/wxprec.h"
 
 #include "wx/accel.h"
-#include "wx/string.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
+
 #include "wx/utils.h"
 #include <ctype.h>
 
index a0a1c809b90dedc3f510392b16c1b86017d49988..f4653d60ade41486526cbbe0aed7420cd027a843 100644 (file)
 #pragma message enable nosimpint
 #endif
 
-#include "wx/string.h"
 #include "wx/font.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
+
 #include "wx/gdicmn.h"
 #include "wx/utils.h"       // for wxGetDisplay()
 #include "wx/fontutil.h"    // for wxNativeFontInfo
index c8b1151512820291ff3d85d2526d572077ed3ca0..0c818dbc805cc42cd3564a62ba3616388fa2a2cf 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        utils.cpp
+// Name:        src/msdos/utils.cpp
 // Purpose:     DOS implementations of utility functions
 // Author:      Vaclav Slavik, M.J.Wetherell
 // Id:          $Id$
 #endif
 
 #include "wx/utils.h"
-#include "wx/string.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
 
 #include "wx/intl.h"
 #include "wx/apptrait.h"
@@ -85,12 +88,12 @@ bool wxGetEnv(const wxString& var, wxString *value)
     // wxGetenv is defined as getenv()
     wxChar *p = wxGetenv(var);
     if ( !p )
-        return FALSE;
+        return false;
 
     if ( value )
         *value = p;
 
-    return TRUE;
+    return true;
 }
 
 bool wxSetEnv(const wxString& variable, const wxChar *value)
@@ -233,7 +236,7 @@ bool wxGetUserName(wxChar *buf, int n)
 bool wxGetHostName(wxChar *buf, int n)
 {
     const wxChar *host = wxGetenv(_T("ComputerName"));
-    
+
     if (!host)
         host = wxGetenv(_T("HOSTNAME"));
 
@@ -318,7 +321,7 @@ long wxExecute(const wxString& command, int flags, wxProcess *process)
 #if wxUSE_STREAMS
 
 // A wxFFileInputStream that deletes the file in it's destructor
-// 
+//
 class wxTempFileInStream : public wxFFileInputStream
 {
 public:
index d318904387a3f5e4b66b1a1d463b44442ae76288..080af680d291fb8cd233c596bf9c5e09946ddcda 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        dcclient.cpp
+// Name:        src/msw/dcclient.cpp
 // Purpose:     wxClientDC class
 // Author:      Julian Smart
 // Modified by:
     #pragma hdrstop
 #endif
 
-#include "wx/string.h"
+#include "wx/dcclient.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
+
 #include "wx/log.h"
 #include "wx/window.h"
 
 #include "wx/msw/private.h"
 
-#include "wx/dcclient.h"
-
 // ----------------------------------------------------------------------------
 // array/list types
 // ----------------------------------------------------------------------------
@@ -353,4 +356,3 @@ wxPaintDCEx::~wxPaintDCEx()
     // prevent the base class dtor from ReleaseDC()ing it again
     m_hDC = 0;
 }
-
index 294447cb0a73b4f844bc8c75c385fdce588f2206..51e617809459baca011d51245d147ac6fa6b5196 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
 #if wxUSE_JOYSTICK
 
 #include "wx/joystick.h"
-#include "wx/string.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
+
 #include "wx/window.h"
 #include "wx/msw/private.h"
 
index 010ff1d301b440a6b94eebee2e23da22d419a68e..c2aab338a665ba9cdc037cd7e7ccf60688acbf1c 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        msw/registry.cpp
+// Name:        src/msw/registry.cpp
 // Purpose:     implementation of registry classes and functions
 // Author:      Vadim Zeitlin
 // Modified by:
 #include  "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
+#endif
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
 #endif
 
-// other wxWidgets headers
-#include  "wx/string.h"
 #include  "wx/intl.h"
 #include  "wx/log.h"
 #include  "wx/file.h"
@@ -1413,4 +1415,3 @@ void RemoveTrailingSeparator(wxString& str)
   if ( !str.empty() && str.Last() == REG_SEPARATOR )
     str.Truncate(str.Len() - 1);
 }
-
index 891cdb6bc01596a55eff4c5be9c447d3f1b5de00..d99a47840451a3b32e307ec71d2d42827125ad2f 100644 (file)
@@ -20,6 +20,7 @@
 
 #ifndef WX_PRECOMP
     #include "wx/list.h"
+    #include "wx/string.h"
 #endif
 
 #if !wxUSE_PROTOCOL_HTTP
@@ -63,7 +64,6 @@ USE_PROTOCOL(wxHTTPDummyProto)
     #pragma comment(lib, "wininet.lib")
 #endif
 
-#include "wx/string.h"
 #include "wx/utils.h"
 #include "wx/module.h"
 #include "wx/url.h"
index 81007873df5b8a8e7ed84a7730e22e612a006ccf..24de249cc2b8ac359aaf0e9ab3a4ee14c4251f99 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        dcclient.cpp
+// Name:        src/os2/dcclient.cpp
 // Purpose:     wxClientDC class
 // Author:      David Webster
 // Modified by:
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/string.h"
+#include "wx/dcclient.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
+
 #include "wx/log.h"
 #include "wx/window.h"
 #include "wx/app.h"
 
 #include "wx/os2/private.h"
 
-#include "wx/dcclient.h"
-
 // ----------------------------------------------------------------------------
 // array/list types
 // ----------------------------------------------------------------------------
@@ -362,7 +365,7 @@ wxPaintDC::wxPaintDC(
                                 );
         }
 
-        m_bIsPaintTime   = TRUE;
+        m_bIsPaintTime   = true;
         ms_cache.Add(new wxPaintDCInfo(m_pCanvas, this));
     }
     InitDC();
@@ -383,7 +386,7 @@ wxPaintDC::~wxPaintDC()
         {
             ::WinEndPaint(m_hPS);
             m_hPS          = m_hOldPS;
-            m_bIsPaintTime = FALSE;
+            m_bIsPaintTime = false;
             ms_cache.RemoveAt(nIndex);
         }
         //else: cached DC entry is still in use
@@ -431,4 +434,3 @@ WXHDC wxPaintDC::FindDCInCache(
     }
     return 0;
 } // end of wxPaintDC::FindInCache
-
index 87c745f2e8a7f1c69baa708abb0f1b469f7a68ea..655622d16f35f25be094df564710a29aa3158b4f 100644 (file)
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
+#if wxUSE_PRINTING_ARCHITECTURE
+
 #define INCL_DEV
 #define INCL_GPI
 #define INCL_PM
 #include<os2.h>
 
+#include "wx/dcprint.h"
+
 #ifndef WX_PRECOMP
-#include "wx/app.h"
-#include "wx/math.h"
+    #include "wx/app.h"
+    #include "wx/math.h"
+    #include "wx/string.h"
 #endif
 
-#include "wx/string.h"
 #include "wx/log.h"
 #include "wx/window.h"
 #include "wx/os2/private.h"
-#include "wx/dcprint.h"
-
-#if wxUSE_PRINTING_ARCHITECTURE
 
 IMPLEMENT_CLASS(wxPrinterDC, wxDC)
 
index 6fef9a01160ea1cf1cf1eb5e3cfa9df056649fee..c86cb881a63d933c343c89a483944e150621aea5 100644 (file)
@@ -9,14 +9,17 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-//
 // For compilers that support precompilation, includes "wx.h".
-//
 #include "wx/wxprec.h"
 
 #if wxUSE_JOYSTICK
 
-#include "wx/string.h"
+#include "wx/joystick.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
+
 #define INCL_PM
 #define INCL_DOS
 #include "wx/os2/private.h"
@@ -24,7 +27,6 @@
 #define NO_JOYGETPOSEX
 
 #include "wx/window.h"
-#include "wx/joystick.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject)
 
@@ -287,4 +289,5 @@ bool wxJoystick::ReleaseCapture()
     // TODO
     return false;
 }
+
 #endif  // wxUSE_JOYSTICK
index e7a6817db9379dc25d5b499243620e93a92fcf46..8a07a7b2ce37a6e483e53a32f53c2222ad27ce14 100644 (file)
     #pragma hdrstop
 #endif
 
-#include "wx/string.h"
+#include "wx/dcclient.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
+
 #include "wx/log.h"
 #include "wx/window.h"
 
-#include "wx/dcclient.h"
-
 // ----------------------------------------------------------------------------
 // array/list types
 // ----------------------------------------------------------------------------
@@ -156,4 +159,3 @@ wxPaintDCEx::wxPaintDCEx(wxWindow *canvas, WXHDC dc) : saveState(0)
 wxPaintDCEx::~wxPaintDCEx()
 {
 }
-
index cfceba1191cd5967c95ca65da5530f4e569b0960..f189adc7cd6e773c7b630145302928df0eea0d1d 100644 (file)
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#ifdef __BORLANDC__
-#pragma hdrstop
+#if wxUSE_JOYSTICK
+
+#include "wx/joystick.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
 #endif
 
-#include "wx/string.h"
 #include "wx/window.h"
-#include "wx/palmos/joystick.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject)
 
@@ -27,7 +29,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject)
 
 wxJoystick::wxJoystick(int joystick)
 {
-};
+}
 
 wxPoint wxJoystick::GetPosition() const
 {
@@ -245,3 +247,4 @@ bool wxJoystick::ReleaseCapture()
     return false;
 }
 
+#endif  // wxUSE_JOYSTICK
index a72dfdf81e8eb56e0cfb5d2da8a775e403a6bce0..98215d294518d16c261c80d89d3c11f266b37137 100644 (file)
 // for compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
+#include "wx/fontenum.h"
+
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
+    #include "wx/string.h"
 #endif
 
-#include "wx/string.h"
 #include "wx/regex.h"
 #include "wx/utils.h"
 #include "wx/app.h"
 #include "wx/fontmap.h"
-#include "wx/fontenum.h"
 #include "wx/fontutil.h"
 #include "wx/encinfo.h"
 
index f982eb15fe54090b553495eddd116d2108d0e116..c1e764679674a4dbb586716df66d561b1d419cde 100644 (file)
 #pragma message enable nosimpint
 #endif
 
-#include "wx/string.h"
 #include "wx/font.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
+
 #include "wx/gdicmn.h"
 #include "wx/utils.h"       // for wxGetDisplay()
 #include "wx/fontutil.h"    // for wxNativeFontInfo
index d5b4fbfa4d04debf906bb410b09fa1b804717b4b..c49c0c33a4a26852fe7e471b0508f3a5f5b5256c 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        xh_statbar.cpp
+// Name:        src/xrc/xh_statbar.cpp
 // Purpose:     XRC resource for wxStatusBar
 // Author:      Brian Ravnsgaard Riis
 // Created:     2004/01/21
 
 #if wxUSE_XRC && wxUSE_STATUSBAR
 
+#include "wx/xrc/xh_statbar.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+#endif
+
 #include "wx/frame.h"
-#include "wx/string.h"
 #include "wx/log.h"
 
-#include "wx/xrc/xh_statbar.h"
 #include "wx/statusbr.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxStatusBarXmlHandler, wxXmlResourceHandler)
@@ -62,7 +66,7 @@ wxObject *wxStatusBarXmlHandler::DoCreateResource()
     else
         statbar->SetFieldsCount(fields);
 
-    if (!styles.IsEmpty())
+    if (!styles.empty())
     {
         int *style = new int[fields];
         for (int i = 0; i < fields; ++i)
@@ -77,7 +81,7 @@ wxObject *wxStatusBarXmlHandler::DoCreateResource()
             else if (first == wxT("wxSB_RAISED"))
                 style[i] = wxSB_RAISED;
 
-            if (!first.IsEmpty())
+            if (!first.empty())
                 wxLogError(wxT("Error in resource, unknown statusbar field style: ") + first);
             if(styles.Find(wxT(',')))
                 styles.Remove(0, styles.Find(wxT(',')) + 1);
@@ -102,4 +106,3 @@ bool wxStatusBarXmlHandler::CanHandle(wxXmlNode *node)
 }
 
 #endif // wxUSE_XRC && wxUSE_STATUSBAR
-