]> git.saurik.com Git - wxWidgets.git/commitdiff
Include wx/intl.h according to precompiled headers of wx/wx.h (with other minor clean...
authorWłodzimierz Skiba <abx@abx.art.pl>
Tue, 25 Apr 2006 14:38:19 +0000 (14:38 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Tue, 25 Apr 2006 14:38:19 +0000 (14:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

106 files changed:
src/common/config.cpp
src/common/datetime.cpp
src/common/dynarray.cpp
src/common/imagjpeg.cpp
src/common/imagpnm.cpp
src/common/imagtiff.cpp
src/common/mimecmn.cpp
src/common/module.cpp
src/common/sizer.cpp
src/common/socket.cpp
src/common/stockitem.cpp
src/common/zstream.cpp
src/generic/dbgrptg.cpp
src/generic/dcpsg.cpp
src/generic/dirctrlg.cpp
src/generic/dragimgg.cpp
src/generic/filedlgg.cpp
src/gtk/app.cpp
src/gtk/combobox.cpp
src/gtk/dnd.cpp
src/gtk/filedlg.cpp
src/gtk/fontdlg.cpp
src/gtk/listbox.cpp
src/gtk/mdi.cpp
src/gtk/menu.cpp
src/gtk/msgdlg.cpp
src/gtk/notebook.cpp
src/gtk/textctrl.cpp
src/gtk/utilsgtk.cpp
src/gtk/window.cpp
src/gtk1/app.cpp
src/gtk1/combobox.cpp
src/gtk1/dnd.cpp
src/gtk1/fontdlg.cpp
src/gtk1/listbox.cpp
src/gtk1/mdi.cpp
src/gtk1/menu.cpp
src/gtk1/notebook.cpp
src/gtk1/textctrl.cpp
src/gtk1/utilsgtk.cpp
src/gtk1/window.cpp
src/mac/carbon/app.cpp
src/mac/carbon/cfsocket.cpp
src/mac/carbon/clipbrd.cpp
src/mac/carbon/dataobj.cpp
src/mac/carbon/filedlg.cpp
src/mac/carbon/fontdlgosx.mm
src/mac/carbon/fontenum.cpp
src/mac/carbon/mimetmac.cpp
src/mac/carbon/msgdlg.cpp
src/mac/carbon/sound.cpp
src/mac/carbon/textctrl.cpp
src/mac/carbon/utils.cpp
src/mac/classic/app.cpp
src/mac/classic/clipbrd.cpp
src/mac/classic/filedlg.cpp
src/mac/classic/mimetmac.cpp
src/mac/classic/msgdlg.cpp
src/mac/classic/utils.cpp
src/mgl/bitmap.cpp
src/mgl/cursor.cpp
src/mgl/utils.cpp
src/mgl/window.cpp
src/motif/app.cpp
src/motif/dnd.cpp
src/motif/filedlg.cpp
src/motif/msgdlg.cpp
src/msdos/mimetype.cpp
src/msdos/utilsdos.cpp
src/msw/dib.cpp
src/msw/dragimag.cpp
src/msw/imaglist.cpp
src/msw/mimetype.cpp
src/msw/registry.cpp
src/msw/statbr95.cpp
src/msw/window.cpp
src/os2/mimetype.cpp
src/os2/thread.cpp
src/os2/timer.cpp
src/os2/utils.cpp
src/os2/window.cpp
src/palmos/datectrl.cpp
src/palmos/dib.cpp
src/palmos/dragimag.cpp
src/palmos/imaglist.cpp
src/palmos/statbrpalm.cpp
src/palmos/window.cpp
src/richtext/richtextxml.cpp
src/unix/dialup.cpp
src/unix/displayx11.cpp
src/unix/mimetype.cpp
src/unix/threadpsx.cpp
src/unix/utilsunx.cpp
src/x11/app.cpp
src/x11/dnd.cpp
src/x11/textctrl.cpp
src/xml/xml.cpp
src/xrc/xh_chckl.cpp
src/xrc/xh_choic.cpp
src/xrc/xh_combo.cpp
src/xrc/xh_dlg.cpp
src/xrc/xh_frame.cpp
src/xrc/xh_listb.cpp
src/xrc/xh_mdi.cpp
src/xrc/xh_radbx.cpp
src/xrc/xmlres.cpp

index 62013b23e4cf72010a1ec3bd7bfb744be7d8ffe1..62c14b241460dfad2aee3b704207ef21d16dddef 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        config.cpp
+// Name:        src/common/config.cpp
 // Purpose:     implementation of wxConfigBase class
 // Author:      Vadim Zeitlin
 // Modified by:
@@ -16,8 +16,8 @@
 
 #include "wx/wxprec.h"
 
-#ifdef    __BORLANDC__
-  #pragma hdrstop
+#ifdef __BORLANDC__
+    #pragma hdrstop
 #endif  //__BORLANDC__
 
 #ifndef wxUSE_CONFIG_NATIVE
 #endif
 
 #include "wx/config.h"
-#include "wx/intl.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif //WX_PRECOMP
+
 #include "wx/log.h"
 #include "wx/arrstr.h"
 
@@ -447,5 +451,3 @@ void wxSplitPath(wxArrayString& aParts, const wxChar *sz)
     pc++;
   }
 }
-
-
index 1873b018468006777a0ecab19d90a0c72ac7d19e..b27c1010bb651f8ae429539d718d1bf40ac06d33 100644 (file)
@@ -68,9 +68,9 @@
 #ifndef WX_PRECOMP
     #include "wx/string.h"
     #include "wx/log.h"
+    #include "wx/intl.h"
 #endif // WX_PRECOMP
 
-#include "wx/intl.h"
 #include "wx/thread.h"
 #include "wx/tokenzr.h"
 #include "wx/module.h"
@@ -2403,40 +2403,42 @@ wxString wxDateTime::Format(const wxChar *format, const TimeZone& tz) const
                         {
                             nLostWeekDays += year++ % 4 ? 1 : 2;
                         }
-                       
-                       // Keep year below 2000 so the 2digit year number
-                       // can never match the month or day of the month
-                       if (year>=2000) year-=28;
+
+                        // Keep year below 2000 so the 2digit year number
+                        // can never match the month or day of the month
+                        if (year>=2000) year-=28;
                         // at any rate, we couldn't go further than 1988 + 9 + 28!
                         wxASSERT_MSG( year < 2030,
                                       _T("logic error in wxDateTime::Format") );
 
-                       wxString strYear, strYear2;
+                        wxString strYear, strYear2;
                         strYear.Printf(_T("%d"), year);
                         strYear2.Printf(_T("%d"), year % 100);
-       
+
                         // find four strings not occurring in format (this is surely
                         // not the optimal way of doing it... improvements welcome!)
                         wxString fmt2 = format;
-                       wxString replacement,replacement2,replacement3,replacement4;
-                       for (int rnr=1; rnr<5 ; rnr++) {
-                               wxString r = (wxChar)-rnr;
-                               while ( fmt2.Find(r) != wxNOT_FOUND )
-                               {
-                                   r << (wxChar)-rnr;
-                               }
-
-                               switch (rnr) {
-                                       case 1: replacement=r; break;
-                                       case 2: replacement2=r; break;
-                                       case 3: replacement3=r; break;
-                                       case 4: replacement4=r; break;
-                               }
-                       }
+                        wxString replacement,replacement2,replacement3,replacement4;
+                        for (int rnr=1; rnr<5 ; rnr++)
+                        {
+                            wxString r = (wxChar)-rnr;
+                            while ( fmt2.Find(r) != wxNOT_FOUND )
+                            {
+                                r << (wxChar)-rnr;
+                            }
+
+                            switch (rnr)
+                            {
+                                case 1: replacement=r; break;
+                                case 2: replacement2=r; break;
+                                case 3: replacement3=r; break;
+                                case 4: replacement4=r; break;
+                            }
+                        }
                         // replace all occurrences of year with it
                         bool wasReplaced = fmt2.Replace(strYear, replacement) > 0;
                         // evaluation order ensures we always attempt the replacement.
-                       wasReplaced = (fmt2.Replace(strYear2, replacement2) > 0) | wasReplaced ;
+                        wasReplaced = (fmt2.Replace(strYear2, replacement2) > 0) | wasReplaced ;
 
                         // use strftime() to format the same date but in supported
                         // year
@@ -2461,10 +2463,10 @@ wxString wxDateTime::Format(const wxChar *format, const TimeZone& tz) const
                                                     &tmAdjusted);
 
                         // now replace the occurrence of 1999 with the real year
-                       // we do this in two stages to stop the 2 digit year
-                       // matching any substring of the 4 digit year.
-                       // Any day,month hours and minutes components should be safe due
-                       // to ensuring the range of the years.
+                        // we do this in two stages to stop the 2 digit year
+                        // matching any substring of the 4 digit year.
+                        // Any day,month hours and minutes components should be safe due
+                        // to ensuring the range of the years.
                         wxString strYearReal, strYearReal2;
                         strYearReal.Printf(_T("%04d"), yearReal);
                         strYearReal2.Printf(_T("%02d"), yearReal % 100);
index ead8099c32aa42ca7be372d89d46b4487de4a1ce..c856a651f64fbb57327357eb5eb55d3eb532b946 100644 (file)
 
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
+    #include "wx/intl.h"
 #endif //WX_PRECOMP
 
-#include "wx/intl.h"
-
 #include <stdlib.h>
 #include <string.h> // for memmove
 
index 9892a3fcc2d7cbb2c5b4550a6548e5d1ab0b0eae..790dc681212cb289a340f95702d984bdcb221f67 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
 #if wxUSE_IMAGE && wxUSE_LIBJPEG
 
+#include "wx/imagjpeg.h"
+
 #ifndef WX_PRECOMP
     #include "wx/log.h"
     #include "wx/app.h"
+    #include "wx/intl.h"
 #endif
 
-#include "wx/imagjpeg.h"
 #include "wx/bitmap.h"
 #include "wx/debug.h"
 
@@ -45,7 +47,6 @@ extern "C"
 
 #include "wx/filefn.h"
 #include "wx/wfstream.h"
-#include "wx/intl.h"
 #include "wx/module.h"
 
 // For memcpy
index 86884d7d09f487f2fb7a791fb88a329860ebef63..15b611ee645777adb64fdd40a9b5fed792d7193e 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-
-#ifndef WX_PRECOMP
+    #pragma hdrstop
 #endif
 
 #if wxUSE_IMAGE && wxUSE_PNM
 
 #include "wx/imagpnm.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/log.h"
-#include "wx/intl.h"
 #include "wx/txtstrm.h"
 
 //-----------------------------------------------------------------------------
index ed0ec204b77f790f5a92935e3d103818adfd1aa5..7662ccf86c9e1afc38e606cc6e6e8aa88d834af0 100644 (file)
 
 #if wxUSE_IMAGE && wxUSE_LIBTIFF
 
+#include "wx/imagtiff.h"
+
 #ifndef WX_PRECOMP
     #include "wx/log.h"
     #include "wx/app.h"
+    #include "wx/intl.h"
 #endif
 
-#include "wx/imagtiff.h"
 #include "wx/bitmap.h"
 #include "wx/debug.h"
 extern "C"
@@ -31,7 +33,6 @@ extern "C"
 }
 #include "wx/filefn.h"
 #include "wx/wfstream.h"
-#include "wx/intl.h"
 #include "wx/module.h"
 
 #ifndef TIFFLINKAGEMODE
index 326eefa0af26ce3b81554f1d63d094b400926e79..44f0fbe1087da998ef50aea5f3bbf2250f768ef2 100644 (file)
 
 #if wxUSE_MIMETYPE
 
+#include "wx/mimetype.h"
+
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
     #include "wx/string.h"
+    #include "wx/intl.h"
 #endif //WX_PRECOMP
 
 #include "wx/module.h"
 #include "wx/log.h"
 #include "wx/file.h"
 #include "wx/iconloc.h"
-#include "wx/intl.h"
 #include "wx/confbase.h"
 
-#include "wx/mimetype.h"
-
 // other standard headers
 #include <ctype.h>
 
index e4eb228f237caa3550aba9866f56777efeef566e..aebe228545e2fefd5f533ed56b4e0b26467ee4b0 100644 (file)
     #pragma hdrstop
 #endif
 
+#include "wx/module.h"
+
 #ifndef WX_PRECOMP
     #include "wx/hash.h"
+    #include "wx/intl.h"
 #endif
 
-#include "wx/module.h"
-#include "wx/intl.h"
 #include "wx/log.h"
 #include "wx/listimpl.cpp"
 
index 1d9e4c216b56d2a7379f45e8fa53acab16494d07..d52151ef33c4d03f4449f48ed480ff52c857b83f 100644 (file)
@@ -28,7 +28,7 @@
 #include "wx/statbox.h"
 #include "wx/settings.h"
 #include "wx/listimpl.cpp"
-#include "wx/intl.h"
+
 #if WXWIN_COMPATIBILITY_2_4
     #include "wx/notebook.h"
 #endif
index da94159c173fc5104ccd1845259f1c40ff5e4a1b..65eb47d40406064d1d892d83c4bf67cacd475bdd 100644 (file)
@@ -27,6 +27,7 @@
 #ifndef WX_PRECOMP
     #include "wx/object.h"
     #include "wx/string.h"
+    #include "wx/intl.h"
 #endif
 
 #include "wx/app.h"
@@ -35,7 +36,6 @@
 #include "wx/utils.h"
 #include "wx/module.h"
 #include "wx/log.h"
-#include "wx/intl.h"
 #include "wx/event.h"
 
 #include "wx/sckaddr.h"
index c1b7d71ad8f51c5fab8c0e7dcc9854fcf9a2c326..a43f3a435a449909b53883fe9f511b6e431cb4af 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        common/stockitem.cpp
+// Name:        src/common/stockitem.cpp
 // Purpose:     Stock buttons, menu and toolbar items labels
 // Author:      Vaclav Slavik
 // Modified by:
 #endif
 
 #include "wx/stockitem.h"
-#include "wx/intl.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/utils.h" // for wxStripMenuCodes()
 
 bool wxIsStockID(wxWindowID id)
index 0b4878cf9182594e327361b924a7d775f6e8af01..f3b4ffc4dd83d834f6f69aa9c5422f774273be41 100644 (file)
@@ -1,5 +1,5 @@
 //////////////////////////////////////////////////////////////////////////////
-// Name:        zstream.cpp
+// Name:        src/common/zstream.cpp
 // Purpose:     Compressed stream classes
 // Author:      Guilhem Lavaux
 // Modified by: Mike Wetherell
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-  #pragma hdrstop
+    #pragma hdrstop
 #endif
 
 #if wxUSE_ZLIB && wxUSE_STREAMS
 
 #include "wx/zstream.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/utils.h"
-#include "wx/intl.h"
 #include "wx/log.h"
 
 // normally, the compiler options should contain -I../zlib, but it is
@@ -331,4 +335,3 @@ size_t wxZlibOutputStream::OnSysWrite(const void *buffer, size_t size)
 
 #endif
   // wxUSE_ZLIB && wxUSE_STREAMS
-
index f4f89178bd4806cfc13b923caa9102e4ad8e966f..6cd857510774297142531170511c8d3b444271b3 100644 (file)
     #pragma hdrstop
 #endif
 
+#if wxUSE_DEBUGREPORT && wxUSE_XML
+
+#include "wx/debugrpt.h"
+
 #ifndef WX_PRECOMP
     #include "wx/sizer.h"
     #include "wx/checklst.h"
     #include "wx/textctrl.h"
+    #include "wx/intl.h"
 #endif // WX_PRECOMP
 
-#if wxUSE_DEBUGREPORT && wxUSE_XML
-
-#include "wx/debugrpt.h"
-
-#include "wx/intl.h"
 #include "wx/filename.h"
 #include "wx/ffile.h"
 #include "wx/mimetype.h"
@@ -512,4 +512,4 @@ bool wxDebugReportPreviewStd::Show(wxDebugReport& dbgrpt) const
     return dlg.ShowModal() == wxID_OK && dbgrpt.GetFilesCount() != 0;
 }
 
-#endif // wxUSE_DEBUGREPORT
+#endif // wxUSE_DEBUGREPORT && wxUSE_XML
index ff50f091200aae35f2bd34c6da71bbf97072b747..86d9c8ac6822e6dc50a4c781afe8896854e3cf68 100644 (file)
     #pragma hdrstop
 #endif
 
-#ifndef WX_PRECOMP
-#endif // WX_PRECOMP
+#if wxUSE_PRINTING_ARCHITECTURE && wxUSE_POSTSCRIPT
 
-#if wxUSE_PRINTING_ARCHITECTURE
+#include "wx/generic/dcpsg.h"
 
-#if wxUSE_POSTSCRIPT
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif // WX_PRECOMP
 
 #include "wx/dcmemory.h"
 #include "wx/utils.h"
-#include "wx/intl.h"
 #include "wx/app.h"
 #include "wx/image.h"
 #include "wx/log.h"
-#include "wx/generic/dcpsg.h"
 #include "wx/prntbase.h"
 #include "wx/generic/prntdlgg.h"
 #include "wx/paper.h"
@@ -1048,8 +1047,8 @@ void wxPostScriptDC::SetPen( const wxPen& pen )
                 PsPrint( buffer );
             }
             PsPrint ("] 0 setdash\n");
-            psdash = 0; 
-        } 
+            psdash = 0;
+        }
         break;
         case wxSOLID:
         case wxTRANSPARENT:
