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

22 files changed:
src/common/event.cpp
src/common/gdicmn.cpp
src/common/sckipc.cpp
src/common/socket.cpp
src/common/textcmn.cpp
src/common/xtistrm.cpp
src/common/xtixml.cpp
src/mac/carbon/cfsocket.cpp
src/mac/classic/data.cpp
src/mac/corefoundation/hidjoystick.cpp
src/motif/evtloop.cpp
src/msw/main.cpp
src/msw/notebook.cpp
src/msw/regconf.cpp
src/os2/control.cpp
src/os2/notebook.cpp
src/os2/stattext.cpp
src/palmos/main.cpp
src/palmos/stattext.cpp
src/unix/dialup.cpp
src/unix/joystick.cpp
src/xrc/xh_cald.cpp

index e29dd4e6fb9bc7a8fe84962928e0af815b834597..ae1a10d70902c30a1010a59fc462c948a7aa2d9e 100644 (file)
@@ -24,6 +24,8 @@
     #pragma hdrstop
 #endif
 
+#include "wx/event.h"
+
 #ifndef WX_PRECOMP
     #include "wx/list.h"
     #include "wx/app.h"
@@ -36,7 +38,6 @@
     #endif // wxUSE_GUI
 #endif
 
-#include "wx/event.h"
 #include "wx/module.h"
 
 #if wxUSE_GUI
index d04a4b4f428a04ee6f80ba818ccc8d30e1ba19a1..db7616879a238313cc0acf938735a36b3e7d33ce 100644 (file)
@@ -24,9 +24,9 @@
 
 #ifndef WX_PRECOMP
     #include "wx/log.h"
+    #include "wx/event.h"
 #endif
 
-#include "wx/event.h"
 #include "wx/brush.h"
 #include "wx/pen.h"
 #include "wx/bitmap.h"
index 9787f76858fa1f5507634970f4296b38adfd7522..0ece73c6b01e229b7866058338ec8175eb5e41fb 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        sckipc.cpp
+// Name:        src/common/sckipc.cpp
 // Purpose:     Interprocess communication implementation (wxSocket version)
 // Author:      Julian Smart
 // Modified by: Guilhem Lavaux (big rewrite) May 1997, 1998
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#if wxUSE_SOCKETS && wxUSE_IPC && wxUSE_STREAMS
+
+#include "wx/sckipc.h"
+
 #ifndef WX_PRECOMP
-#include "wx/log.h"
+    #include "wx/log.h"
+    #include "wx/event.h"
 #endif
 
-#if wxUSE_SOCKETS && wxUSE_IPC && wxUSE_STREAMS
-
 #include <stdlib.h>
 #include <stdio.h>
 #include <errno.h>
 
 #include "wx/socket.h"
-#include "wx/sckipc.h"
 #include "wx/module.h"
-#include "wx/event.h"
 
 // --------------------------------------------------------------------------
 // macros and constants
@@ -752,4 +753,4 @@ IMPLEMENT_DYNAMIC_CLASS(wxTCPEventHandlerModule, wxModule)
 
 
 #endif
-    // wxUSE_SOCKETS && wxUSE_IPC
+   // wxUSE_SOCKETS && wxUSE_IPC && wxUSE_STREAMS
index 43a51d19a17fde6ecff4d9b7517e98e5a83635d8..96e97de4fb836a7f748387fc953e1417bc48694d 100644 (file)
@@ -29,6 +29,7 @@
     #include "wx/string.h"
     #include "wx/intl.h"
     #include "wx/log.h"
+    #include "wx/event.h"
 #endif
 
 #include "wx/app.h"
@@ -36,7 +37,6 @@
 #include "wx/timer.h"
 #include "wx/utils.h"
 #include "wx/module.h"
-#include "wx/event.h"
 
 #include "wx/sckaddr.h"
 #include "wx/datetime.h"
index a88d7f210badcae76697e5ad88c122274fa34d9b..f6d3bcb676951cf8a2e9a302433207f82331ced7 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        common/textcmn.cpp
+// Name:        src/common/textcmn.cpp
 // Purpose:     implementation of platform-independent functions of wxTextCtrl
 // Author:      Julian Smart
 // Modified by:
     #pragma hdrstop
 #endif
 
