#pragma hdrstop
#endif
+#include "wx/event.h"
+
#ifndef WX_PRECOMP
#include "wx/list.h"
#include "wx/app.h"
#endif // wxUSE_GUI
#endif
-#include "wx/event.h"
#include "wx/module.h"
#if wxUSE_GUI
#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"
/////////////////////////////////////////////////////////////////////////////
-// 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
#endif
- // wxUSE_SOCKETS && wxUSE_IPC
+ // wxUSE_SOCKETS && wxUSE_IPC && wxUSE_STREAMS
#include "wx/string.h"
#include "wx/intl.h"
#include "wx/log.h"
+ #include "wx/event.h"
#endif
#include "wx/app.h"
#include "wx/timer.h"
#include "wx/utils.h"
#include "wx/module.h"
-#include "wx/event.h"
#include "wx/sckaddr.h"
#include "wx/datetime.h"
///////////////////////////////////////////////////////////////////////////////
-// 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"
// 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)
#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>
#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>
#include "wx/string.h"
#include "wx/intl.h"
#include "wx/log.h"
+ #include "wx/event.h"
#endif
#include "wx/app.h"
#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"
/////////////////////////////////////////////////////////////////////////////
-// Name: mac/data.cpp
+// Name: src/mac/classic/data.cpp
// Purpose: Various global Mac-specific data
// Author: Stefan Csomor
// Modified by:
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#include "wx/event.h"
+#include "wx/wxprec.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/event.h"
+#endif
#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
#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"
return true;
}
-
/////////////////////////////////////////////////////////////////////////////
-// 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"
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
}
#endif // wxUSE_BASE
-
#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"
#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"
#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"
{
} // 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
#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"
/////////////////////////////////////////////////////////////////////////////
-// 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)
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
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
,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
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++)
{
{
if (!bLastWasTilde)
{
- bLastWasTilde = TRUE;
+ bLastWasTilde = true;
//
// Skip the statement adding pc to curLine below
//
// It is a literal tilde
//
- bLastWasTilde = FALSE;
+ bLastWasTilde = false;
}
sCurLine += *pc;
}
#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/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
#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"
#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>
#include <fcntl.h>
#include <unistd.h>
-#include "wx/event.h"
#include "wx/window.h"
#include "wx/unix/private.h"
/////////////////////////////////////////////////////////////////////////////
-// 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)