@@ -1258,7 +1257,7 @@ void wxPostScriptDC::DoDrawText( const wxString& text, wxCoord x, wxCoord y )
     }
 
     CalcBoundingBox( x, y );
-    CalcBoundingBox( x + size * text.Length() * 2/3 , y );
+    CalcBoundingBox( x + size * text.length() * 2/3 , y );
 }
 
 void wxPostScriptDC::DoDrawRotatedText( const wxString& text, wxCoord x, wxCoord y, double angle )
@@ -1383,7 +1382,7 @@ void wxPostScriptDC::DoDrawRotatedText( const wxString& text, wxCoord x, wxCoord
     }
 
     CalcBoundingBox( x, y );
-    CalcBoundingBox( x + size * text.Length() * 2/3 , y );
+    CalcBoundingBox( x + size * text.length() * 2/3 , y );
 }
 
 void wxPostScriptDC::SetBackground (const wxBrush& brush)
@@ -2258,11 +2257,6 @@ void wxPostScriptDC::PsPrint( int ch )
     }
 }
 
-#endif
-  // wxUSE_POSTSCRIPT
-
-#endif
-  // wxUSE_PRINTING_ARCHITECTURE
-
+#endif // wxUSE_PRINTING_ARCHITECTURE && wxUSE_POSTSCRIPT
 
 // vi:sts=4:sw=4:et
index 159b5eadfc3e9898402def056c4a8a703133f501..eeef7d9129b1cabd673425c71fbaeb8278aeda25 100644 (file)
 
 #if wxUSE_DIRDLG || wxUSE_FILEDLG
 
+#include "wx/generic/dirctrlg.h"
+
 #ifndef WX_PRECOMP
     #include "wx/hash.h"
+    #include "wx/intl.h"
 #endif
 
-#include "wx/generic/dirctrlg.h"
 #include "wx/module.h"
 #include "wx/utils.h"
 #include "wx/button.h"
@@ -33,7 +35,6 @@
 #include "wx/filefn.h"
 #include "wx/cmndata.h"
 #include "wx/gdicmn.h"
-#include "wx/intl.h"
 #include "wx/imaglist.h"
 #include "wx/icon.h"
 #include "wx/log.h"
index 31c91dc092fd85309ceaeb5972cd4b9b4f0d1cc4..f171e1476748f189b8aea1ab62bdafca3f780d4d 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
 #if wxUSE_DRAGIMAGE
 
 #ifndef WX_PRECOMP
-#include <stdio.h>
-#include "wx/window.h"
-#include "wx/frame.h"
-#include "wx/dcclient.h"
-#include "wx/dcscreen.h"
-#include "wx/dcmemory.h"
-#include "wx/settings.h"
+    #include <stdio.h>
+    #include "wx/window.h"
+    #include "wx/frame.h"
+    #include "wx/dcclient.h"
+    #include "wx/dcscreen.h"
+    #include "wx/dcmemory.h"
+    #include "wx/settings.h"
+    #include "wx/intl.h"
 #endif
 
 #include "wx/log.h"
-#include "wx/intl.h"
 
 #define wxUSE_IMAGE_IN_DRAGIMAGE 1
 
index c372fb9fac50f87a46aa11b46560d4d1788091f5..9d1f8f7e2aa8c6826d3727117553b7013d5ebad3 100644 (file)
 #error wxGenericFileDialog currently only supports Unix, win32 and DOS
 #endif
 
+#include "wx/generic/filedlgg.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/hash.h"
+    #include "wx/intl.h"
+#endif
+
 #include "wx/checkbox.h"
 #include "wx/textctrl.h"
 #include "wx/choice.h"
@@ -31,7 +38,6 @@
 #include "wx/debug.h"
 #include "wx/log.h"
 #include "wx/longlong.h"
-#include "wx/intl.h"
 #include "wx/msgdlg.h"
 #include "wx/sizer.h"
 #include "wx/bmpbuttn.h"
@@ -44,7 +50,6 @@
 #include "wx/filefn.h"
 #include "wx/file.h"        // for wxS_IXXX constants only
 #include "wx/filedlg.h"     // wxOPEN, wxSAVE...
-#include "wx/generic/filedlgg.h"
 #include "wx/generic/dirctrlg.h" // for wxFileIconsTable
 
 #if wxUSE_TOOLTIPS
index 8f8e0869dc0b8d42bf36254580b6b2cb67d11c2c..aeeb7ee8c09dd1c3f3aa2dabdb883b16e87189f1 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        app.cpp
+// Name:        src/gtk/app.cpp
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
 #include "wx/wxprec.h"
 
 #include "wx/app.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/gdicmn.h"
 #include "wx/utils.h"
-#include "wx/intl.h"
 #include "wx/log.h"
 #include "wx/memory.h"
 #include "wx/font.h"
@@ -33,7 +37,7 @@
 #include "wx/thread.h"
 
 #ifdef __WXGPE__
-#include <gpe/init.h>
+    #include <gpe/init.h>
 #endif
 
 #ifdef __WXUNIVERSAL__
@@ -113,7 +117,7 @@ static wxMutex gs_idleTagsMutex;
 // not static because used by textctrl.cpp
 //
 // MT-FIXME
-bool wxIsInsideYield = FALSE;
+bool wxIsInsideYield = false;
 
 bool wxApp::Yield(bool onlyIfNeeded)
 {
@@ -124,18 +128,18 @@ bool wxApp::Yield(bool onlyIfNeeded)
             wxFAIL_MSG( wxT("wxYield called recursively" ) );
         }
 
-        return FALSE;
+        return false;
     }
 
 #if wxUSE_THREADS
     if ( !wxThread::IsMain() )
     {
         // can't call gtk_main_iteration() from other threads like this
-        return TRUE;
+        return true;
     }
 #endif // wxUSE_THREADS
 
-    wxIsInsideYield = TRUE;
+    wxIsInsideYield = true;
 
     // We need to remove idle callbacks or the loop will
     // never finish.
@@ -163,9 +167,9 @@ bool wxApp::Yield(bool onlyIfNeeded)
     wxLog::Resume();
 #endif
 
-    wxIsInsideYield = FALSE;
+    wxIsInsideYield = false;
 
-    return TRUE;
+    return true;
 }
 
 //-----------------------------------------------------------------------------
@@ -483,7 +487,7 @@ bool wxApp::OnInitGui()
     }
 
     // Nothing to do for 15, 16, 24, 32 bit displays
-    if (visual->depth > 8) return TRUE;
+    if (visual->depth > 8) return true;
 
     // initialize color cube for 8-bit color reduction dithering
 
@@ -533,7 +537,7 @@ bool wxApp::OnInitGui()
         }
     }
 
-    return TRUE;
+    return true;
 }
 
 GdkVisual *wxApp::GetGdkVisual()
@@ -680,7 +684,7 @@ void wxApp::CleanUp()
 
 void wxApp::OnAssert(const wxChar *file, int line, const wxChar* cond, const wxChar *msg)
 {
-    m_isInAssert = TRUE;
+    m_isInAssert = true;
 
     wxAppBase::OnAssert(file, line, cond, msg);
 
index 9f631e21d887d4ce376d060c358835660ce509d9..b73a7ad394fcb2b65438cad776f2ae97cb9eb6ce 100644 (file)
 
 #include "wx/combobox.h"
 
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/settings.h"
 #include "wx/arrstr.h"
-#include "wx/intl.h"
 
 #include "wx/textctrl.h"    // for wxEVT_COMMAND_TEXT_UPDATED
 
index f47e0b983dcece278b6674361c32fe21ef5e063e..14cee77258743184f65a8e8830befc4aae5aff4c 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        dnd.cpp
+// Name:        src/gtk/dnd.cpp
 // Purpose:     wxDropTarget class
 // Author:      Robert Roebling
 // Id:          $Id$
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/dnd.h"
-#include "wx/log.h"
+#if wxUSE_DRAG_AND_DROP
 
+#include "wx/dnd.h"
 
-#if wxUSE_DRAG_AND_DROP
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
 
 #include "wx/window.h"
 #include "wx/app.h"
 #include "wx/gdicmn.h"
-#include "wx/intl.h"
+#include "wx/log.h"
 #include "wx/utils.h"
 
 #include "wx/gtk/private.h"
index 57a34be327cf5f7867422834974c00cca9d35e37..77f19242ded1e061b79a6d8d384f5128ee007f79 100644 (file)
 
 #include "wx/filedlg.h"
 
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #ifdef __WXGTK24__
 
 #include <gtk/gtk.h>
@@ -21,7 +25,6 @@
 
 #include <unistd.h> // chdir
 
-#include "wx/intl.h"
 #include "wx/filename.h" // wxFilename
 #include "wx/tokenzr.h" // wxStringTokenizer
 #include "wx/filefn.h" // ::wxGetCwd
index d51b0fb9497ac634918948586f33352a934aa432..50e7ad233152a4dcd2c3bdff9bea81a4eb036dc7 100644 (file)
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#if wxUSE_FONTDLG
-
-#ifndef __WXGPE__
+#if wxUSE_FONTDLG && !defined(__WXGPE__)
 
 #include "wx/fontdlg.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/fontutil.h"
 #include "wx/utils.h"
-#include "wx/intl.h"
 #include "wx/debug.h"
 #include "wx/msgdlg.h"
 
@@ -154,6 +156,4 @@ void wxFontDialog::SetChosenFont(const char *fontname)
     m_fontData.SetChosenFont(wxFont( wxString::FromAscii(fontname) ));
 }
 
-#endif // wxUSE_FONTDLG
-
-#endif // GPE
+#endif // wxUSE_FONTDLG && !__WXGPE__
index cc241866a7df76d25770104ee3b5f4b40fd3ede2..6df91cf93f6924b949135f156d83c7723174bf14 100644 (file)
 
 #if wxUSE_LISTBOX
 
+#include "wx/listbox.h"
+
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
+    #include "wx/intl.h"
 #endif
 
-#include "wx/listbox.h"
 #include "wx/arrstr.h"
 #include "wx/utils.h"
-#include "wx/intl.h"
 #include "wx/checklst.h"
 #include "wx/settings.h"
 #include "wx/log.h"
index a15c6a7500107559a72ad13e928db6aa74c8bd37..c06efa1a51a8b3f7723a9abed3d624301d3f000a 100644 (file)
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
+#if wxUSE_MDI
+
 #include "wx/mdi.h"
-#include "wx/notebook.h"
 
-#if wxUSE_MDI
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
 
+#include "wx/notebook.h"
 #include "wx/dialog.h"
 #include "wx/menu.h"
-#include "wx/intl.h"
 #include "wx/gtk/private.h"
 
 #include <glib.h>
index f02968fc17307f52ac4c8213e6d3324a08b42c88..aa3a7bee524d7f2f570a79e2a14dd719427911ec 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        menu.cpp
+// Name:        src/gtk/menu.cpp
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
 #include "wx/wxprec.h"
 
 #include "wx/menu.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/log.h"
-#include "wx/intl.h"
 #include "wx/app.h"
 #include "wx/bitmap.h"
 
@@ -1514,4 +1518,3 @@ bool wxWindowGTK::DoPopupMenu( wxMenu *menu, int x, int y )
 }
 
 #endif // wxUSE_MENUS_NATIVE
-
index 6c12db782e0bdceab0a9e46fb88c8d8e6848e994..fa66968937476f0e61976fd80b2d79437d44273e 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
 #if wxUSE_MSGDLG && defined(__WXGTK20__) && !defined(__WXGPE__)
 
 #include "wx/msgdlg.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/gtk/private.h"
 #include <gtk/gtk.h>
 
-#include "wx/intl.h"
-
 IMPLEMENT_CLASS(wxMessageDialog, wxDialog)
 
 wxMessageDialog::wxMessageDialog(wxWindow *parent,
@@ -126,5 +129,4 @@ int wxMessageDialog::ShowModal()
 }
 
 
-#endif // wxUSE_MSGDLG && defined(__WXGTK20__)
-
+#endif // wxUSE_MSGDLG && defined(__WXGTK20__) && !defined(__WXGPE__)
index 25785835a24a3ee5fc35f370813b952a00a1f7c5..1e29e55f493fd53c09bc990ee36cd6a33fdcc113 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        notebook.cpp
+// Name:        src/gtk/notebook.cpp
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
+#if wxUSE_NOTEBOOK
+
 #include "wx/notebook.h"
 
-#if wxUSE_NOTEBOOK
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
 
 #include "wx/panel.h"
 #include "wx/utils.h"
 #include "wx/imaglist.h"
-#include "wx/intl.h"
 #include "wx/log.h"
 #include "wx/bitmap.h"
 #include "wx/fontutil.h"
@@ -383,13 +386,13 @@ int wxNotebook::GetSelection() const
 
 wxString wxNotebook::GetPageText( size_t page ) const
 {
-    wxCHECK_MSG( m_widget != NULL, wxT(""), wxT("invalid notebook") );
+    wxCHECK_MSG( m_widget != NULL, wxEmptyString, wxT("invalid notebook") );
 
     wxGtkNotebookPage* nb_page = GetNotebookPage(page);
     if (nb_page)
         return nb_page->m_text;
     else
-        return wxT("");
+        return wxEmptyString;
 }
 
 int wxNotebook::GetPageImage( size_t page ) const