+#ifndef WX_PRECOMP
+    #include "wx/event.h"
+#endif // WX_PRECOMP
+
 #if wxUSE_TEXTCTRL
 
+#include "wx/textctrl.h"
+
 #ifndef WX_PRECOMP
     #include "wx/intl.h"
     #include "wx/log.h"
-    #include "wx/textctrl.h"
 #endif // WX_PRECOMP
 
 #include "wx/ffile.h"
@@ -517,7 +522,6 @@ wxTextCtrlBase::HitTest(const wxPoint& WXUNUSED(pt),
 
 // define this one even if !wxUSE_TEXTCTRL because it is also used by other
 // controls (wxComboBox and wxSpinCtrl)
-#include "wx/event.h"
 
 DEFINE_EVENT_TYPE(wxEVT_COMMAND_TEXT_UPDATED)
 
index fee284e6cbc4b1234a529a2dceac4c1bfb7d699e..e304fd3fc23470089eb279fe4f25a53b73bef528 100644 (file)
 
 #if wxUSE_EXTENDED_RTTI
 
+#include "wx/xtistrm.h"
+
 #ifndef WX_PRECOMP
     #include "wx/object.h"
     #include "wx/hash.h"
+    #include "wx/event.h"
 #endif
 
 #include "wx/tokenzr.h"
 #include "wx/txtstrm.h"
-#include "wx/event.h"
-
-#include "wx/xtistrm.h"
 
 #include "wx/beforestd.h"
 #include <map>
index 7531d3df03c8301af31e21ca63ce06d5796d7eac..91b094d6ebb9657cd68b142564c7df13c727b7f2 100644 (file)
 
 #if wxUSE_EXTENDED_RTTI
 
+#include "wx/xtixml.h"
+
 #ifndef WX_PRECOMP
     #include "wx/object.h"
     #include "wx/hash.h"
+    #include "wx/event.h"
 #endif
 
 #include "wx/xml/xml.h"
 #include "wx/tokenzr.h"
 #include "wx/txtstrm.h"
-#include "wx/event.h"
 
 #include "wx/xtistrm.h"
-#include "wx/xtixml.h"
 
 #include "wx/beforestd.h"
 #include <map>
index 531c538a347cbe7985fe94e48a90925348d1b4fa..0e21467d84d2f0a6281083be7cb495556a56e9b9 100644 (file)
@@ -24,6 +24,7 @@
     #include "wx/string.h"
     #include "wx/intl.h"
     #include "wx/log.h"
+    #include "wx/event.h"
 #endif
 
 #include "wx/app.h"
@@ -31,7 +32,6 @@
 #include "wx/timer.h"
 #include "wx/utils.h"
 #include "wx/module.h"
-#include "wx/event.h"
 
 #include "wx/sckaddr.h"
 #include "wx/mac/carbon/private.h"
index 377b125d9a643e9d508a32ad2ad6a9531d7846e5..eb8f97da014035ca5a4d5582bcd56736dbc0e17b 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        mac/data.cpp
+// Name:        src/mac/classic/data.cpp
 // Purpose:     Various global Mac-specific data
 // Author:      Stefan Csomor
 // Modified by:
@@ -9,4 +9,8 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#include "wx/event.h"
+#include "wx/wxprec.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/event.h"
+#endif
index d3017da77cf6b320d76fe293e990b23670f59d43..ee7178d643bee2703b3d67910baf79a4a608b548 100644 (file)
@@ -33,9 +33,9 @@
 
 #ifndef WX_PRECOMP
     #include "wx/log.h"
+    #include "wx/event.h"   //joystick wxEvents
 #endif
 
-#include "wx/event.h"       //joystick wxEvents
 #include "wx/joystick.h"    //...
 #include "wx/thread.h"      //wxThread for polling thread/ wxCriticalSection
 #include "wx/window.h"      //for wxWindow to "capture" joystick
index 424b96c5abde10f1f3d2f445ddce6334a761e67c..d11b4d777f1a8f4f951653fd6007e988d9fa9f3b 100644 (file)
 #include "wx/wxprec.h"
 
 #ifndef WX_PRECOMP
+    #include "wx/event.h"
 #endif //WX_PRECOMP
 
 #include "wx/evtloop.h"
-#include "wx/event.h"
 #include "wx/app.h"
 #include "wx/window.h"
 
@@ -477,4 +477,3 @@ bool wxAddIdleCallback()
 
     return true;
 }
-
index c86c0909eb4faffce814882a47d9e5b69faa4cf7..4e89e478d080f2cf1242f123fcb922f1d27df307 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        msw/main.cpp
+// Name:        src/msw/main.cpp
 // Purpose:     WinMain/DllMain
 // Author:      Julian Smart
 // Modified by:
     #pragma hdrstop
 #endif
 
-#include "wx/event.h"
+#ifndef WX_PRECOMP
+    #include "wx/event.h"
+#endif //WX_PRECOMP
+
 #include "wx/app.h"
 #include "wx/cmdline.h"
 #include "wx/scopeguard.h"
@@ -247,7 +250,7 @@ static bool wxIsUnicodeAvailable()
     if ( wxGetOsVersion() != wxWINDOWS_NT )
     {
         // we need to be built with MSLU support
-#if !wxUSE_UNICODE_MSLU 
+#if !wxUSE_UNICODE_MSLU
         // note that we can use MessageBoxW() as it's implemented even under
         // Win9x - OTOH, we can't use wxGetTranslation() because the file APIs
         // used by wxLocale are not
@@ -403,4 +406,3 @@ void wxSetInstance(HINSTANCE hInst)
 }
 
 #endif // wxUSE_BASE
-
index 2cca53006560b66dd1f292cce4852989e6ea4f33..44de7957beaba44b287f17fc458f474fcc0ce11d 100644 (file)
     #include  "wx/string.h"
     #include  "wx/dc.h"
     #include  "wx/log.h"
+    #include  "wx/event.h"
 #endif  // WX_PRECOMP
 
 #include  "wx/imaglist.h"
-#include  "wx/event.h"
 #include  "wx/control.h"
 #include  "wx/app.h"
 #include  "wx/sysopt.h"
index 1c9892c0b9e539b8f6387e74ed3576b2dd7e4325..13807770df6914d0692a9d018722287a7e9d596e 100644 (file)
@@ -24,9 +24,9 @@
     #include  "wx/string.h"
     #include  "wx/intl.h"
     #include "wx/log.h"
+    #include "wx/event.h"
 #endif //WX_PRECOMP
 
-#include "wx/event.h"
 #include "wx/app.h"
 
 #include "wx/msw/registry.h"
index 69a1a79243fe8eb75f2c7c0044949b644546efa1..f829123a94c45d3a258969da25ae1975814ced1d 100644 (file)
 #include "wx/wxprec.h"
 
 #ifndef WX_PRECOMP
-#include "wx/event.h"
-#include "wx/app.h"
-#include "wx/dcclient.h"
-#include "wx/scrolwin.h"
-#include "wx/log.h"
+    #include "wx/event.h"
+    #include "wx/app.h"
+    #include "wx/dcclient.h"
+    #include "wx/scrolwin.h"
+    #include "wx/log.h"
 #endif
+
 #include "wx/os2/private.h"
 #include "wx/control.h"
 
@@ -33,15 +34,13 @@ wxControl::wxControl()
 {
 } // end of wxControl::wxControl
 