@@ -691,7 +694,7 @@ bool wxNotebook::InsertPage( size_t position,
     /* set the label text */
 
     nb_page->m_text = text;
-    if (nb_page->m_text.IsEmpty()) nb_page->m_text = wxT("");
+    if (nb_page->m_text.empty()) nb_page->m_text = wxT("");
 
     nb_page->m_label = GTK_LABEL( gtk_label_new(wxGTK_CONV(nb_page->m_text)) );
     gtk_box_pack_end( GTK_BOX(nb_page->m_box), GTK_WIDGET(nb_page->m_label), FALSE, FALSE, m_padding );
index 5a7a67d2ab6c0fd0095e3e1f03ce255d7e7ae67b..7705302842ea09fd08a1d97880ad0f4e1149cc03 100644 (file)
 #include "wx/wxprec.h"
 
 #include "wx/textctrl.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/utils.h"
-#include "wx/intl.h"
 #include "wx/log.h"
 #include "wx/math.h"
 #include "wx/settings.h"
index ae61014f023c53eee582cbc847ebb8255c56958b..1a65822ba32a040141c6bc1177850fad8a3c2ff2 100644 (file)
 
 #ifndef WX_PRECOMP
     #include "wx/string.h"
+    #include "wx/intl.h"
 #endif
 
 #include "wx/apptrait.h"
-#include "wx/intl.h"
 #include "wx/log.h"
 
 #include "wx/process.h"
index bf1f62fa1365240c85cbc87cadf1fe7ea5ab4ea4..40b265aa8470e7d3f478b930daef000f5090e038 100644 (file)
 #endif
 
 #include "wx/window.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/dcclient.h"
 #include "wx/frame.h"
 #include "wx/app.h"
@@ -46,7 +51,6 @@
 
 #include "wx/menu.h"
 #include "wx/statusbr.h"
-#include "wx/intl.h"
 #include "wx/settings.h"
 #include "wx/log.h"
 #include "wx/fontutil.h"
@@ -4281,12 +4285,12 @@ void wxWindowGTK::ScrollWindow( int dx, int dy, const wxRect* WXUNUSED(rect) )
 void wxWindowGTK::GtkScrolledWindowSetBorder(GtkWidget* w, int wxstyle)
 {
     //RN: Note that static controls usually have no border on gtk, so maybe
-    //it makes sense to treat that as simply no border at the wx level 
+    //it makes sense to treat that as simply no border at the wx level
     //as well...
     if (!(wxstyle & wxNO_BORDER) && !(wxstyle & wxBORDER_STATIC))
     {
         GtkShadowType gtkstyle;
-        
+
         if(wxstyle & wxBORDER_RAISED)
             gtkstyle = GTK_SHADOW_OUT;
         else if (wxstyle & wxBORDER_SUNKEN)
@@ -4296,7 +4300,7 @@ void wxWindowGTK::GtkScrolledWindowSetBorder(GtkWidget* w, int wxstyle)
         else //default
             gtkstyle = GTK_SHADOW_IN;
 
-        gtk_scrolled_window_set_shadow_type( GTK_SCROLLED_WINDOW(w), 
+        gtk_scrolled_window_set_shadow_type( GTK_SCROLLED_WINDOW(w),
                                              gtkstyle );
     }
 }
index 8255d6178cc6de324b6e2f31557493a88100b1cd..5858c7570cf1370b1f05e10a7710d0222933684c 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        app.cpp
+// Name:        src/gtk1/app.cpp
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
 #include "wx/wxprec.h"
 
 #include "wx/app.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/gdicmn.h"
 #include "wx/utils.h"
-#include "wx/intl.h"
 #include "wx/log.h"
 #include "wx/memory.h"
 #include "wx/font.h"
index 38ddd035fa815221ffc8a19ba43c0c47d6f0d6ea..67dd579b36c636bb0cd0f9f32974825537588af6 100644 (file)
 
 #include "wx/combobox.h"
 
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/settings.h"
 #include "wx/arrstr.h"
-#include "wx/intl.h"
 
 #include "wx/textctrl.h"    // for wxEVT_COMMAND_TEXT_UPDATED
 
index 46a175b0934d3011e2169564148f1a9197965937..29094ff240ad3daf28bf131a12391129ec88bb40 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        dnd.cpp
+// Name:        src/gtk1/dnd.cpp
 // Purpose:     wxDropTarget class
 // Author:      Robert Roebling
 // Id:          $Id$
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/dnd.h"
-#include "wx/log.h"
+#if wxUSE_DRAG_AND_DROP
 
+#include "wx/dnd.h"
 
-#if wxUSE_DRAG_AND_DROP
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
 
+#include "wx/log.h"
 #include "wx/window.h"
 #include "wx/app.h"
 #include "wx/gdicmn.h"
-#include "wx/intl.h"
 #include "wx/utils.h"
 
 #include "wx/gtk1/private.h"
index fb9b7393981520c9b0816fa9da4fd0160d6303a0..d912375443c9459faea22f749d7340961bf1f5ee 100644 (file)
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#if wxUSE_FONTDLG
-
-#ifndef __WXGPE__
+#if wxUSE_FONTDLG && !defined(__WXGPE__)
 
 #include "wx/fontdlg.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/fontutil.h"
 #include "wx/utils.h"
-#include "wx/intl.h"
 #include "wx/debug.h"
 #include "wx/msgdlg.h"
 
@@ -179,6 +181,4 @@ void wxFontDialog::SetChosenFont(const char *fontname)
     m_fontData.SetChosenFont(wxFont( wxString::FromAscii(fontname) ));
 }
 
-#endif // wxUSE_FONTDLG
-
-#endif // GPE
+#endif // wxUSE_FONTDLG && !defined(__WXGPE__)
index 4648ad6b988858dc34fc98c6139fc2c48dea152d..e7988ebf5859c07a8dad3964a48b8a00aeaeb91b 100644 (file)
 
 #if wxUSE_LISTBOX
 
+#include "wx/listbox.h"
+
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
+    #include "wx/intl.h"
 #endif
 
-#include "wx/listbox.h"
 #include "wx/arrstr.h"
 #include "wx/utils.h"
-#include "wx/intl.h"
 #include "wx/checklst.h"
 #include "wx/settings.h"
 #include "wx/gtk1/private.h"
 
 #if wxUSE_TOOLTIPS
-#include "wx/tooltip.h"
+    #include "wx/tooltip.h"
 #endif
 
 #include <gdk/gdk.h>
index 9f853fcae7ddeecfaeff554427852941e672426d..b95b07de757a60ce44433bdd9686ef66a8f0d02c 100644 (file)
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
+#if wxUSE_MDI
+
 #include "wx/mdi.h"
-#include "wx/notebook.h"
 
-#if wxUSE_MDI
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
 
+#include "wx/notebook.h"
 #include "wx/dialog.h"
 #include "wx/menu.h"
-#include "wx/intl.h"
 #include "wx/gtk1/private.h"
 
 #include <glib.h>
index 89b6206f64591d45f98ce8c425c59e7ff3c94d6f..502346ec53d20ba40c576d8cac4d5b6fde1e9bcf 100644 (file)
 #include "wx/wxprec.h"
 
 #include "wx/menu.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/log.h"
-#include "wx/intl.h"
 #include "wx/app.h"
 #include "wx/bitmap.h"
 
@@ -984,7 +988,7 @@ bool wxMenu::GtkAppend(wxMenuItem *mitem, int pos)
         text = mitem->GetText();
         const wxBitmap *bitmap = &mitem->GetBitmap();
 
-       // TODO
+        // TODO
         wxUnusedVar(bitmap);
         menuItem = gtk_menu_item_new_with_label( wxGTK_CONV( text ) );
         label = GTK_LABEL( GTK_BIN(menuItem)->child );
index ca7fc31f13ee442e0fdf1c8addad51088b6ccf39..6cad559cbd4bdd65cbbbf170eb361846a28cb42d 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        notebook.cpp
+// Name:        src/gtk1/notebook.cpp
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
+#if wxUSE_NOTEBOOK
+
 #include "wx/notebook.h"
 
-#if wxUSE_NOTEBOOK
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
 
 #include "wx/panel.h"
 #include "wx/utils.h"
 #include "wx/imaglist.h"
-#include "wx/intl.h"
 #include "wx/log.h"
 #include "wx/bitmap.h"
 #include "wx/fontutil.h"
@@ -383,13 +386,13 @@ int wxNotebook::GetSelection() const
 
 wxString wxNotebook::GetPageText( size_t page ) const
 {
-    wxCHECK_MSG( m_widget != NULL, wxT(""), wxT("invalid notebook") );
+    wxCHECK_MSG( m_widget != NULL, wxEmptyString, wxT("invalid notebook") );
 
     wxGtkNotebookPage* nb_page = GetNotebookPage(page);
     if (nb_page)
         return nb_page->m_text;
     else
-        return wxT("");
+        return wxEmptyString;
 }
 
 int wxNotebook::GetPageImage( size_t page ) const
@@ -689,7 +692,7 @@ bool wxNotebook::InsertPage( size_t position,
     /* set the label text */
 
     nb_page->m_text = text;
-    if (nb_page->m_text.IsEmpty()) nb_page->m_text = wxT("");
+    if (nb_page->m_text.empty()) nb_page->m_text = wxT("");
 
     nb_page->m_label = GTK_LABEL( gtk_label_new(wxGTK_CONV(nb_page->m_text)) );
     gtk_box_pack_end( GTK_BOX(nb_page->m_box), GTK_WIDGET(nb_page->m_label), FALSE, FALSE, m_padding );
index 5b6c8cef151df7a6cc314318ab0cfdd3a19b6504..e472846bb0f1396264dd205c0fe1fe8ba750ef2d 100644 (file)
 #include "wx/wxprec.h"
 
 #include "wx/textctrl.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/utils.h"
-#include "wx/intl.h"
 #include "wx/log.h"
 #include "wx/math.h"
 #include "wx/settings.h"
index 2f969d7be886fbd6384fbb99d479951325ac2dcf..c9d478b4287716a97e77ab853016d6c53074ad7a 100644 (file)
 
 #ifndef WX_PRECOMP
     #include "wx/string.h"
+    #include "wx/intl.h"
 #endif
 
 #include "wx/apptrait.h"
-#include "wx/intl.h"
 #include "wx/log.h"
 
 #include "wx/process.h"
index 828d45afc058c139e6058c2b04c3b3b3813e608f..0d8838061d67bfef122ffde3ccfa3181eae49efd 100644 (file)
 #endif
 
 #include "wx/window.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/dcclient.h"
 #include "wx/frame.h"
 #include "wx/app.h"
@@ -43,7 +48,6 @@
 
 #include "wx/menu.h"
 #include "wx/statusbr.h"
-#include "wx/intl.h"
 #include "wx/settings.h"
 #include "wx/log.h"
 #include "wx/fontutil.h"
index b128991ff072ab3a3437d8526479b96c677ec350..b7082817a01585c3745a04c101dba434c72344fe 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        app.cpp
+// Name:        src/mac/carbon/app.cpp
 // Purpose:     wxApp
 // Author:      Stefan Csomor
 // Modified by:
 
 #include "wx/wxprec.h"
 
+#include "wx/app.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/window.h"
 #include "wx/frame.h"
 #include "wx/button.h"
-#include "wx/app.h"
 #include "wx/utils.h"
 #include "wx/gdicmn.h"
 #include "wx/pen.h"
 #include "wx/brush.h"
 #include "wx/cursor.h"
-#include "wx/intl.h"
 #include "wx/icon.h"
 #include "wx/palette.h"
 #include "wx/dc.h"
@@ -359,7 +363,7 @@ struct IdPair
     int wxId ;
 } ;
 
-IdPair gCommandIds [] = 
+IdPair gCommandIds [] =
 {
     { kHICommandCut ,           wxID_CUT } ,
     { kHICommandCopy ,          wxID_COPY } ,
@@ -370,10 +374,10 @@ IdPair gCommandIds [] =
     { kHICommandRedo ,          wxID_REDO } ,
 } ;
 
-int wxMacCommandToId( UInt32 macCommandId ) 
+int wxMacCommandToId( UInt32 macCommandId )
 {
     int wxid = 0 ;
-    
+
     switch ( macCommandId )
     {
         case kHICommandPreferences :
@@ -408,10 +412,10 @@ int wxMacCommandToId( UInt32 macCommandId )
     return wxid ;
 }
 
-UInt32 wxIdToMacCommand( int wxId ) 
+UInt32 wxIdToMacCommand( int wxId )
 {
     UInt32 macId = 0 ;
-    
+
     if ( wxId == wxApp::s_macPreferencesMenuItemId )
         macId = kHICommandPreferences ;
     else if (wxId == wxApp::s_macExitMenuItemId)
@@ -436,7 +440,7 @@ UInt32 wxIdToMacCommand( int wxId )
     return macId ;
 }
 
-wxMenu* wxFindMenuFromMacCommand( const HICommand &command , wxMenuItem* &item ) 
+wxMenu* wxFindMenuFromMacCommand( const HICommand &command , wxMenuItem* &item )
 {
     wxMenu* itemMenu = NULL ;
     int id = 0 ;
@@ -581,7 +585,7 @@ static pascal OSStatus wxMacAppCommandEventHandler( EventHandlerCallRef handler
     if ( item )
     {
         wxASSERT( itemMenu != NULL ) ;
-        
+
         switch ( cEvent.GetKind() )
         {
             case kEventProcessCommand :
@@ -598,16 +602,16 @@ static pascal OSStatus wxMacAppCommandEventHandler( EventHandlerCallRef handler
             {
                 wxUpdateUIEvent event(id);
                 event.SetEventObject( itemMenu );
-                                
+
                 bool processed = false;
-                
+
                 // Try the menu's event handler
                 {
                     wxEvtHandler *handler = itemMenu->GetEventHandler();
                     if ( handler )
                         processed = handler->ProcessEvent(event);
                 }
-                
+
                 // Try the window the menu was popped up from
                 // (and up through the hierarchy)
                 if ( !processed )
@@ -621,11 +625,11 @@ static pascal OSStatus wxMacAppCommandEventHandler( EventHandlerCallRef handler
                             processed = win->GetEventHandler()->ProcessEvent(event);
                             break;
                         }
-                        
+
                         menu = menu->GetParent();
                     }
                 }
-                
+
                 if ( processed )
                 {
                     // if anything changed, update the changed attribute
@@ -1473,10 +1477,10 @@ bool wxApp::MacSendKeyDownEvent( wxWindow* focus , long keymessage , long modifi
     if ( !focus )
         return false ;
 
-    bool handled; 
+    bool handled;
     wxKeyEvent event(wxEVT_KEY_DOWN) ;
     MacCreateKeyEvent( event, focus , keymessage , modifiers , when , wherex , wherey , uniChar ) ;
-        
+
     handled = focus->GetEventHandler()->ProcessEvent( event ) ;
     if ( handled && event.GetSkipped() )
         handled = false ;
@@ -1515,7 +1519,7 @@ bool wxApp::MacSendKeyUpEvent( wxWindow* focus , long keymessage , long modifier
     wxKeyEvent event( wxEVT_KEY_UP ) ;
     MacCreateKeyEvent( event, focus , keymessage , modifiers , when , wherex , wherey , uniChar ) ;
     handled = focus->GetEventHandler()->ProcessEvent( event ) ;
-    
+
     return handled ;
 }
 
@@ -1523,7 +1527,7 @@ bool wxApp::MacSendCharEvent( wxWindow* focus , long keymessage , long modifiers
 {
     if ( !focus )
         return false ;
-    
+
     wxKeyEvent event(wxEVT_CHAR) ;
     MacCreateKeyEvent( event, focus , keymessage , modifiers , when , wherex , wherey , uniChar ) ;
     long keyval = event.m_keyCode ;
@@ -1531,7 +1535,7 @@ bool wxApp::MacSendCharEvent( wxWindow* focus , long keymessage , long modifiers
     bool handled = false ;
 
     wxTopLevelWindowMac *tlw = focus->MacGetTopLevelWindow() ;
-        
+
     if (tlw)
     {
         event.SetEventType( wxEVT_CHAR_HOOK );
@@ -1546,7 +1550,7 @@ bool wxApp::MacSendCharEvent( wxWindow* focus , long keymessage , long modifiers
         event.Skip( false ) ;
         handled = focus->GetEventHandler()->ProcessEvent( event ) ;
     }
-        
+
     if ( !handled && (keyval == WXK_TAB) )
     {
         wxWindow* iter = focus->GetParent() ;
@@ -1601,7 +1605,7 @@ bool wxApp::MacSendCharEvent( wxWindow* focus , long keymessage , long modifiers
     return handled ;
 }
 
-// This method handles common code for SendKeyDown, SendKeyUp, and SendChar events. 
+// This method handles common code for SendKeyDown, SendKeyUp, and SendChar events.
 void wxApp::MacCreateKeyEvent( wxKeyEvent& event, wxWindow* focus , long keymessage , long modifiers , long when , short wherex , short wherey , wxChar uniChar )
 {
     short keycode, keychar ;
index 205bc86ad10975ebc44695a43aec93d2352e5769..d99f05a0124359d92a86a32d5c8b09067aac89c8 100644 (file)
@@ -22,6 +22,7 @@
 #ifndef WX_PRECOMP
     #include "wx/object.h"
     #include "wx/string.h"
+    #include "wx/intl.h"
 #endif
 
 #include "wx/app.h"
@@ -30,7 +31,6 @@
 #include "wx/utils.h"
 #include "wx/module.h"
 #include "wx/log.h"
-#include "wx/intl.h"
 #include "wx/event.h"
 
 #include "wx/sckaddr.h"
index 3df3a92fd1915beb70b5e0566d6cb55c5c49b941..f884aae4f7868c7ffb5d23d9ecf0ab68531e11dc 100644 (file)
 
 #if wxUSE_CLIPBOARD
 
+#include "wx/clipbrd.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/app.h"
 #include "wx/frame.h"
 #include "wx/bitmap.h"
 #include "wx/utils.h"
 #include "wx/metafile.h"
-#include "wx/clipbrd.h"
-#include "wx/intl.h"
 #include "wx/log.h"
 
 #ifndef __DARWIN__
index f617d26f1c4df387e5ac49968784b8a95836a7e1..f572edfe5541878b452aae3ba3c309c025330534 100644 (file)
 
 #if wxUSE_DATAOBJ
 
+#include "wx/dataobj.h"
+
 #ifndef WX_PRECOMP
-#include "wx/intl.h"
+    #include "wx/intl.h"
 #endif
 
 #include "wx/log.h"
-#include "wx/dataobj.h"
 #include "wx/dcmemory.h"
 #include "wx/mstream.h"
 #include "wx/image.h"
index 5e129eaf9119f5e1a75fc228b96fae8fb03376d1..ec4c14e7f42a54c7532f15cd32811dd9b5f8844e 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        filedlg.cpp
+// Name:        src/mac/carbon/filedlg.cpp
 // Purpose:     wxFileDialog
 // Author:      Stefan Csomor
 // Modified by:
 
 #include "wx/wxprec.h"
 
+#include "wx/filedlg.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/app.h"
 #include "wx/utils.h"
 #include "wx/dialog.h"
-#include "wx/filedlg.h"
-#include "wx/intl.h"
 #include "wx/tokenzr.h"
 #include "wx/filename.h"
 
@@ -157,7 +161,7 @@ void MakeUserDataRec(OpenUserDataRec *myData , const wxString& filter )
         // an explanatory text, in that case the first part is name and extension at the same time
 
         wxASSERT_MSG( filterIndex == 0 || !isName , wxT("incorrect format of format string") ) ;
-        if ( current.IsEmpty() )
+        if ( current.empty() )
             myData->extensions.Add( myData->name[filterIndex] ) ;
         else
             myData->extensions.Add( current.MakeUpper() ) ;
@@ -179,7 +183,7 @@ void MakeUserDataRec(OpenUserDataRec *myData , const wxString& filter )
             // Remove leading '.'
             if (extension.length() && (extension.GetChar(0) == '.'))
                 extension = extension.Mid( 1 );
-       
+
             if (wxFileName::MacFindDefaultTypeAndCreator( extension, &fileType, &creator ))
                 myData->filtermactypes.Add( (OSType)fileType );
             else
@@ -364,7 +368,7 @@ int wxFileDialog::ShowModal()
     {
         // let the user select bundles/programs in dialogs
         dialogCreateOptions.optionFlags |= kNavSupportPackages;
-    
+
         navFilterUPP = NewNavObjectFilterUPP(CrossPlatformFilterCallback);
         err = ::NavCreateGetFileDialog(
             &dialogCreateOptions,
@@ -413,7 +417,7 @@ int wxFileDialog::ShowModal()
                 thePath = wxMacFSRefToPath( &theFSRef, navReply.saveFileName );
             else
                 thePath = wxMacFSRefToPath( &theFSRef );
-                
+
             if (!thePath)
             {
                 ::NavDisposeReply(&navReply);
@@ -436,4 +440,3 @@ int wxFileDialog::ShowModal()
 
     return (err == noErr) ? wxID_OK : wxID_CANCEL;
 }
-
index 79a4c20fe85d6aa9693be2ec83c0566190461b2e..043439c64fa0aadbab5b4f2cc923b342c2fa6f58 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        fontdlg.cpp
+// Name:        src/mac/carbon/fontdlgosx.cpp
 // Purpose:     wxFontDialog class.
 // Author:      Ryan Norton
 // Modified by:
@@ -9,6 +9,8 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
+#include "wx/wxprec.h"
+
 // ===========================================================================
 // declarations
 // ===========================================================================
 // headers
 // ---------------------------------------------------------------------------
 
-#include "wx/cmndata.h"
 #include "wx/fontdlg.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
+#include "wx/cmndata.h"
 #include "wx/fontutil.h"
 #include "wx/log.h"
-    
+
 // ============================================================================
 // implementation
 // ============================================================================
 #import <AppKit/AppKit.h>
 
 #include "wx/mac/uma.h"
-#include "wx/intl.h"
 
 @interface wxMacFontPanelAccView : NSView
-{   
+{
     BOOL m_okPressed ;
     BOOL m_shouldClose ;
     NSButton* m_cancelButton ;
 - (id)initWithFrame:(NSRect)rectBox
 {
     [super initWithFrame:rectBox];
-    
+
     wxMacCFStringHolder cfOkString( wxT("OK"), wxLocale::GetSystemEncoding() );
     wxMacCFStringHolder cfCancelString( wxT("Cancel"), wxLocale::GetSystemEncoding() );
 
     NSRect rectCancel = NSMakeRect( 10.0 , 10.0 , 82  , 24 );
     NSRect rectOK = NSMakeRect( 100.0 , 10.0 , 82  , 24 );
-    
+
     NSButton* cancelButton = [[NSButton alloc] initWithFrame:rectCancel];
     [cancelButton setTitle:(NSString*)cfCancelString.Detach()];
     [cancelButton setBezelStyle:NSRoundedBezelStyle];
@@ -72,7 +78,7 @@
     [cancelButton setAction:@selector(cancelPressed:)];
     [cancelButton setTarget:self];
     m_cancelButton = cancelButton ;
-    
+
     NSButton* okButton = [[NSButton alloc] initWithFrame:rectOK];
     [okButton setTitle:(NSString*)cfOkString.Detach()];
     [okButton setBezelStyle:NSRoundedBezelStyle];
@@ -86,7 +92,7 @@
 
     [self addSubview:cancelButton];
     [self addSubview:okButton];
-    
+
     [self resetFlags];
     return self;
 }
 - (void)resetFlags
 {
     m_okPressed = NO ;
-    m_shouldClose = NO ;    
+    m_shouldClose = NO ;
 }
 
 - (IBAction)cancelPressed:(id)sender
@@ -145,22 +151,22 @@ int RunMixedFontDialog(wxFontDialog* dialog)
     WindowRef carbonWindowRef = (WindowRef)[fontPanel windowRef] ;
     SetWindowModality(carbonWindowRef, kWindowModalityAppModal , 0) ;
     SetWindowGroup(carbonWindowRef , GetWindowGroupOfClass(kMovableModalWindowClass));
-    
+
     [fontPanel setFloatingPanel:NO] ;
     [[fontPanel standardWindowButton:NSWindowCloseButton] setEnabled:NO] ;
-    
+
     wxMacFontPanelAccView* accessoryView = (wxMacFontPanelAccView*) [fontPanel accessoryView] ;
     if ( accessoryView == nil)
     {
         NSRect rectBox = NSMakeRect( 0 , 0 , 192 , 40 );
         accessoryView = [[wxMacFontPanelAccView alloc] initWithFrame:rectBox];
         [fontPanel setAccessoryView:accessoryView];
-        
+
         [fontPanel setDefaultButtonCell:[[accessoryView okButton] cell]] ;
     }
 
     [accessoryView resetFlags];
-    
+
     NSModalSession session = [NSApp beginModalSessionForWindow:fontPanel];
 
     [NSApp runModalSession:session];
@@ -171,7 +177,7 @@ int RunMixedFontDialog(wxFontDialog* dialog)
     [[fontPanel standardWindowButton:NSWindowCloseButton] setEnabled:YES] ;
     if( FPIsFontPanelVisible())
         FPShowHideFontPanel() ;
-    
+
     if ( [accessoryView closedWithOk])
     {
         retval = wxID_OK ;
@@ -223,7 +229,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog)
 - (BOOL)windowShouldClose:(id)sender
 {
     m_bIsClosed = true;
-    
+
     [NSApp abortModal];
     [NSApp stopModal];
     return YES;
@@ -269,7 +275,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog)
 {
     m_bIsClosed = true;
     m_bIsOpen = false;
-    
+
     [NSApp abortModal];
     [NSApp stopModal];
     return YES;
@@ -321,14 +327,14 @@ bool wxFontDialog::Create(wxWindow *parent, const wxFontData& data)
     m_fontData = data;
 
     //
-    // This is the key call - this initializes
-    // events and window stuff for cocoa for carbon
-    // applications.
+    //  This is the key call - this initializes
+    //  events and window stuff for cocoa for carbon
+    //  applications.
     //
-    // This is also the only call here that is 
-    // 10.2+ specific (the rest is OSX only),
-    // which, ironically, the carbon font
-    // panel requires.
+    //  This is also the only call here that is
+    //  10.2+ specific (the rest is OSX only),
+    //  which, ironically, the carbon font
+    //  panel requires.
     //
     bool bOK = NSApplicationLoad();
 
@@ -338,20 +344,20 @@ bool wxFontDialog::Create(wxWindow *parent, const wxFontData& data)
 
     //Get the initial wx font
     wxFont& thewxfont = m_fontData.m_initialFont;
-    
-    //if the font is valid set the default (selected) font of the 
+
+    //if the font is valid set the default (selected) font of the
     //NSFontDialog to that font
     if (thewxfont.Ok())
     {
         NSFontTraitMask theMask = 0;
-    
+
         if(thewxfont.GetStyle() == wxFONTSTYLE_ITALIC)
             theMask |= NSItalicFontMask;
-    
+
         if(thewxfont.IsFixedWidth())
             theMask |= NSFixedPitchFontMask;
 
-        NSFont* theDefaultFont = 
+        NSFont* theDefaultFont =
             [[NSFontManager sharedFontManager] fontWithFamily:
                                                     wxNSStringWithWxString(thewxfont.GetFaceName())
                                             traits:theMask
@@ -359,7 +365,7 @@ bool wxFontDialog::Create(wxWindow *parent, const wxFontData& data)
                                                     thewxfont.GetWeight() == wxLIGHT ? 0 : 5
                                             size: (float)(thewxfont.GetPointSize())
             ];
-            
+
         wxASSERT_MSG(theDefaultFont, wxT("Invalid default font for wxCocoaFontDialog!"));
 
         //Apple docs say to call NSFontManager::setSelectedFont
@@ -377,17 +383,17 @@ bool wxFontDialog::Create(wxWindow *parent, const wxFontData& data)
                                         alpha:1.0]
         ];
     else
-        [[NSColorPanel sharedColorPanel] setColor:[NSColor blackColor]];   
-        
+        [[NSColorPanel sharedColorPanel] setColor:[NSColor blackColor]];
+
     //We're done - free up the pool
     [thePool release];
-    
+
     return bOK;
 }
 
 int wxFontDialog::ShowModal()
-{    
-    //Start the pool.  Required for carbon interaction 
+{
+    //Start the pool.  Required for carbon interaction
     //(For those curious, the only thing that happens
     //if you don't do this is a bunch of error
     //messages about leaks on the console,
@@ -396,7 +402,7 @@ int wxFontDialog::ShowModal()
     thePool = [[NSAutoreleasePool alloc] init];
 
     //Get the shared color and font panel
-    NSFontPanel* theFontPanel  = [NSFontPanel sharedFontPanel];
+    NSFontPanel* theFontPanel = [NSFontPanel sharedFontPanel];
     NSColorPanel* theColorPanel = [NSColorPanel sharedColorPanel];
 
     //Create and assign the delegates (cocoa event handlers) so
@@ -406,17 +412,17 @@ int wxFontDialog::ShowModal()
 
     wxWCODelegate* theCPDelegate = [[wxWCODelegate alloc] init];
     [theColorPanel setDelegate:theCPDelegate];
-      
+
     //
-    // Begin the modal loop for the font and color panels
+    //  Begin the modal loop for the font and color panels
     //
-    // The idea is that we first make the font panel modal,
+    //  The idea is that we first make the font panel modal,
     //  but if the color panel is opened, unless we stop the
     //  modal loop the color panel opens behind the font panel
     //  with no input acceptable to it - which makes it useless.
     //
-    // So we set up delegates for both the color and font panels,
-    //  and the if the font panel opens the color panel, we 
+    //  So we set up delegates for both the color and font panels,
+    //  and the if the font panel opens the color panel, we
     //  stop the modal loop, and start a separate modal loop for
     //  the color panel until the color panel closes, switching
     //  back to the font panel modal loop once it does close.
@@ -424,31 +430,31 @@ int wxFontDialog::ShowModal()
     do
     {
         //
-        //     Start the font panel modal loop
+        //  Start the font panel modal loop
         //
         NSModalSession session = [NSApp beginModalSessionForWindow:theFontPanel];
-        for (;;) 
+        for (;;)
         {
             [NSApp runModalSession:session];
-            
+
             //If the font panel is closed or the font panel
             //opened the color panel, break
             if ([theFPDelegate isClosed] || [theCPDelegate isOpen])
                 break;
         }
         [NSApp endModalSession:session];
-        
+
         //is the color panel open?
         if ([theCPDelegate isOpen])
         {
             //
-            // Start the color panel modal loop
+            //  Start the color panel modal loop
             //
             NSModalSession session = [NSApp beginModalSessionForWindow:theColorPanel];
-            for (;;) 
+            for (;;)
             {
                 [NSApp runModalSession:session];
-                
+
                 //If the color panel is closed, return the font panel modal loop
                 if ([theCPDelegate isClosed])
                     break;
@@ -459,50 +465,50 @@ int wxFontDialog::ShowModal()
         //out of its modal loop because the color panel was
         //opened) return the font panel modal loop
     }while([theFPDelegate isClosed] == NO);
-    
+
     //free up the memory for the delegates - we don't need them anymore
     [theFPDelegate release];
     [theCPDelegate release];
-    
+
     //Get the font the user selected
-    NSFont* theFont = [theFontPanel panelConvertFont:[NSFont userFontOfSize:0]];      
-    
+    NSFont* theFont = [theFontPanel panelConvertFont:[NSFont userFontOfSize:0]];
+
     //Get more information about the user's chosen font
     NSFontTraitMask theTraits = [[NSFontManager sharedFontManager] traitsOfFont:theFont];
     int theFontWeight = [[NSFontManager sharedFontManager] weightOfFont:theFont];
     int theFontSize = (int) [theFont pointSize];
-    
+
     //Set the wx font to the appropriate data
     if(theTraits & NSFixedPitchFontMask)
         m_fontData.m_chosenFont.SetFamily(wxTELETYPE);
-       
+
     m_fontData.m_chosenFont.SetFaceName(wxStringWithNSString([theFont familyName]));
     m_fontData.m_chosenFont.SetPointSize(theFontSize);
     m_fontData.m_chosenFont.SetStyle(theTraits & NSItalicFontMask ? wxFONTSTYLE_ITALIC : 0);
     m_fontData.m_chosenFont.SetWeight(theFontWeight < 5 ? wxLIGHT :
-                                    theFontWeight >= 9 ? wxBOLD : wxNORMAL);    
-                                        
+                                    theFontWeight >= 9 ? wxBOLD : wxNORMAL);
+
     //Get the shared color panel along with the chosen color and set the chosen color
     NSColor* theColor = [[theColorPanel color] colorUsingColorSpaceName:NSCalibratedRGBColorSpace];
-                                    
+
     m_fontData.m_fontColour.Set((unsigned char) ([theColor redComponent] * 255.0),
                                 (unsigned char) ([theColor greenComponent] * 255.0),
                                 (unsigned char) ([theColor blueComponent] * 255.0));
 
     //Friendly debug stuff
 #ifdef FONTDLGDEBUG
-    wxPrintf(wxT("---Font Panel---\n--NS--\nSize:%f\nWeight:%i\nTraits:%i\n--WX--\nFaceName:%s\nPointSize:%i\nStyle:%i\nWeight:%i\nColor:%i,%i,%i\n---END Font Panel---\n"), 
-    
+    wxPrintf(wxT("---Font Panel---\n--NS--\nSize:%f\nWeight:%i\nTraits:%i\n--WX--\nFaceName:%s\nPointSize:%i\nStyle:%i\nWeight:%i\nColor:%i,%i,%i\n---END Font Panel---\n"),
+
                 (float) theFontSize,
                 theFontWeight,
                 theTraits,
-                
+
                 m_fontData.m_chosenFont.GetFaceName().c_str(),
                 m_fontData.m_chosenFont.GetPointSize(),
                 m_fontData.m_chosenFont.GetStyle(),
                 m_fontData.m_chosenFont.GetWeight(),
-                    m_fontData.m_fontColour.Red(), 
-                    m_fontData.m_fontColour.Green(), 
+                    m_fontData.m_fontColour.Red(),
+                    m_fontData.m_fontColour.Green(),
                     m_fontData.m_fontColour.Blue() );
 #endif
 
index adb3957eca576b6e4c2628997251da448d18ecc1..8ba9f44087fa644acf8beeb27bef0f04185ec2dd 100644 (file)
 
 #if wxUSE_FONTMAP
 
+#include "wx/fontenum.h"
+
 #ifndef WX_PRECOMP
-  #include "wx/font.h"
+    #include "wx/font.h"
+    #include "wx/intl.h"
 #endif
 
-#include "wx/fontenum.h"
 #include "wx/fontutil.h"
 #include "wx/fontmap.h"
 #include "wx/fontutil.h"
 #include "wx/encinfo.h"
-#include "wx/intl.h"
 
 #include "wx/mac/private.h"
 
@@ -161,4 +162,4 @@ bool wxFontEnumerator::EnumerateEncodings(const wxString& family)
     return true;
 }
 
-#endif
+#endif // wxUSE_FONTMAP
index f0bc4917907b618182c1e1c62627e9e14dfbe50e..f157c63c3ce3a25284f677f55f0200da7fae1caa 100644 (file)
 
 #if wxUSE_MIMETYPE
 
+#include "wx/mac/mimetype.h"
+
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
     #include "wx/string.h"
+    #include "wx/intl.h"
 
     #if wxUSE_GUI
         #include "wx/icon.h"
 
 #include "wx/log.h"
 #include "wx/file.h"
-#include "wx/intl.h"
 #include "wx/confbase.h"
 
-#include "wx/mac/mimetype.h"
 #include "wx/mac/private.h"
 
 // other standard headers
@@ -818,7 +819,6 @@ pascal  OSStatus  MoreProcGetProcessTypeSignature(
 //
 
 #include "wx/mac/corefoundation/cfstring.h"
-#include "wx/intl.h" //wxLocale for wxCFString
 
 #define wxCF_RELEASE true
 #define wxCF_RETAIN  false
index aa64dc2d0cd467d35ed8e1fa35da5912dee2e356..8b7fed15a70d3c7d62da072316f32790066f5cc7 100644 (file)
 
 #include "wx/wxprec.h"
 
-#include "wx/app.h"
 #include "wx/msgdlg.h"
-#include "wx/intl.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
+#include "wx/app.h"
 #include "wx/mac/uma.h"
 
 
@@ -294,4 +298,3 @@ int wxMessageDialog::ShowModal()
 
     return resultbutton;
 }
-
index 32147daa8a3fd92882115192483954a282ef85fe..01c41c4b50d310110ff2fac345dd50516a629334 100644 (file)
 #ifndef WX_PRECOMP
     #include "wx/object.h"
     #include "wx/string.h"
+    #include "wx/intl.h"
 #endif
 
 #include "wx/log.h"
 #include "wx/file.h"
 #include "wx/timer.h"
-#include "wx/intl.h"
 
 // Carbon QT Implementation Details -
 //
index 36a9d22ced6ad7b2a3092fdb5c97196787bcfac8..fddd31d2bc6987539bba26bef7d1276e542e5eff 100644 (file)
 
 #if wxUSE_TEXTCTRL
 
+#include "wx/textctrl.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
 
 #ifdef __DARWIN__
-  #include <sys/types.h>
-  #include <sys/stat.h>
+    #include <sys/types.h>
+    #include <sys/stat.h>
 #else
-  #include <stat.h>
+    #include <stat.h>
 #endif
 
 #include "wx/msgdlg.h"
 #include "wx/dc.h"
 #include "wx/button.h"
 #include "wx/toplevel.h"
-#include "wx/textctrl.h"
 #include "wx/settings.h"
 #include "wx/filefn.h"
 #include "wx/utils.h"
 #include "wx/sysopt.h"
 #include "wx/menu.h"
-#include "wx/intl.h"
 
 #if defined(__BORLANDC__) && !defined(__WIN32__)
   #include <alloc.h>
@@ -882,8 +885,8 @@ void wxTextCtrl::OnChar(wxKeyEvent& event)
 
     if ( key == 'a' && event.MetaDown() )
     {
-        SelectAll() ;     
-        
+        SelectAll() ;
+
         return ;
     }
 
@@ -1574,11 +1577,11 @@ wxString wxMacMLTEControl::GetStringValue() const
                 (((UniChar*)*theText)[actualSize]) = 0 ;
                 wxMBConvUTF16 converter ;
                 size_t noChars = converter.MB2WC( NULL , (const char*)*theText , 0 ) ;
-                               wxASSERT_MSG( noChars != wxCONV_FAILED, _T("Unable to count the number of characters in this string!") );
+                wxASSERT_MSG( noChars != wxCONV_FAILED, _T("Unable to count the number of characters in this string!") );
                 ptr = new wxChar[noChars + 1] ;
 
                 noChars = converter.MB2WC( ptr , (const char*)*theText , noChars + 1 ) ;
-                               wxASSERT_MSG( noChars != wxCONV_FAILED, _T("Conversion of string failed!") );
+                wxASSERT_MSG( noChars != wxCONV_FAILED, _T("Conversion of string failed!") );
                 ptr[noChars] = 0 ;
                 HUnlock( theText ) ;
 #endif
index 0fce7375e47494bd3a2462e0aa1f3b8ca1742c07..2a71dd28909cb9efd79eb5e37e4cee08e4653141 100644 (file)
@@ -6,12 +6,17 @@
 // Created:     1998-01-01
 // RCS-ID:      $Id$
 // Copyright:   (c) Stefan Csomor
-// Licence:       wxWindows licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #include "wx/wxprec.h"
 
 #include "wx/utils.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/app.h"
 #include "wx/apptrait.h"
 
@@ -19,8 +24,6 @@
     #include "wx/mac/uma.h"
     #include "wx/font.h"
     #include "wx/toplevel.h"
-#else
-    #include "wx/intl.h"
 #endif
 
 #include <ctype.h>
@@ -174,7 +177,7 @@ Boolean IsMetroNubInstalled()
                         kMetroNubUserAPIVersion <= block->apiHiVersion)
                     {
                         // success!
-                        gMetroNubEntry = block; 
+                        gMetroNubEntry = block;
                     }
                 }
             }
@@ -744,7 +747,7 @@ void wxMacWakeUp()
         }
         if ( err == noErr )
         {
-            
+
             if ( IsEventInQueue( GetMainEventQueue() , s_wakeupEvent ) )
                 return;
             s_wakeupEvent.SetCurrentTime();
@@ -1425,14 +1428,14 @@ void wxMacControl::ScrollRect( wxRect *r , int dx , int dy )
 OSType wxMacCreator = 'WXMC';
 OSType wxMacControlProperty = 'MCCT';
 
-void wxMacControl::SetReferenceInNativeControl() 
+void wxMacControl::SetReferenceInNativeControl()
 {
     void * data = this;
     verify_noerr( SetControlProperty ( m_controlRef ,
         wxMacCreator,wxMacControlProperty, sizeof(data), &data ) );
 }
 
-wxMacControl* wxMacControl::GetReferenceFromNativeControl(ControlRef control) 
+wxMacControl* wxMacControl::GetReferenceFromNativeControl(ControlRef control)
 {
     wxMacControl* ctl = NULL;
     UInt32 actualSize;
@@ -1482,10 +1485,10 @@ pascal OSStatus wxMacDataBrowserControl::DataBrowserGetSetItemDataProc(
 }
 
 pascal Boolean wxMacDataBrowserControl::DataBrowserCompareProc(
-    ControlRef browser, 
-    DataBrowserItemID itemOneID, 
-    DataBrowserItemID itemTwoID, 
-    DataBrowserPropertyID sortProperty) 
+    ControlRef browser,
+    DataBrowserItemID itemOneID,
+    DataBrowserItemID itemTwoID,
+    DataBrowserPropertyID sortProperty)
 {
     wxMacDataBrowserControl* ctl = dynamic_cast<wxMacDataBrowserControl*>( wxMacControl::GetReferenceFromNativeControl( browser ) );
     if ( ctl != 0 )
@@ -1500,7 +1503,7 @@ DataBrowserItemNotificationUPP gDataBrowserItemNotificationUPP = NULL;
 DataBrowserItemCompareUPP gDataBrowserItemCompareUPP = NULL;
 
 wxMacDataBrowserControl::wxMacDataBrowserControl( wxWindow* peer, const wxPoint& pos, const wxSize& size, long style) : wxMacControl( peer )
-{       
+{
     Rect bounds = wxMacGetBoundsForControl( peer, pos, size );
     OSStatus err = ::CreateDataBrowserControl(
         MAC_WXHWND(peer->MacGetTopLevelWindowRef()),
@@ -1534,17 +1537,17 @@ wxMacDataBrowserControl::wxMacDataBrowserControl( wxWindow* peer, const wxPoint&
 OSStatus wxMacDataBrowserControl::GetItemCount( DataBrowserItemID container,
     Boolean recurse,
     DataBrowserItemState state,
-    UInt32 *numItems) const 
+    UInt32 *numItems) const
 {
-    return GetDataBrowserItemCount( m_controlRef, container, recurse, state, numItems );    
+    return GetDataBrowserItemCount( m_controlRef, container, recurse, state, numItems );
 }
 
 OSStatus wxMacDataBrowserControl::GetItems( DataBrowserItemID container,
     Boolean recurse,
     DataBrowserItemState state,
-    Handle items) const 
+    Handle items) const
 {
-    return GetDataBrowserItems( m_controlRef, container, recurse, state, items );    
+    return GetDataBrowserItems( m_controlRef, container, recurse, state, items );
 }
 
 OSStatus wxMacDataBrowserControl::SetSelectionFlags( DataBrowserSelectionFlags options )
@@ -1588,7 +1591,7 @@ OSStatus wxMacDataBrowserControl::SetCallbacks(const DataBrowserCallbacks *callb
     return SetDataBrowserCallbacks( m_controlRef, callbacks );
 }
 
-OSStatus wxMacDataBrowserControl::UpdateItems( 
+OSStatus wxMacDataBrowserControl::UpdateItems(
     DataBrowserItemID container,
     UInt32 numItems,
     const DataBrowserItemID *items,
@@ -1652,166 +1655,166 @@ OSStatus wxMacDataBrowserControl::GetItemRow( DataBrowserItemID item, DataBrowse
     return GetDataBrowserTableViewItemRow( m_controlRef, item, row );
 }
 
-OSStatus wxMacDataBrowserControl::SetDefaultRowHeight( UInt16 height ) 
+OSStatus wxMacDataBrowserControl::SetDefaultRowHeight( UInt16 height )
 {
-    return SetDataBrowserTableViewRowHeight( m_controlRef , height );   
+    return SetDataBrowserTableViewRowHeight( m_controlRef , height );
 }
 
-OSStatus wxMacDataBrowserControl::GetDefaultRowHeight( UInt16 * height ) const 
+OSStatus wxMacDataBrowserControl::GetDefaultRowHeight( UInt16 * height ) const
 {
-    return GetDataBrowserTableViewRowHeight( m_controlRef, height );   
+    return GetDataBrowserTableViewRowHeight( m_controlRef, height );
 }
-    
-OSStatus wxMacDataBrowserControl::SetRowHeight( DataBrowserItemID item , UInt16 height) 
+
+OSStatus wxMacDataBrowserControl::SetRowHeight( DataBrowserItemID item , UInt16 height)
 {
     return SetDataBrowserTableViewItemRowHeight( m_controlRef, item , height );
 }
 
-OSStatus wxMacDataBrowserControl::GetRowHeight( DataBrowserItemID item , UInt16 *height) const 
+OSStatus wxMacDataBrowserControl::GetRowHeight( DataBrowserItemID item , UInt16 *height) const
 {
     return GetDataBrowserTableViewItemRowHeight( m_controlRef, item , height);
 }
 
-OSStatus wxMacDataBrowserControl::GetColumnWidth( DataBrowserPropertyID column , UInt16 *width ) const 
+OSStatus wxMacDataBrowserControl::GetColumnWidth( DataBrowserPropertyID column , UInt16 *width ) const
 {
     return GetDataBrowserTableViewNamedColumnWidth( m_controlRef , column , width );
 }
 
-OSStatus wxMacDataBrowserControl::SetColumnWidth( DataBrowserPropertyID column , UInt16 width ) 
+OSStatus wxMacDataBrowserControl::SetColumnWidth( DataBrowserPropertyID column , UInt16 width )
 {
     return SetDataBrowserTableViewNamedColumnWidth( m_controlRef , column , width );
 }
 
-OSStatus wxMacDataBrowserControl::GetDefaultColumnWidth( UInt16 *width ) const 
+OSStatus wxMacDataBrowserControl::GetDefaultColumnWidth( UInt16 *width ) const
 {
     return GetDataBrowserTableViewColumnWidth( m_controlRef , width );
 }
 
-OSStatus wxMacDataBrowserControl::SetDefaultColumnWidth( UInt16 width ) 
+OSStatus wxMacDataBrowserControl::SetDefaultColumnWidth( UInt16 width )
 {
     return SetDataBrowserTableViewColumnWidth( m_controlRef , width );
 }
 
-OSStatus wxMacDataBrowserControl::GetColumnCount(UInt32* numColumns) const 
+OSStatus wxMacDataBrowserControl::GetColumnCount(UInt32* numColumns) const
 {
     return GetDataBrowserTableViewColumnCount( m_controlRef, numColumns);
 }
 
-OSStatus wxMacDataBrowserControl::GetColumnPosition( DataBrowserPropertyID column, 
+OSStatus wxMacDataBrowserControl::GetColumnPosition( DataBrowserPropertyID column,
     UInt32 *position) const
 {
     return GetDataBrowserTableViewColumnPosition( m_controlRef , column , position);
 }
 
-OSStatus wxMacDataBrowserControl::SetColumnPosition( DataBrowserPropertyID column, UInt32 position) 
+OSStatus wxMacDataBrowserControl::SetColumnPosition( DataBrowserPropertyID column, UInt32 position)
 {
     return SetDataBrowserTableViewColumnPosition( m_controlRef , column , position);
 }
 
-OSStatus wxMacDataBrowserControl::GetScrollPosition( UInt32 *top , UInt32 *left ) const 
+OSStatus wxMacDataBrowserControl::GetScrollPosition( UInt32 *top , UInt32 *left ) const
 {
     return GetDataBrowserScrollPosition( m_controlRef , top , left );
 }
 
-OSStatus wxMacDataBrowserControl::SetScrollPosition( UInt32 top , UInt32 left ) 
+OSStatus wxMacDataBrowserControl::SetScrollPosition( UInt32 top , UInt32 left )
 {
     return SetDataBrowserScrollPosition( m_controlRef , top , left );
 }
 
-OSStatus wxMacDataBrowserControl::GetSortProperty( DataBrowserPropertyID *column ) const 
+OSStatus wxMacDataBrowserControl::GetSortProperty( DataBrowserPropertyID *column ) const
 {
     return GetDataBrowserSortProperty( m_controlRef , column );
 }
 
-OSStatus wxMacDataBrowserControl::SetSortProperty( DataBrowserPropertyID column ) 
+OSStatus wxMacDataBrowserControl::SetSortProperty( DataBrowserPropertyID column )
 {
     return SetDataBrowserSortProperty( m_controlRef , column );
 }
-     
-OSStatus wxMacDataBrowserControl::GetSortOrder( DataBrowserSortOrder *order ) const 
+
+OSStatus wxMacDataBrowserControl::GetSortOrder( DataBrowserSortOrder *order ) const
 {
     return GetDataBrowserSortOrder( m_controlRef , order );
 }
 
-OSStatus wxMacDataBrowserControl::SetSortOrder( DataBrowserSortOrder order ) 
+OSStatus wxMacDataBrowserControl::SetSortOrder( DataBrowserSortOrder order )
 {
     return SetDataBrowserSortOrder( m_controlRef , order );
 }
 
-OSStatus wxMacDataBrowserControl::GetPropertyFlags( DataBrowserPropertyID property, 
-    DataBrowserPropertyFlags *flags ) const 
+OSStatus wxMacDataBrowserControl::GetPropertyFlags( DataBrowserPropertyID property,
+    DataBrowserPropertyFlags *flags ) const
 {
     return GetDataBrowserPropertyFlags( m_controlRef , property , flags );
 }
 
-OSStatus wxMacDataBrowserControl::SetPropertyFlags( DataBrowserPropertyID property, 
-    DataBrowserPropertyFlags flags ) 
+OSStatus wxMacDataBrowserControl::SetPropertyFlags( DataBrowserPropertyID property,
+    DataBrowserPropertyFlags flags )
 {
     return SetDataBrowserPropertyFlags( m_controlRef , property , flags );
 }
 
-OSStatus wxMacDataBrowserControl::GetHeaderDesc( DataBrowserPropertyID property, 
-    DataBrowserListViewHeaderDesc *desc ) const 
+OSStatus wxMacDataBrowserControl::GetHeaderDesc( DataBrowserPropertyID property,
+    DataBrowserListViewHeaderDesc *desc ) const
 {
     return GetDataBrowserListViewHeaderDesc( m_controlRef , property , desc );
 }
 
-OSStatus wxMacDataBrowserControl::SetHeaderDesc( DataBrowserPropertyID property, 
-    DataBrowserListViewHeaderDesc *desc ) 
+OSStatus wxMacDataBrowserControl::SetHeaderDesc( DataBrowserPropertyID property,
+    DataBrowserListViewHeaderDesc *desc )
 {
-    return SetDataBrowserListViewHeaderDesc( m_controlRef , property , desc );    
+    return SetDataBrowserListViewHeaderDesc( m_controlRef , property , desc );
 }
 
-OSStatus wxMacDataBrowserControl::SetDisclosureColumn( DataBrowserPropertyID property , 
-    Boolean expandableRows ) 
+OSStatus wxMacDataBrowserControl::SetDisclosureColumn( DataBrowserPropertyID property ,
+    Boolean expandableRows )
 {
     return SetDataBrowserListViewDisclosureColumn( m_controlRef, property, expandableRows);
 }
 
 // ============================================================================
-// Higher-level Databrowser 
+// Higher-level Databrowser
 // ============================================================================
 //
 // basing on data item objects
 //
 
 wxMacDataItem::wxMacDataItem()
-{    
+{
 }
 
-wxMacDataItem::~wxMacDataItem() 
-{   
+wxMacDataItem::~wxMacDataItem()
+{
 }
-    
-bool wxMacDataItem::IsLessThan(wxMacDataItemBrowserControl *owner , 
-    const wxMacDataItem*, 
+
+bool wxMacDataItem::IsLessThan(wxMacDataItemBrowserControl *owner ,
+    const wxMacDataItem*,
     DataBrowserPropertyID property) const
 {
     return false;
 }
 
-OSStatus wxMacDataItem::GetSetData(wxMacDataItemBrowserControl *owner , 
+OSStatus wxMacDataItem::GetSetData(wxMacDataItemBrowserControl *owner ,
     DataBrowserPropertyID property,
     DataBrowserItemDataRef itemData,
-    bool changeValue ) 
+    bool changeValue )
 {
     return errDataBrowserPropertyNotSupported;
 }
 
-void wxMacDataItem::Notification(wxMacDataItemBrowserControl *owner , 
+void wxMacDataItem::Notification(wxMacDataItemBrowserControl *owner ,
     DataBrowserItemNotification message,
     DataBrowserItemDataRef itemData ) const
 {
 }
 
 
-wxMacDataItemBrowserControl::wxMacDataItemBrowserControl( wxWindow* peer , const wxPoint& pos, const wxSize& size, long style) : 
+wxMacDataItemBrowserControl::wxMacDataItemBrowserControl( wxWindow* peer , const wxPoint& pos, const wxSize& size, long style) :
     wxMacDataBrowserControl( peer, pos, size, style )
-{       
+{
     m_suppressSelection = false;
 }
-    
-wxMacDataItemBrowserSelectionSuppressor::wxMacDataItemBrowserSelectionSuppressor(wxMacDataItemBrowserControl *browser) 
+
+wxMacDataItemBrowserSelectionSuppressor::wxMacDataItemBrowserSelectionSuppressor(wxMacDataItemBrowserControl *browser)
 {
     m_former = browser->SuppressSelection(true);
     m_browser = browser;
@@ -1830,18 +1833,18 @@ bool  wxMacDataItemBrowserControl::SuppressSelection( bool suppress )
     return former;
 }
 
-Boolean wxMacDataItemBrowserControl::CompareItems(DataBrowserItemID itemOneID, 
-    DataBrowserItemID itemTwoID, 
-    DataBrowserPropertyID sortProperty) 
+Boolean wxMacDataItemBrowserControl::CompareItems(DataBrowserItemID itemOneID,
+    DataBrowserItemID itemTwoID,
+    DataBrowserPropertyID sortProperty)
 {
     wxMacDataItem* itemOne = (wxMacDataItem*) itemOneID;
     wxMacDataItem* itemTwo = (wxMacDataItem*) itemTwoID;
     return CompareItems( itemOne , itemTwo , sortProperty );
 }
 
-Boolean wxMacDataItemBrowserControl::CompareItems(const wxMacDataItem*  itemOne, 
-    const wxMacDataItem*  itemTwo, 
-    DataBrowserPropertyID sortProperty) 
+Boolean wxMacDataItemBrowserControl::CompareItems(const wxMacDataItem*  itemOne,
+    const wxMacDataItem*  itemTwo,
+    DataBrowserPropertyID sortProperty)
 {
     Boolean retval = false;
     if ( itemOne != NULL )
@@ -1853,7 +1856,7 @@ OSStatus wxMacDataItemBrowserControl::GetSetItemData(
     DataBrowserItemID itemID,
     DataBrowserPropertyID property,
     DataBrowserItemDataRef itemData,
-    Boolean changeValue ) 
+    Boolean changeValue )
 {
     wxMacDataItem* item = (wxMacDataItem*) itemID;
     return GetSetItemData(item, property, itemData , changeValue );
@@ -1863,7 +1866,7 @@ OSStatus wxMacDataItemBrowserControl::GetSetItemData(
     wxMacDataItem* item,
     DataBrowserPropertyID property,
     DataBrowserItemDataRef itemData,
-    Boolean changeValue ) 
+    Boolean changeValue )
 {
     OSStatus err = errDataBrowserPropertyNotSupported;
     switch( property )
@@ -1877,7 +1880,7 @@ OSStatus wxMacDataItemBrowserControl::GetSetItemData(
             if ( item != NULL )
                 err = item->GetSetData( this, property , itemData , changeValue );
             break;
-        
+
     }
     return err;
 }
@@ -1885,36 +1888,36 @@ OSStatus wxMacDataItemBrowserControl::GetSetItemData(
 void wxMacDataItemBrowserControl::ItemNotification(
     DataBrowserItemID itemID,
     DataBrowserItemNotification message,
-    DataBrowserItemDataRef itemData) 
+    DataBrowserItemDataRef itemData)
 {
-    wxMacDataItem* item = (wxMacDataItem*) itemID;    
+    wxMacDataItem* item = (wxMacDataItem*) itemID;
     ItemNotification( item , message, itemData);
 }
 
 void wxMacDataItemBrowserControl::ItemNotification(
     const wxMacDataItem* item,
     DataBrowserItemNotification message,
-    DataBrowserItemDataRef itemData) 
+    DataBrowserItemDataRef itemData)
 {
     if (item != NULL)
         item->Notification( this, message, itemData);
 }
 
-unsigned int wxMacDataItemBrowserControl::GetItemCount(const wxMacDataItem* container, 
-        bool recurse , DataBrowserItemState state) const 
+unsigned int wxMacDataItemBrowserControl::GetItemCount(const wxMacDataItem* container,
+        bool recurse , DataBrowserItemState state) const
 {
     UInt32 numItems = 0;
-    verify_noerr( wxMacDataBrowserControl::GetItemCount( (DataBrowserItemID)container, 
-        recurse, state, &numItems ) );    
+    verify_noerr( wxMacDataBrowserControl::GetItemCount( (DataBrowserItemID)container,
+        recurse, state, &numItems ) );
     return numItems;
 }
 
-void wxMacDataItemBrowserControl::GetItems(const wxMacDataItem* container, 
-    bool recurse , DataBrowserItemState state, wxArrayMacDataItemPtr &items) const 
+void wxMacDataItemBrowserControl::GetItems(const wxMacDataItem* container,
+    bool recurse , DataBrowserItemState state, wxArrayMacDataItemPtr &items) const
 {
     Handle handle = NewHandle(0);
-    verify_noerr( wxMacDataBrowserControl::GetItems( (DataBrowserItemID)container , 
-        recurse , state, handle) );    
+    verify_noerr( wxMacDataBrowserControl::GetItems( (DataBrowserItemID)container ,
+        recurse , state, handle) );
 
     int itemCount = GetHandleSize(handle)/sizeof(DataBrowserItemID);
     HLock( handle );
@@ -1940,17 +1943,17 @@ wxMacDataItem*  wxMacDataItemBrowserControl::GetItemFromLine(unsigned int n) con
     DataBrowserItemID id;
     OSStatus err =  GetItemID( (DataBrowserTableViewRowIndex) n , &id);
     wxASSERT( err == noErr);
-    return (wxMacDataItem*) id;    
+    return (wxMacDataItem*) id;
 }
 
-void wxMacDataItemBrowserControl::UpdateItem(const wxMacDataItem *container, 
+void wxMacDataItemBrowserControl::UpdateItem(const wxMacDataItem *container,
         const wxMacDataItem *item , DataBrowserPropertyID property) const
 {
-    verify_noerr( wxMacDataBrowserControl::UpdateItems((DataBrowserItemID)container, 1, 
+    verify_noerr( wxMacDataBrowserControl::UpdateItems((DataBrowserItemID)container, 1,
         (DataBrowserItemID*) &item, kDataBrowserItemNoProperty /* notSorted */, property ) );
 }
 
-void wxMacDataItemBrowserControl::UpdateItems(const wxMacDataItem *container, 
+void wxMacDataItemBrowserControl::UpdateItems(const wxMacDataItem *container,
         wxArrayMacDataItemPtr &itemArray , DataBrowserPropertyID property) const
 {
     unsigned int noItems = itemArray.GetCount();
@@ -1958,66 +1961,66 @@ void wxMacDataItemBrowserControl::UpdateItems(const wxMacDataItem *container,
     for ( unsigned int i = 0; i < noItems; ++i )
         items[i] = (DataBrowserItemID) itemArray[i];
 
-    verify_noerr( wxMacDataBrowserControl::UpdateItems((DataBrowserItemID)container, noItems,  
+    verify_noerr( wxMacDataBrowserControl::UpdateItems((DataBrowserItemID)container, noItems,
         items, kDataBrowserItemNoProperty /* notSorted */, property ) );
     delete [] items;
 }
 
 void wxMacDataItemBrowserControl::AddItem(wxMacDataItem *container, wxMacDataItem *item)
 {
-    verify_noerr( wxMacDataBrowserControl::AddItems( (DataBrowserItemID)container, 1,  
+    verify_noerr( wxMacDataBrowserControl::AddItems( (DataBrowserItemID)container, 1,
         (DataBrowserItemID*) &item, kDataBrowserItemNoProperty ) );
 }
 
-void wxMacDataItemBrowserControl::AddItems(wxMacDataItem *container, wxArrayMacDataItemPtr &itemArray ) 
+void wxMacDataItemBrowserControl::AddItems(wxMacDataItem *container, wxArrayMacDataItemPtr &itemArray )
 {
     unsigned int noItems = itemArray.GetCount();
     DataBrowserItemID *items = new DataBrowserItemID[noItems];
     for ( unsigned int i = 0; i < noItems; ++i )
         items[i] = (DataBrowserItemID) itemArray[i];
 
-    verify_noerr( wxMacDataBrowserControl::AddItems( (DataBrowserItemID)container, noItems,  
+    verify_noerr( wxMacDataBrowserControl::AddItems( (DataBrowserItemID)container, noItems,
         (DataBrowserItemID*) items, kDataBrowserItemNoProperty ) );
     delete [] items;
 }
 
-void wxMacDataItemBrowserControl::RemoveItem(wxMacDataItem *container, wxMacDataItem* item) 
+void wxMacDataItemBrowserControl::RemoveItem(wxMacDataItem *container, wxMacDataItem* item)
 {
-    OSStatus err = wxMacDataBrowserControl::RemoveItems( (DataBrowserItemID)container, 1, 
+    OSStatus err = wxMacDataBrowserControl::RemoveItems( (DataBrowserItemID)container, 1,
         (UInt32*) &item, kDataBrowserItemNoProperty );
     verify_noerr( err );
 }
 
-void wxMacDataItemBrowserControl::RemoveItems(wxMacDataItem *container, wxArrayMacDataItemPtr &itemArray) 
+void wxMacDataItemBrowserControl::RemoveItems(wxMacDataItem *container, wxArrayMacDataItemPtr &itemArray)
 {
     unsigned int noItems = itemArray.GetCount();
     DataBrowserItemID *items = new DataBrowserItemID[noItems];
     for ( unsigned int i = 0; i < noItems; ++i )
         items[i] = (DataBrowserItemID) itemArray[i];
 
-    OSStatus err = wxMacDataBrowserControl::RemoveItems( (DataBrowserItemID)container, noItems, 
+    OSStatus err = wxMacDataBrowserControl::RemoveItems( (DataBrowserItemID)container, noItems,
         (UInt32*) items, kDataBrowserItemNoProperty );
     verify_noerr( err );
     delete [] items;
 }
 
-void wxMacDataItemBrowserControl::RemoveAllItems(wxMacDataItem *container) 
+void wxMacDataItemBrowserControl::RemoveAllItems(wxMacDataItem *container)
 {
     OSStatus err = wxMacDataBrowserControl::RemoveItems( (DataBrowserItemID)container, 0 , NULL , kDataBrowserItemNoProperty );
     verify_noerr( err );
 }
 
-void wxMacDataItemBrowserControl::SetSelectedItem(wxMacDataItem* item , DataBrowserSetOption option) 
+void wxMacDataItemBrowserControl::SetSelectedItem(wxMacDataItem* item , DataBrowserSetOption option)
 {
     verify_noerr(wxMacDataBrowserControl::SetSelectedItems( 1, (DataBrowserItemID*) &item, option ));
 }
 
-void wxMacDataItemBrowserControl::SetSelectedAllItems(DataBrowserSetOption option) 
+void wxMacDataItemBrowserControl::SetSelectedAllItems(DataBrowserSetOption option)
 {
     verify_noerr(wxMacDataBrowserControl::SetSelectedItems( 0 , NULL , option ));
 }
 
-void wxMacDataItemBrowserControl::SetSelectedItems(wxArrayMacDataItemPtr &itemArray , DataBrowserSetOption option) 
+void wxMacDataItemBrowserControl::SetSelectedItems(wxArrayMacDataItemPtr &itemArray , DataBrowserSetOption option)
 {
     unsigned int noItems = itemArray.GetCount();
     DataBrowserItemID *items = new DataBrowserItemID[noItems];
@@ -2033,17 +2036,17 @@ Boolean wxMacDataItemBrowserControl::IsItemSelected( const wxMacDataItem* item)
     return wxMacDataBrowserControl::IsItemSelected( (DataBrowserItemID) item);
 }
 
-void wxMacDataItemBrowserControl::RevealItem( wxMacDataItem* item, DataBrowserRevealOptions options) 
+void wxMacDataItemBrowserControl::RevealItem( wxMacDataItem* item, DataBrowserRevealOptions options)
 {
     verify_noerr(wxMacDataBrowserControl::RevealItem( (DataBrowserItemID) item, kDataBrowserNoItem , options ) );
 }
 
-void wxMacDataItemBrowserControl::GetSelectionAnchor( wxMacDataItemPtr* first , wxMacDataItemPtr* last) const 
+void wxMacDataItemBrowserControl::GetSelectionAnchor( wxMacDataItemPtr* first , wxMacDataItemPtr* last) const
 {
-    verify_noerr(wxMacDataBrowserControl::GetSelectionAnchor( (DataBrowserItemID*) first, (DataBrowserItemID*) last) );    
+    verify_noerr(wxMacDataBrowserControl::GetSelectionAnchor( (DataBrowserItemID*) first, (DataBrowserItemID*) last) );
 }
 
-    
+
 
 //
 // Tab Control
@@ -2121,7 +2124,7 @@ CGColorSpaceRef wxMacGetGenericRGBColorSpace()
                 wxASSERT_MSG( genericRGBColorSpace != NULL, wxT("couldn't create the generic RGB color space") );
 
                 // we opened the profile so it is up to us to close it
-                CMCloseProfile(genericRGBProfile); 
+                CMCloseProfile(genericRGBProfile);
             }
         }
     }
index 3cfa9de109ebc5437bc2f58ca20b2940efb5c657..a0c258957165f077298cb80a5b56fa1eb7b76e4a 100644 (file)
     #pragma hdrstop
 #endif
 
+#include "wx/app.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/window.h"
 #include "wx/frame.h"
 #include "wx/button.h"
-#include "wx/app.h"
 #include "wx/utils.h"
 #include "wx/gdicmn.h"
 #include "wx/pen.h"
 #include "wx/brush.h"
 #include "wx/cursor.h"
-#include "wx/intl.h"
 #include "wx/icon.h"
 #include "wx/palette.h"
 #include "wx/dc.h"
index 81fe955bf53c13a9ec8ca46b6d5089ba3301ec4d..146534dfd25a79e49426b4c059af6e0a4ba3caf2 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        clipbrd.cpp
+// Name:        src/mac/classic/clipbrd.cpp
 // Purpose:     Clipboard functionality
 // Author:      Stefan Csomor
 // Modified by:
@@ -9,13 +9,19 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
+#include "wx/wxprec.h"
+
+#include "wx/clipbrd.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/app.h"
 #include "wx/frame.h"
 #include "wx/bitmap.h"
 #include "wx/utils.h"
 #include "wx/metafile.h"
-#include "wx/clipbrd.h"
-#include "wx/intl.h"
 #include "wx/log.h"
 
 #ifndef __DARWIN__
@@ -240,7 +246,7 @@ bool wxClipboard::AddData( wxDataObject *data )
         size_t sz = data->GetDataSize( array[i] ) ;
         void* buf = malloc( sz + 1 ) ;
         if ( buf )
-        {        
+        {
             data->GetDataHere( array[i] , buf ) ;
             OSType mactype = 0 ;
             switch ( array[i].GetType() )
@@ -281,15 +287,15 @@ void wxClipboard::Close()
     wxCHECK_RET( m_open, wxT("clipboard not open") );
 
     m_open = false ;
-    
-       // Get rid of cached object.  If this is not done copying from another application will
-       // only work once
+
+    // Get rid of cached object.  If this is not done copying from another application will
+    // only work once
     if (m_data)
     {
         delete m_data;
         m_data = (wxDataObject*) NULL;
-    }    
-           
+    }
+
 }
 
 bool wxClipboard::IsSupported( const wxDataFormat &dataFormat )
index 7ebc988bcad39f9d65010bf0ab16596e266cfb41..56f87a07357c358fd6ef7cbeed11490b4916ff44 100644 (file)
     #pragma hdrstop
 #endif
 
+#include "wx/filedlg.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/app.h"
 #include "wx/utils.h"
 #include "wx/dialog.h"
-#include "wx/filedlg.h"
-#include "wx/intl.h"
 #include "wx/tokenzr.h"
 #include "wx/filename.h"
 
index 40dd00318d843b35ccd5d22b70153dcd5f1d29f2..fa8a5fc51b766784fa1d4bc44cd5dd7151099f9e 100644 (file)
     #pragma hdrstop
 #endif
 
+#include "wx/mac/mimetype.h"
+
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
     #include "wx/string.h"
+    #include "wx/intl.h"
     #if wxUSE_GUI
         #include "wx/icon.h"
     #endif
 
 #include "wx/log.h"
 #include "wx/file.h"
-#include "wx/intl.h"
 #include "wx/confbase.h"
 
-#include "wx/mac/mimetype.h"
-
 // other standard headers
 #include <ctype.h>
 
index bbb4cca7df8210ee94bebe8a8c781e58f8f909b3..787ba68f6c7848c82d5105a15e3a4a0d98ef3057 100644 (file)
@@ -9,9 +9,16 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#include "wx/app.h"
+// for compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 #include "wx/msgdlg.h"
-#include "wx/intl.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
+#include "wx/app.h"
 #include "wx/mac/uma.h"
 
 IMPLEMENT_CLASS(wxMessageDialog, wxDialog)
@@ -255,4 +262,3 @@ int wxMessageDialog::ShowModal()
 
     return resultbutton ;
 }
-
index f5a8ff1bd5738a80979e3b71525fb0a368e369d3..d5e2c91cfb80225390c3b74155ad894077c02c5e 100644 (file)
@@ -6,20 +6,23 @@
 // Created:     1998-01-01
 // RCS-ID:      $Id$
 // Copyright:   (c) Stefan Csomor
-// Licence:       wxWindows licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #include "wx/wxprec.h"
 
 #include "wx/utils.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/app.h"
 #include "wx/apptrait.h"
 
 #if wxUSE_GUI
     #include "wx/mac/uma.h"
     #include "wx/font.h"
-#else
-    #include "wx/intl.h"
 #endif
 
 #include <ctype.h>
@@ -1218,7 +1221,7 @@ void wxMacConvertNewlines10To13( char * data )
 
 void wxMacConvertNewlines13To10( wxString * data )
 {
-    size_t len = data->Length() ;
+    size_t len = data->length() ;
 
     if ( len == 0 || wxStrchr(data->c_str(),0x0d)==NULL)
         return ;
@@ -1232,9 +1235,9 @@ void wxMacConvertNewlines13To10( wxString * data )
 
 void wxMacConvertNewlines10To13( wxString * data )
 {
-    size_t len = data->Length() ;
+    size_t len = data->length() ;
 
-    if ( data->Length() == 0 || wxStrchr(data->c_str(),0x0a)==NULL)
+    if ( data->empty() || wxStrchr(data->c_str(),0x0a)==NULL)
         return ;
 
     wxString temp(*data) ;
index 39206d2f38546b5d0f91ed95478370befee8a1c2..89014b388ebd4883ee29ac938129a9adf6c740e8 100644 (file)
 #endif
 
 #include "wx/bitmap.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/icon.h"
 #include "wx/filefn.h"
 #include "wx/image.h"
 #include "wx/dcmemory.h"
 #include "wx/utils.h"
 #include "wx/log.h"
-#include "wx/intl.h"
 #include "wx/image.h"
 #include "wx/xpmdecod.h"
 
index 5fdf62fae95b9df6fd83e29bf25c9ac7acabe75d..97e4f7c7e2de4bb1e2b8ba61716058186429c0f2 100644 (file)
 #endif
 
 #include "wx/cursor.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/module.h"
 #include "wx/utils.h"
 #include "wx/log.h"
-#include "wx/intl.h"
 #include "wx/hashmap.h"
 
 #include "wx/mgl/private.h"
index d72278809802e3e920c04499c5ec92b5f7e94013..415af9a9732cdf21a7b488b04ab31f4e31aa985b 100644 (file)
@@ -18,9 +18,9 @@
 
 #ifndef WX_PRECOMP
     #include "wx/string.h"
+    #include "wx/intl.h"
 #endif
 
-#include "wx/intl.h"
 #include "wx/apptrait.h"
 #include "wx/log.h"
 #include "wx/process.h"
index 8b52088724b1a6f407284fedffd10d8ce361174c..e17240229514c5b5f1acfc56bf396afaaa43322f 100644 (file)
@@ -23,8 +23,9 @@
     #pragma hdrstop
 #endif
 
+#include "wx/window.h"
+
 #ifndef WX_PRECOMP
-    #include "wx/window.h"
     #include "wx/msgdlg.h"
     #include "wx/accel.h"
     #include "wx/dc.h"
@@ -32,6 +33,7 @@
     #include "wx/utils.h"
     #include "wx/app.h"
     #include "wx/panel.h"
+    #include "wx/intl.h"
 #endif
 
 #if wxUSE_DRAG_AND_DROP
@@ -41,7 +43,6 @@
 #include "wx/log.h"
 #include "wx/sysopt.h"
 #include "wx/mgl/private.h"
-#include "wx/intl.h"
 #include "wx/dcscreen.h"
 #include "wx/caret.h"
 
index 593f0743bf21506452511b452bf8c8f1140b9c68..61fb6965971ef8dcb740a46e4fc21cb2dd518bd9 100644 (file)
 #define XtDisplay XTDISPLAY
 #endif
 
+#include "wx/app.h"
+
 #ifndef WX_PRECOMP
     #include "wx/hash.h"
+    #include "wx/intl.h"
 #endif
 
-#include "wx/app.h"
 #include "wx/utils.h"
 #include "wx/module.h"
 #include "wx/memory.h"
 #include "wx/log.h"
-#include "wx/intl.h"
 #include "wx/evtloop.h"
 
 #if wxUSE_THREADS
index 202c9d2f51cbcdcbc3b6ef7bac87972704bf56c0..20b664b8df6b5d2ecbff26fb2c821d840c5fc1d8 100644 (file)
 #if wxUSE_DRAG_AND_DROP
 
 #include "wx/dnd.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/window.h"
 #include "wx/app.h"
 #include "wx/gdicmn.h"
-#include "wx/intl.h"
 #include "wx/utils.h"
 #include "wx/log.h"
 
index 3ac03441b955a980ab90d9eb8fe8516771a0dc05..428d1789af0de52e722db1388079fb2b5abc31d1 100644 (file)
 #define XtWindow XTWINDOW
 #endif
 
-#include "wx/utils.h"
 #include "wx/filedlg.h"
-#include "wx/intl.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
+#include "wx/utils.h"
 #include "wx/app.h"
 #include "wx/settings.h"
 #include "wx/tokenzr.h"
index 95105ec2a8ebeb729ff1366fc64821a50f59739d..3ade9492f5ea11d0746ec0eee441e72326d6822d 100644 (file)
 #pragma message enable nosimpint
 #endif
 
-#include "wx/app.h"
-#include "wx/intl.h"
 #include "wx/msgdlg.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
+#include "wx/app.h"
 #include "wx/motif/private.h"
 #include "wx/settings.h"
 
index d3aaab0001048d3e5c6f9034b0a976610c304da1..76e2e536864c77b8a2a60c3659b5c9f1f3e21b29 100644 (file)
 
 #if wxUSE_MIMETYPE
 
+#include "wx/msdos/mimetype.h"
+
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
     #include "wx/string.h"
+    #include "wx/intl.h"
     #if wxUSE_GUI
         #include "wx/icon.h"
     #endif
 
 #include "wx/log.h"
 #include "wx/file.h"
-#include "wx/intl.h"
 #include "wx/confbase.h"
 
-#include "wx/msdos/mimetype.h"
-
 // other standard headers
 #include <ctype.h>
 
index 0c818dbc805cc42cd3564a62ba3616388fa2a2cf..d20fc302d8f44cd598c2705a186d50b124cfd64b 100644 (file)
@@ -19,9 +19,9 @@
 
 #ifndef WX_PRECOMP
     #include "wx/string.h"
+    #include "wx/intl.h"
 #endif
 
-#include "wx/intl.h"
 #include "wx/apptrait.h"
 #include "wx/log.h"
 #include "wx/process.h"
index 9b1c1a6160f7c51b3417989432a05b6dab866e5b..efa5b11d4ab006df47b8fc78bc9daf63e3e6abe2 100644 (file)
     #pragma hdrstop
 #endif
 
+#if wxUSE_WXDIB
+
 #ifndef WX_PRECOMP
     #include "wx/string.h"
     #include "wx/log.h"
+    #include "wx/intl.h"
 #endif //WX_PRECOMP
 
-#if wxUSE_WXDIB
-
 #include "wx/bitmap.h"
-#include "wx/intl.h"
 #include "wx/file.h"
 
 #include <stdio.h>
@@ -800,4 +800,3 @@ wxImage wxDIB::ConvertToImage() const
 #endif // wxUSE_IMAGE
 
 #endif // wxUSE_WXDIB
-
index 95ce39da522626614a09026c9a4ac7359054f91a..fa0cb61a7249d7194dda854d7ce2f75dc72a31f1 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
 #if wxUSE_DRAGIMAGE
 
 #ifndef WX_PRECOMP
-#include <stdio.h>
-#include "wx/window.h"
-#include "wx/dcclient.h"
-#include "wx/dcscreen.h"
-#include "wx/dcmemory.h"
-#include "wx/settings.h"
+    #include <stdio.h>
+    #include "wx/window.h"
+    #include "wx/dcclient.h"
+    #include "wx/dcscreen.h"
+    #include "wx/dcmemory.h"
+    #include "wx/settings.h"
+    #include "wx/intl.h"
 #endif
 
 #include "wx/msw/private.h"
 #include "wx/log.h"
-#include "wx/intl.h"
 #include "wx/frame.h"
 #include "wx/image.h"
 
@@ -298,8 +298,8 @@ bool wxDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullS
         if (!m_hCursorImageList)
         {
 #ifndef SM_CXCURSOR
-                       // Smartphone may not have these metric symbol
-                       int cxCursor = 16;
+            // Smartphone may not have these metric symbol
+            int cxCursor = 16;
             int cyCursor = 16;
 #else
             int cxCursor = ::GetSystemMetrics(SM_CXCURSOR);
index 5b5e3541af3bf32d4589b36e76524734e4031110..69e7c27e1158e180a31fed5ab8fe7569ffc0c620 100644 (file)
     #include "wx/dc.h"
     #include "wx/string.h"
     #include "wx/dcmemory.h"
+    #include "wx/intl.h"
 
     #include <stdio.h>
 #endif
 
 #include "wx/log.h"
-#include "wx/intl.h"
 #include "wx/image.h"
 
 #include "wx/msw/imaglist.h"
index 9dedef77d558df38749131d91f320dd250083a4e..7e78e570da82854a498d5bd7fd21fec966ad11bb 100644 (file)
 
 #if wxUSE_MIMETYPE
 
+#include "wx/msw/mimetype.h"
+
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
     #include "wx/string.h"
+    #include "wx/intl.h"
     #if wxUSE_GUI
         #include "wx/icon.h"
         #include "wx/msgdlg.h"
@@ -30,7 +33,6 @@
 #include "wx/log.h"
 #include "wx/file.h"
 #include "wx/iconloc.h"
-#include "wx/intl.h"
 #include "wx/confbase.h"
 
 #ifdef __WXMSW__
@@ -38,8 +40,6 @@
     #include "wx/msw/private.h"
 #endif // OS
 
-#include "wx/msw/mimetype.h"
-
 // other standard headers
 #include <ctype.h>
 
index c2aab338a665ba9cdc037cd7e7ccf60688acbf1c..d0d050f6f24aa5c164294055c50d1e483e1ea2ce 100644 (file)
@@ -21,9 +21,9 @@
 
 #ifndef WX_PRECOMP
     #include "wx/string.h"
+    #include  "wx/intl.h"
 #endif
 
-#include  "wx/intl.h"
 #include  "wx/log.h"
 #include  "wx/file.h"
 #include  "wx/wfstream.h"
index 2fbcb7fe5265894b7299540ad2b0b17b3231350d..9099fb4b2b35751a78afb08ac27e10a8e8f824d4 100644 (file)
   #pragma hdrstop
 #endif
 
+#if wxUSE_STATUSBAR && wxUSE_NATIVE_STATUSBAR
+
+#include "wx/statusbr.h"
+
 #ifndef WX_PRECOMP
-  #include "wx/frame.h"
-  #include "wx/settings.h"
-  #include "wx/dcclient.h"
+    #include "wx/frame.h"
+    #include "wx/settings.h"
+    #include "wx/dcclient.h"
+    #include "wx/intl.h"
 #endif
 
-#if wxUSE_STATUSBAR && wxUSE_NATIVE_STATUSBAR
-
-#include "wx/intl.h"
 #include "wx/log.h"
-#include "wx/statusbr.h"
 
 #include "wx/msw/private.h"
 #include <windowsx.h>
index 3be9dd4b12fe474cb5364a3d67d1eec26ce5e11b..416e52c751e8fb977ed0a6eacd40bb9adfe10fc9 100644 (file)
@@ -43,6 +43,7 @@
     #include "wx/settings.h"
     #include "wx/statbox.h"
     #include "wx/sizer.h"
+    #include "wx/intl.h"
 #endif
 
 #if wxUSE_OWNER_DRAWN && !defined(__WXUNIVERSAL__)
@@ -86,7 +87,6 @@
     #include "wx/spinctrl.h"
 #endif // wxUSE_SPINCTRL
 
-#include "wx/intl.h"
 #include "wx/log.h"
 
 #include "wx/textctrl.h"
index 7dbd51fc7477ca3111657fafe0214d27841575c5..e512298a934735c625300002610de58e6374e264 100644 (file)
 
 #if wxUSE_MIMETYPE
 
+#include "wx/os2/mimetype.h"
+
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
     #include "wx/string.h"
+    #include "wx/intl.h"
     #if wxUSE_GUI
         #include "wx/icon.h"
     #endif
 #include "wx/log.h"
 #include "wx/file.h"
 #include "wx/iconloc.h"
-#include "wx/intl.h"
 #include "wx/confbase.h"
 
-#include "wx/os2/mimetype.h"
-
 // other standard headers
 #include <ctype.h>
 
index 87d0c0611a0b67e00259d1d9c94ad8cf4b19196e..e1dd0bf7d422085e37bf29afb98ca5d8089634fe 100644 (file)
@@ -6,7 +6,6 @@
 // Created:     04/22/98
 // RCS-ID:      $Id$
 // Copyright:   (c) Stefan Neis (2003)
-//
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 
 #if wxUSE_THREADS
 
-#include <stdio.h>
+#include "wx/thread.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif //WX_PRECOMP
 
 #include "wx/app.h"
 #include "wx/apptrait.h"
 #include "wx/module.h"
-#include "wx/intl.h"
 #include "wx/utils.h"
 #include "wx/log.h"
-#include "wx/thread.h"
+
+#include <stdio.h>
 
 #define INCL_DOSSEMAPHORES
 #define INCL_DOSPROCESS
index fe83f29f54136507f0a0f833f292ac3104d54929..72d7b1cdf28e661fd01e12a9b5dee40289ba4ee0 100644 (file)
     #include "wx/window.h"
     #include "wx/event.h"
     #include "wx/app.h"
+    #include "wx/intl.h"
 #endif
 
 #include "wx/os2/private.h"
-#include "wx/intl.h"
 #include "wx/log.h"
 
 #include "wx/timer.h"
index 091c160fec0ed431d21c8cbce92a2324ebc64ec2..20da3f30ba3f47aeb6a1526839ad03da893cd80f 100644 (file)
 #ifndef WX_PRECOMP
     #include "wx/utils.h"
     #include "wx/app.h"
+    #include "wx/intl.h"
 #endif  //WX_PRECOMP
 
 #include "wx/os2/private.h"
-#include "wx/intl.h"
 #include "wx/apptrait.h"
 
 #include <ctype.h>
index a63b18648b84e8fa874dc1d2a8184a01b05973e7..d49aaf21a17318714c2afa1b3e5ab42f63a1d2ca 100644 (file)
@@ -43,6 +43,7 @@
     #include "wx/statusbr.h"
     #include "wx/toolbar.h"
     #include "wx/settings.h"
+    #include "wx/intl.h"
     #include <stdio.h>
 #endif
 
@@ -71,7 +72,6 @@
     #include "wx/caret.h"
 #endif // wxUSE_CARET
 
-#include "wx/intl.h"
 #include "wx/log.h"
 
 
index ca11de84dacdeccaa560c646a093635be6693bff..29bc8cbb5ea377b1477776d52b86397fa2ba8e57 100644 (file)
     #pragma hdrstop
 #endif
 
-#ifndef WX_PRECOMP
-#endif
-
 #if wxUSE_DATEPICKCTRL
 
 #include "wx/datectrl.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/app.h"
-#include "wx/intl.h"
 #include "wx/dynlib.h"
 
 #define _WX_DEFINE_DATE_EVENTS_
@@ -133,4 +134,3 @@ bool wxDatePickerCtrl::SendClickEvent()
 }
 
 #endif // wxUSE_DATEPICKCTRL
-
index c73eef0219c1dd0522e1c1cebca4c9441c2863c2..157bf03f95a9fdd3d7bce182f8fa9f576df5aa83 100644 (file)
     #pragma hdrstop
 #endif
 
+#if wxUSE_WXDIB
+
 #ifndef WX_PRECOMP
     #include "wx/string.h"
     #include "wx/log.h"
+    #include "wx/intl.h"
 #endif //WX_PRECOMP
 
-#if wxUSE_WXDIB
-
 #include "wx/bitmap.h"
-#include "wx/intl.h"
 #include "wx/file.h"
 
 #include "wx/image.h"
@@ -167,4 +167,3 @@ wxImage wxDIB::ConvertToImage() const
 #endif // wxUSE_IMAGE
 
 #endif // wxUSE_WXDIB
-
index 4b6275a50040e2884d16353afe04fabf1ec57a3f..06340720e18658b50d44a0508c0e24bfaf5fe9ee 100644 (file)
 #if wxUSE_DRAGIMAGE
 
 #ifndef WX_PRECOMP
-#include <stdio.h>
-#include "wx/window.h"
-#include "wx/dcclient.h"
-#include "wx/dcscreen.h"
-#include "wx/dcmemory.h"
-#include "wx/settings.h"
+    #include <stdio.h>
+    #include "wx/window.h"
+    #include "wx/dcclient.h"
+    #include "wx/dcscreen.h"
+    #include "wx/dcmemory.h"
+    #include "wx/settings.h"
+    #include "wx/intl.h"
 #endif
 
 #include "wx/log.h"
-#include "wx/intl.h"
 #include "wx/frame.h"
 #include "wx/image.h"
 
index d07ac4bf6799146e03cbdedcde9ce218bef3dfb5..1a8d5c5df9acb80d579d1c93b16109c804b827b2 100644 (file)
     #include "wx/dc.h"
     #include "wx/string.h"
     #include "wx/dcmemory.h"
+    #include "wx/intl.h"
 #endif
 
 #include "wx/log.h"
-#include "wx/intl.h"
 
 #include "wx/palmos/imaglist.h"
 #include "wx/palmos/private.h"
@@ -135,4 +135,3 @@ bool wxImageList::Draw(int index,
 {
     return false;
 }
-
index 149ac43fa0b6396cb5ad00b9da1c1d6214ad73a5..ec0cdb90480c65031ff2e410d639b888b9018886 100644 (file)
   #pragma hdrstop
 #endif
 
+#if wxUSE_NATIVE_STATUSBAR
+
+#include "wx/statusbr.h"
+
 #ifndef WX_PRECOMP
     #include "wx/frame.h"
     #include "wx/settings.h"
     #include "wx/dcclient.h"
+    #include "wx/intl.h"
 #endif
 
-#if wxUSE_NATIVE_STATUSBAR
-
-#include "wx/intl.h"
 #include "wx/log.h"
-#include "wx/statusbr.h"
 
 #include <StatusBar.h>
 
index fb7272487a1e253798768dfafefc8935e2a2a848..39f2c7019b55658a3b0c63fc4e0232ed0cfedc8e 100644 (file)
@@ -41,6 +41,7 @@
     #include "wx/msgdlg.h"
     #include "wx/settings.h"
     #include "wx/statbox.h"
+    #include "wx/intl.h"
 #endif
 
 #if wxUSE_OWNER_DRAWN && !defined(__WXUNIVERSAL__)
@@ -72,7 +73,6 @@
     #include "wx/spinctrl.h"
 #endif // wxUSE_SPINCTRL
 
-#include "wx/intl.h"
 #include "wx/log.h"
 
 #include "wx/textctrl.h"
index 84dbc72288667967d29462586a1d36770539fb97..0d05379693b2c4616f05dbb1424779ee069c4f85 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        richtext/richtextxml.cpp
+// Name:        src/richtext/richtextxml.cpp
 // Purpose:     XML and HTML I/O for wxRichTextCtrl
 // Author:      Julian Smart
 // Modified by:
@@ -21,7 +21,8 @@
 #include "wx/richtext/richtextxml.h"
 
 #ifndef WX_PRECOMP
-  #include "wx/wx.h"
+    #include "wx/wx.h"
+    #include "wx/intl.h"
 #endif
 
 #include "wx/filename.h"
@@ -31,7 +32,6 @@
 #include "wx/module.h"
 #include "wx/txtstrm.h"
 #include "wx/xml/xml.h"
-#include "wx/intl.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxRichTextXMLHandler, wxRichTextFileHandler)
 
@@ -123,13 +123,13 @@ bool wxRichTextXMLHandler::ImportXML(wxRichTextBuffer* buffer, wxXmlNode* node)
                         wxString text2 = textChild->GetContent();
 
                         // Strip whitespace from end
-                        if (text2.Length() > 0 && text2[text2.Length()-1] == wxT('\n'))
-                            text2 = text2.Mid(0, text2.Length()-1);
+                        if (!text2.empty() && text2[text2.length()-1] == wxT('\n'))
+                            text2 = text2.Mid(0, text2.length()-1);
 
-                        if (text2.Length() > 0 && text2[0] == wxT('"'))
+                        if (!text2.empty() && text2[0] == wxT('"'))
                             text2 = text2.Mid(1);
-                        if (text2.Length() > 0 && text2[text2.Length()-1] == wxT('"'))
-                            text2 = text2.Mid(0, text2.Length() - 1);
+                        if (!text2.empty() && text2[text2.length()-1] == wxT('"'))
+                            text2 = text2.Mid(0, text2.length() - 1);
 
                         text += text2;
                     }
@@ -175,7 +175,7 @@ bool wxRichTextXMLHandler::ImportXML(wxRichTextBuffer* buffer, wxXmlNode* node)
 
                     wxStringInputStream strStream(data);
 
-                    imageObj->GetImageBlock().ReadHex(strStream, data.Length(), imageType);
+                    imageObj->GetImageBlock().ReadHex(strStream, data.length(), imageType);
                 }
             }
             child = child->GetNext();
@@ -307,7 +307,7 @@ static void OutputStringEnt(wxOutputStream& stream, const wxString& str,
     for (i = 0; i < len; i++)
     {
         c = str.GetChar(i);
-        
+
         // Original code excluded "&amp;" but we _do_ want to convert
         // the ampersand beginning &amp; because otherwise when read in,
         // the original "&amp;" becomes "&".
@@ -388,7 +388,7 @@ bool wxRichTextXMLHandler::DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream&
 #endif
 
     // If SetEncoding has been called, change the output encoding.
-    if (!m_encoding.IsEmpty() && m_encoding.Lower() != fileEncoding.Lower())
+    if (!m_encoding.empty() && m_encoding.Lower() != fileEncoding.Lower())
     {
         if (m_encoding == wxT("<System>"))
         {
@@ -400,7 +400,7 @@ bool wxRichTextXMLHandler::DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream&
         }
 
         // GetSystemEncodingName may not have returned a name
-        if (fileEncoding.IsEmpty())
+        if (fileEncoding.empty())
 #if wxUSE_UNICODE
             fileEncoding = wxT("UTF-8");
 #else
@@ -430,7 +430,7 @@ bool wxRichTextXMLHandler::DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream&
 
     if (deleteConvFile)
         delete convFile;
-    
+
     return success;
 }
 
@@ -461,7 +461,7 @@ bool wxRichTextXMLHandler::ExportXML(wxOutputStream& stream, wxMBConv* convMem,
         OutputString(stream, style + wxT(">"), convMem, convFile);
 
         wxString str = text.GetText();
-        if (str.Length() > 0 && (str[0] == wxT(' ') || str[str.Length()-1] == wxT(' ')))
+        if (!str.empty() && (str[0] == wxT(' ') || str[str.length()-1] == wxT(' ')))
         {
             OutputString(stream, wxT("\""), convMem, convFile);
             OutputStringEnt(stream, str, convMem, convFile);
@@ -683,6 +683,6 @@ bool wxRichTextXMLHandler::GetStyle(wxTextAttrEx& attr, wxXmlNode* node, bool is
 
 #endif
     // wxUSE_STREAMS
-    
+
 #endif
     // wxUSE_RICHTEXT && wxUSE_XML
index 591584644c586e9fcfd1f9c25b34b13561522dbe..2b39c34e0b8ce37a100c38ea22c271ca24b17f2c 100644 (file)
 
 #if wxUSE_DIALUP_MANAGER
 
+#include "wx/dialup.h"
+
 #ifndef  WX_PRECOMP
     #include "wx/string.h"
+    #include "wx/intl.h"
 #endif // !PCH
 
 #include "wx/event.h"
-#include "wx/dialup.h"
 #include "wx/timer.h"
 #include "wx/filefn.h"
 #include "wx/utils.h"
 #include "wx/log.h"
 #include "wx/ffile.h"
 #include "wx/process.h"
-#include "wx/intl.h"
 #include "wx/app.h"
 #include "wx/wxchar.h"
 
index b42d4462a0e02e85ae15aae18a2a0f9bb4e39b02..53dba8c959e6f1ae9be6294a1fedb7b0a516e144 100644 (file)
 
 #if wxUSE_DISPLAY
 
+#include "wx/display.h"
+
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
     #include "wx/gdicmn.h"
     #include "wx/string.h"
     #include "wx/utils.h"
+    #include "wx/intl.h"
 #endif /* WX_PRECOMP */
 
-#include "wx/display.h"
 #include "wx/display_impl.h"
-#include "wx/intl.h"
 #include "wx/log.h"
 
 /* These must be included after the wx files.  Otherwise the Data macro in
index aa2d4f3d6303fd187ab151d81c7db369c97c6ccb..ab1cd8db14baa218ebf1a0d5349a68544648041d 100644 (file)
 
 #if wxUSE_MIMETYPE && wxUSE_FILE && wxUSE_TEXTFILE
 
+#include "wx/unix/mimetype.h"
+
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
     #include "wx/string.h"
+    #include "wx/intl.h"
 #endif
 
 #include "wx/log.h"
 #include "wx/file.h"
-#include "wx/intl.h"
 #include "wx/confbase.h"
 
 #include "wx/ffile.h"
@@ -56,8 +58,6 @@
 #include "wx/iconloc.h"
 #include "wx/filename.h"
 
-#include "wx/unix/mimetype.h"
-
 #if wxUSE_LIBGNOMEVFS
     // Not GUI dependent
     #include "wx/gtk/gnome/gvfs.h"
index d7237bb4712ede0f7214211a5cfa53065ba6113c..503b0862149bca9f55f3a8b33f70bc8bebd17d60 100644 (file)
 
 #if wxUSE_THREADS
 
+#include "wx/thread.h"
+
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
+    #include "wx/intl.h"
 #endif
 
-#include "wx/thread.h"
 #include "wx/module.h"
 #include "wx/utils.h"
 #include "wx/log.h"
-#include "wx/intl.h"
 #include "wx/timer.h"
 #include "wx/stopwatch.h"
 
index 02b49fdc575bae5541ff2686e99940cfb8fea8c3..869ae2b5550653bf9a126347a1270d9177669a77 100644 (file)
 // for compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
+#include "wx/utils.h"
+
 #ifndef WX_PRECOMP
     #include "wx/string.h"
+    #include "wx/intl.h"
 #endif
 
-#include "wx/intl.h"
 #include "wx/log.h"
 #include "wx/app.h"
 #include "wx/apptrait.h"
 
-#include "wx/utils.h"
 #include "wx/process.h"
 #include "wx/thread.h"
 
index 7f7cbe93c0126c60324526a6df8e60f0b8c905a1..cbdac795e754a292d8d5f4055ec68eb47893b5dd 100644 (file)
 // for compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
+#include "wx/app.h"
+
 #ifndef WX_PRECOMP
     #include "wx/hash.h"
+    #include "wx/intl.h"
 #endif
 
 #include "wx/frame.h"
-#include "wx/app.h"
 #include "wx/utils.h"
 #include "wx/gdicmn.h"
 #include "wx/icon.h"
@@ -26,7 +28,6 @@
 #include "wx/module.h"
 #include "wx/memory.h"
 #include "wx/log.h"
-#include "wx/intl.h"
 #include "wx/evtloop.h"
 #include "wx/timer.h"
 #include "wx/filename.h"
index 0e39009af82de8cb5d8b1ef7bedc2ec186688984..7589082fc59dd0c57b41752fe2b56740aa608044 100644 (file)
 #include "wx/wxprec.h"
 
 #if defined(__BORLANDC__)
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
 #if wxUSE_DRAG_AND_DROP
 
 #include "wx/dnd.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/window.h"
 #include "wx/app.h"
 #include "wx/gdicmn.h"
-#include "wx/intl.h"
 #include "wx/utils.h"
 #include "wx/log.h"
 
index a667a5c13a80407b3704f4587881c1df5ea744db..fc3a12b2fbf369162e618f21e2fa97730d207814 100644 (file)
@@ -7,10 +7,16 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
+// for compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 #include "wx/textctrl.h"
 
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/utils.h"
-#include "wx/intl.h"
 #include "wx/log.h"
 #include "wx/settings.h"
 #include "wx/panel.h"
index b9421f5ca74960da4324d170be45f31073761231..cd33a3a68eba206fb1f957b256c0b53442dc099c 100644 (file)
 
 #include "wx/xml/xml.h"
 
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/wfstream.h"
 #include "wx/datstrm.h"
 #include "wx/zstream.h"
 #include "wx/log.h"
-#include "wx/intl.h"
 #include "wx/strconv.h"
 
 #include "expat.h" // from Expat
index a92e391c92651a2dcab4370e2405e9541ff3be01..c72b37c77ac2ef6ffc1cdc15a6cd98fd79492cd3 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        xh_chckl.cpp
+// Name:        src/xrc/xh_chckl.cpp
 // Purpose:     XRC resource for wxCheckList
 // Author:      Bob Mitchell
 // Created:     2000/03/21
     #pragma hdrstop
 #endif
 
-#if wxUSE_XRC
-
-#if wxUSE_CHECKLISTBOX
+#if wxUSE_XRC && wxUSE_CHECKLISTBOX
 
 #include "wx/xrc/xh_chckl.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/checklst.h"
-#include "wx/intl.h"
 #include "wx/log.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxCheckListBoxXmlHandler, wxXmlResourceHandler)
@@ -37,7 +39,7 @@ wxCheckListBoxXmlHandler::wxCheckListBoxXmlHandler()
     XRC_ADD_STYLE(wxLB_ALWAYS_SB);
     XRC_ADD_STYLE(wxLB_NEEDED_SB);
     XRC_ADD_STYLE(wxLB_SORT);
-    
+
     AddWindowStyles();
 }
 
@@ -127,6 +129,4 @@ bool wxCheckListBoxXmlHandler::CanHandle(wxXmlNode *node)
            (m_insideBox && node->GetName() == wxT("item")));
 }
 
-#endif // wxUSE_CHECKLISTBOX
-
-#endif // wxUSE_XRC
+#endif // wxUSE_XRC && wxUSE_CHECKLISTBOX
index d739ecafb893ca61d32b2811631268aedd22bc58..a3903f78368a641aefc2159d372b2857d455a924 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        xh_choic.cpp
+// Name:        src/xrc/xh_choic.cpp
 // Purpose:     XRC resource for wxChoice
 // Author:      Bob Mitchell
 // Created:     2000/03/21
 #if wxUSE_XRC
 
 #include "wx/xrc/xh_choic.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/choice.h"
-#include "wx/intl.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxChoiceXmlHandler, wxXmlResourceHandler)
 
index ebae25ee0f6cd841c96487295c39497f08409ec1..c7a2e255eb3b7379041ced1fb8bafc12cc42aa10 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        xh_combo.cpp
+// Name:        src/xrc/xh_combo.cpp
 // Purpose:     XRC resource for wxRadioBox
 // Author:      Bob Mitchell
 // Created:     2000/03/21
 #if wxUSE_XRC && wxUSE_COMBOBOX
 
 #include "wx/xrc/xh_combo.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/combobox.h"
-#include "wx/intl.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxComboBoxXmlHandler, wxXmlResourceHandler)
 
index e7c0c44b8f10ae6717ee0ab537fe041811bdfe59..c75f55019a5b018d1662197c2b4caf035ffe502f 100644 (file)
 #if wxUSE_XRC
 
 #include "wx/xrc/xh_dlg.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/dialog.h"
 #include "wx/frame.h"
 #include "wx/log.h"
-#include "wx/intl.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxDialogXmlHandler, wxXmlResourceHandler)
 
index d1b7a642270cf89e7936b4ccf1bbd99f5f5cba97..dc6d8fc2988a6b4632ea099e48e24ead1521446b 100644 (file)
 #if wxUSE_XRC
 
 #include "wx/xrc/xh_frame.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/frame.h"
 #include "wx/dialog.h" // to get wxDEFAULT_DIALOG_STYLE
 #include "wx/log.h"
-#include "wx/intl.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxFrameXmlHandler, wxXmlResourceHandler)
 
index ff97088837ab06d82cf63db9196210d0fba4b265..300b657a81bc616d8d7cefc3e196088e4570290a 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        xh_listb.cpp
+// Name:        src/xrc/xh_listb.cpp
 // Purpose:     XRC resource for wxListBox
 // Author:      Bob Mitchell & Vaclav Slavik
 // Created:     2000/07/29
 #if wxUSE_XRC
 
 #include "wx/xrc/xh_listb.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/listbox.h"
-#include "wx/intl.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxListBoxXmlHandler, wxXmlResourceHandler)
 
index f87e5141c3e4ae0a882a73562ebf918fc7848c8f..9cb9ee2e7c2a2055f9c6d78d7bd54e32b1a40131 100644 (file)
 #if wxUSE_XRC && wxUSE_MDI
 
 #include "wx/xrc/xh_mdi.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/mdi.h"
 #include "wx/dialog.h" // to get wxDEFAULT_DIALOG_STYLE
 #include "wx/log.h"
-#include "wx/intl.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxMdiXmlHandler, wxXmlResourceHandler)
 
@@ -133,4 +137,4 @@ bool wxMdiXmlHandler::CanHandle(wxXmlNode *node)
             IsOfClass(node, wxT("wxMDIChildFrame")));
 }
 
-#endif // wxUSE_XRC
+#endif // wxUSE_XRC && wxUSE_MDI
index f4fccc5b27bf953075d2d7e9cb490ab0b031a974..7bc108302e1cbf1a0369ee0a0d69487ed6175ec8 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        xh_radbx.cpp
+// Name:        src/xrc/xh_radbx.cpp
 // Purpose:     XRC resource for wxRadioBox
 // Author:      Bob Mitchell
 // Created:     2000/03/21
 #if wxUSE_XRC && wxUSE_RADIOBOX
 
 #include "wx/xrc/xh_radbx.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #include "wx/radiobox.h"
-#include "wx/intl.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxRadioBoxXmlHandler, wxXmlResourceHandler)
 
index 75a8f6d6a137cfba91825fa56167c05769852773..157978218647180472ff18dbee3f41513b968521 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        xmlres.cpp
+// Name:        src/xrc/xmlres.cpp
 // Purpose:     XRC resources
 // Author:      Vaclav Slavik
 // Created:     2000/03/05
 
 #if wxUSE_XRC
 
+#include "wx/xrc/xmlres.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+#endif
+
 #ifndef __WXWINCE__
-#include <locale.h>
+    #include <locale.h>
 #endif
 
 #include "wx/dialog.h"
@@ -28,7 +34,6 @@
 #include "wx/filesys.h"
 #include "wx/filename.h"
 #include "wx/log.h"
-#include "wx/intl.h"
 #include "wx/tokenzr.h"
 #include "wx/fontenum.h"
 #include "wx/module.h"
@@ -39,7 +44,6 @@
 #include "wx/settings.h"
 
 #include "wx/xml/xml.h"
-#include "wx/xrc/xmlres.h"
 
 #include "wx/arrimpl.cpp"
 WX_DEFINE_OBJARRAY(wxXmlResourceDataRecords)
@@ -1045,7 +1049,7 @@ wxColour wxXmlResourceHandler::GetColour(const wxString& param)
     // find colour using HTML syntax (#RRGGBB)
     unsigned long tmp = 0;
 
-    if (v.Length() != 7 || v[0u] != wxT('#') ||
+    if (v.length() != 7 || v[0u] != wxT('#') ||
         wxSscanf(v.c_str(), wxT("#%lX"), &tmp) != 1)
     {
         // the colour doesn't use #RRGGBB format, check if it is symbolic
@@ -1183,7 +1187,7 @@ wxSize wxXmlResourceHandler::GetSize(const wxString& param,
     bool is_dlg;
     long sx, sy = 0;
 
-    is_dlg = s[s.Length()-1] == wxT('d');
+    is_dlg = s[s.length()-1] == wxT('d');
     if (is_dlg) s.RemoveLast();
 
     if (!s.BeforeFirst(wxT(',')).ToLong(&sx) ||
@@ -1232,7 +1236,7 @@ wxCoord wxXmlResourceHandler::GetDimension(const wxString& param,
     bool is_dlg;
     long sx;
 
-    is_dlg = s[s.Length()-1] == wxT('d');
+    is_dlg = s[s.length()-1] == wxT('d');
     if (is_dlg) s.RemoveLast();
 
     if (!s.ToLong(&sx))