-bool wxControl::Create(
-  wxWindow*                         pParent
-, wxWindowID                        vId
-, const wxPoint&                    rPos
-, const wxSize&                     rSize
-, long                              lStyle
-, const wxValidator&                rValidator
-, const wxString&                   rsName
-)
+bool wxControl::Create( wxWindow*           pParent,
+                        wxWindowID          vId,
+                        const wxPoint&      rPos,
+                        const wxSize&       rSize,
+                        long                lStyle,
+                        const wxValidator&  rValidator,
+                        const wxString&     rsName )
 {
     bool                            bRval = wxWindow::Create( pParent
                                                              ,vId
index b0765dd8e85890aa6312e800de396f18d4f594bd..f518b1d11cf7161aad82c588639de6d85b116f41 100644 (file)
     #include "wx/dcclient.h"
     #include "wx/string.h"
     #include "wx/settings.h"
-    #include  "wx/log.h"
+    #include "wx/log.h"
+    #include "wx/event.h"
 #endif  // WX_PRECOMP
 
 #include  "wx/imaglist.h"
-#include  "wx/event.h"
 #include  "wx/control.h"
 
 #include  "wx/os2/private.h"
index a344877e2bde55a4b73ea80c68c36f6dcbdde21a..d8af7b31c712548cb0774029665771c2f97f145c 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        stattext.cpp
+// Name:        src/os2/stattext.cpp
 // Purpose:     wxStaticText
 // Author:      David Webster
 // Modified by:
 #include "wx/wxprec.h"
 
 #ifndef WX_PRECOMP
-#include "wx/event.h"
-#include "wx/app.h"
-#include "wx/brush.h"
-#include "wx/scrolwin.h"
+    #include "wx/event.h"
+    #include "wx/app.h"
+    #include "wx/brush.h"
+    #include "wx/scrolwin.h"
 #endif
 
 #include "wx/stattext.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxStaticText, wxControl)
 
-bool wxStaticText::Create(
-  wxWindow*                         pParent
-, wxWindowID                        vId
-, const wxString&                   rsLabel
-, const wxPoint&                    rPos
-, const wxSize&                     rSize
-, long                              lStyle
-, const wxString&                   rsName
-)
+bool wxStaticText::Create( wxWindow*        pParent,
+                           wxWindowID       vId,
+                           const wxString&  rsLabel,
+                           const wxPoint&   rPos,
+                           const wxSize&    rSize,
+                           long             lStyle,
+                           const wxString&  rsName )
 {
     SetName(rsName);
     if (pParent)
@@ -42,19 +40,19 @@ bool wxStaticText::Create(
     SetBackgroundColour(pParent->GetBackgroundColour()) ;
     SetForegroundColour(pParent->GetForegroundColour()) ;
 
-    if ( vId == -1 )
+    if ( vId == wxID_ANY )
         m_windowId = (int)NewControlId();
     else
         m_windowId = vId;
 
-    int                             nX      = rPos.x;
-    int                             nY      = rPos.y;
-    int                             nWidth  = rSize.x;
-    int                             nHeight = rSize.y;
+    int nX      = rPos.x;
+    int nY      = rPos.y;
+    int nWidth  = rSize.x;
+    int nHeight = rSize.y;
 
     m_windowStyle = lStyle;
 
-    long                            lSstyle = 0L;
+    long lSstyle = 0L;
 
     // Used to have DT_VCENTER but that doesn't work correctly with
     // multiline strings and DT_WORDBREAK. Accept a reasonable
@@ -67,7 +65,7 @@ bool wxStaticText::Create(
     else
         lSstyle |= DT_LEFT;
 
-    wxString                        sLabel = ::wxPMTextToLabel(rsLabel);
+    wxString sLabel = ::wxPMTextToLabel(rsLabel);
 
     m_hWnd = (WXHWND)::WinCreateWindow( (HWND)GetHwndOf(pParent) // Parent window handle
                                        ,WC_STATIC                // Window class
@@ -81,13 +79,9 @@ bool wxStaticText::Create(
                                        ,NULL                     // no Presentation parameters
                                       );
 
-    wxCHECK_MSG(m_hWnd, FALSE, wxT("Failed to create static ctrl"));
-
-    wxColour                        vColour;
+    wxCHECK_MSG(m_hWnd, false, wxT("Failed to create static ctrl"));
 
-    vColour.Set(wxString(wxT("BLACK")));
-
-    LONG                            lColor = (LONG)vColour.GetPixel();
+    LONG lColor = (LONG)wxBLACK->GetPixel();
 
     ::WinSetPresParam( m_hWnd
                       ,PP_FOREGROUNDCOLOR
@@ -106,24 +100,21 @@ bool wxStaticText::Create(
     SetFont(*wxSMALL_FONT);
     SetXComp(0);
     SetYComp(0);
-    SetSize( nX
-            ,nY
-            ,nWidth
-            ,nHeight
-           );
-    return TRUE;
+    SetSize( nX, nY, nWidth, nHeight );
+
+    return true;
 } // end of wxStaticText::Create
 
 wxSize wxStaticText::DoGetBestSize() const
 {
-    wxString                        sText(wxGetWindowText(GetHWND()));
-    int                             nWidthTextMax = 0;
-    int                             nWidthLine = 0;
-    int                             nHeightTextTotal = 0;
-    int                             nHeightLineDefault = 0;
-    int                             nHeightLine = 0;
-    wxString                        sCurLine;
-    bool                            bLastWasTilde = FALSE;
+    wxString sText(wxGetWindowText(GetHWND()));
+    int      nWidthTextMax = 0;
+    int      nWidthLine = 0;
+    int      nHeightTextTotal = 0;
+    int      nHeightLineDefault = 0;
+    int      nHeightLine = 0;
+    wxString sCurLine;
+    bool     bLastWasTilde = false;
 
     for (const wxChar *pc = sText; ; pc++)
     {
@@ -174,7 +165,7 @@ wxSize wxStaticText::DoGetBestSize() const
             {
                 if (!bLastWasTilde)
                 {
-                    bLastWasTilde = TRUE;
+                    bLastWasTilde = true;
 
                     //
                     // Skip the statement adding pc to curLine below
@@ -185,7 +176,7 @@ wxSize wxStaticText::DoGetBestSize() const
                 //
                 // It is a literal tilde
                 //
-                bLastWasTilde = FALSE;
+                bLastWasTilde = false;
             }
             sCurLine += *pc;
         }
index aaf6f0ab519c097482c540ad4c8f0ef360495544..c7658e324f877d16e3296362fa089a3ab5be23d0 100644 (file)
     #pragma hdrstop
 #endif
 
-#include "wx/event.h"
+#ifndef WX_PRECOMP
+    #include "wx/event.h"
+#endif //WX_PRECOMP
+
 #include "wx/app.h"
 #include "wx/cmdline.h"
 
index fd86cf5e86d24057a7b9dc1441d39466dd360466..413c259f141928fa0cd21de3201a2796dd9d21a4 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
 #if wxUSE_STATTEXT
 
+#include "wx/stattext.h"
+
 #ifndef WX_PRECOMP
-#include "wx/event.h"
-#include "wx/app.h"
-#include "wx/brush.h"
+    #include "wx/event.h"
+    #include "wx/app.h"
+    #include "wx/brush.h"
 #endif
 
-#include "wx/stattext.h"
-
 #include <Field.h>
 
 #if wxUSE_EXTENDED_RTTI
index db1ad16b3b107b815deb73c9d1f8184ddd82f4de..c4f45c070ee8221b396f2bedf2c198aef99882ea 100644 (file)
@@ -20,9 +20,9 @@
     #include "wx/string.h"
     #include "wx/intl.h"
     #include "wx/log.h"
+    #include "wx/event.h"
 #endif // !PCH
 
-#include "wx/event.h"
 #include "wx/timer.h"
 #include "wx/filefn.h"
 #include "wx/utils.h"
index c60b06b7589a3f9ea3af86c326d40706f5832e3a..6383d601245af599e8b3337a8bb7404bccb450fc 100644 (file)
 
 #include "wx/joystick.h"
 
+#ifndef WX_PRECOMP
+    #include "wx/event.h"
+#endif //WX_PRECOMP
+
 #include <linux/joystick.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -24,7 +28,6 @@
 #include <fcntl.h>
 #include <unistd.h>
 
-#include "wx/event.h"
 #include "wx/window.h"
 #include "wx/unix/private.h"
 
index 3259a04e1c40bfc5ca3f276d82561d064519ec26..d6514cbe7edc6d4ebc6ba03662c60a6485ac072a 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        xh_cald.cpp
+// Name:        src/xrc/xh_cald.cpp
 // Purpose:     XRC resource for wxCalendarCtrl
 // Author:      Brian Gavin
 // Created:     2000/09/09
 #if wxUSE_XRC && wxUSE_CALENDARCTRL
 
 #include "wx/xrc/xh_cald.h"
-#include "wx/event.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/event.h"
+#endif //WX_PRECOMP
+
 #include "wx/calctrl.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxCalendarCtrlXmlHandler, wxXmlResourceHandler)