Include wx/string.h according to precompiled headers of wx/wx.h (with other minor cleaning).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-04-24 08:46:59 +00:00
parent eeee4050cf
commit df91131cb0
39 changed files with 209 additions and 128 deletions

View File

@@ -18,14 +18,15 @@
#if wxUSE_DISPLAY #if wxUSE_DISPLAY
#include "wx/display.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/dynarray.h" #include "wx/dynarray.h"
#include "wx/string.h"
#endif #endif
#include "wx/display.h"
#include "wx/display_impl.h" #include "wx/display_impl.h"
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#include "wx/string.h"
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
@@ -226,4 +227,3 @@ bool wxDisplayImplMacOSX::ChangeMode(const wxVideoMode& mode)
} }
#endif // wxUSE_DISPLAY #endif // wxUSE_DISPLAY

View File

@@ -22,13 +22,15 @@
#if wxUSE_SOCKETS #if wxUSE_SOCKETS
#include "wx/socket.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/object.h" #include "wx/object.h"
#include "wx/string.h"
#endif #endif
#include "wx/app.h" #include "wx/app.h"
#include "wx/apptrait.h" #include "wx/apptrait.h"
#include "wx/string.h"
#include "wx/timer.h" #include "wx/timer.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/module.h" #include "wx/module.h"
@@ -37,7 +39,6 @@
#include "wx/event.h" #include "wx/event.h"
#include "wx/sckaddr.h" #include "wx/sckaddr.h"
#include "wx/socket.h"
#include "wx/datetime.h" #include "wx/datetime.h"
// DLL options compatibility check: // DLL options compatibility check:

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: common/sysopt.cpp // Name: src/common/sysopt.cpp
// Purpose: wxSystemOptions // Purpose: wxSystemOptions
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -26,12 +26,13 @@
#if wxUSE_SYSTEM_OPTIONS #if wxUSE_SYSTEM_OPTIONS
#include "wx/sysopt.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/list.h" #include "wx/list.h"
#include "wx/string.h"
#endif #endif
#include "wx/string.h"
#include "wx/sysopt.h"
#include "wx/arrstr.h" #include "wx/arrstr.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@@ -86,4 +87,3 @@ bool wxSystemOptions::HasOption(const wxString& name)
} }
#endif // wxUSE_SYSTEM_OPTIONS #endif // wxUSE_SYSTEM_OPTIONS

View File

@@ -18,14 +18,15 @@
#if wxUSE_URL #if wxUSE_URL
#include "wx/url.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/list.h" #include "wx/list.h"
#include "wx/string.h"
#endif #endif
#include "wx/string.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/module.h" #include "wx/module.h"
#include "wx/url.h"
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>

View File

@@ -16,6 +16,12 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/variant.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#if wxUSE_STD_IOSTREAM #if wxUSE_STD_IOSTREAM
#if wxUSE_IOSTREAMH #if wxUSE_IOSTREAMH
#include <fstream.h> #include <fstream.h>
@@ -38,8 +44,6 @@ using namespace std ;
#include "wx/tokenzr.h" #include "wx/tokenzr.h"
#include "wx/math.h" #include "wx/math.h"
#include "wx/variant.h"
IMPLEMENT_ABSTRACT_CLASS(wxVariantData, wxObject) IMPLEMENT_ABSTRACT_CLASS(wxVariantData, wxObject)
wxVariant WXDLLIMPEXP_BASE wxNullVariant; wxVariant WXDLLIMPEXP_BASE wxNullVariant;

View File

@@ -21,16 +21,18 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __BORLANDC__ #ifdef __BORLANDC__
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef __WXPALMOS__ #include "wx/notebook.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#include "wx/string.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/generic/imaglist.h" #include "wx/generic/imaglist.h"
#include "wx/notebook.h"
#include "wx/dcclient.h" #include "wx/dcclient.h"
#include "wx/generic/tabg.h" #include "wx/generic/tabg.h"
@@ -711,5 +713,3 @@ bool wxNotebookTabView::OnTabPreActivate(int activateId, int deactivateId)
} }
return retval; return retval;
} }
#endif // __WXPALMOS__

View File

@@ -11,7 +11,10 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/string.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#include "wx/apptrait.h" #include "wx/apptrait.h"
#include "wx/intl.h" #include "wx/intl.h"
@@ -69,12 +72,12 @@ bool wxSetDetectableAutoRepeat( bool flag )
{ {
Bool result; Bool result;
XkbSetDetectableAutoRepeat( GDK_DISPLAY(), flag, &result ); XkbSetDetectableAutoRepeat( GDK_DISPLAY(), flag, &result );
return result; /* TRUE if keyboard hardware supports this mode */ return result; /* true if keyboard hardware supports this mode */
} }
#else #else
bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) ) bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) )
{ {
return FALSE; return false;
} }
#endif #endif
@@ -152,7 +155,7 @@ void wxGetMousePosition( int* x, int* y )
bool wxColourDisplay() bool wxColourDisplay()
{ {
return TRUE; return true;
} }
int wxDisplayDepth() int wxDisplayDepth()
@@ -256,4 +259,3 @@ int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)
return tag; return tag;
} }

View File

@@ -10,12 +10,13 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/utils.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/list.h" #include "wx/list.h"
#include "wx/string.h"
#endif #endif
#include "wx/utils.h"
#include "wx/string.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/config.h" #include "wx/config.h"
#include "wx/app.h" #include "wx/app.h"

View File

@@ -11,7 +11,10 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/string.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#include "wx/apptrait.h" #include "wx/apptrait.h"
#include "wx/intl.h" #include "wx/intl.h"
@@ -70,12 +73,12 @@ bool wxSetDetectableAutoRepeat( bool flag )
{ {
Bool result; Bool result;
XkbSetDetectableAutoRepeat( GDK_DISPLAY(), flag, &result ); XkbSetDetectableAutoRepeat( GDK_DISPLAY(), flag, &result );
return result; /* TRUE if keyboard hardware supports this mode */ return result; /* true if keyboard hardware supports this mode */
} }
#else #else
bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) ) bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) )
{ {
return FALSE; return false;
} }
#endif #endif
@@ -118,7 +121,7 @@ void wxGetMousePosition( int* x, int* y )
bool wxColourDisplay() bool wxColourDisplay()
{ {
return TRUE; return true;
} }
int wxDisplayDepth() int wxDisplayDepth()
@@ -194,4 +197,3 @@ int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)
return tag; return tag;
} }

View File

@@ -10,12 +10,13 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/utils.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/list.h" #include "wx/list.h"
#include "wx/string.h"
#endif #endif
#include "wx/utils.h"
#include "wx/string.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/config.h" #include "wx/config.h"
#include "wx/app.h" #include "wx/app.h"

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: accel.cpp // Name: src/mac/carbon/accel.cpp
// Purpose: wxAcceleratorTable // Purpose: wxAcceleratorTable
// Author: Stefan Csomor // Author: Stefan Csomor
// Modified by: // Modified by:
@@ -12,7 +12,10 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/accel.h" #include "wx/accel.h"
#include "wx/string.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
IMPLEMENT_DYNAMIC_CLASS(wxAcceleratorTable, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxAcceleratorTable, wxObject)
@@ -99,5 +102,3 @@ int wxAcceleratorTable::GetCommand( wxKeyEvent &event )
return -1; return -1;
} }

View File

@@ -17,13 +17,15 @@
#if wxUSE_SOCKETS #if wxUSE_SOCKETS
#include "wx/socket.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/object.h" #include "wx/object.h"
#include "wx/string.h"
#endif #endif
#include "wx/app.h" #include "wx/app.h"
#include "wx/apptrait.h" #include "wx/apptrait.h"
#include "wx/string.h"
#include "wx/timer.h" #include "wx/timer.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/module.h" #include "wx/module.h"
@@ -32,7 +34,6 @@
#include "wx/event.h" #include "wx/event.h"
#include "wx/sckaddr.h" #include "wx/sckaddr.h"
#include "wx/socket.h"
#include "wx/mac/carbon/private.h" #include "wx/mac/carbon/private.h"
#include <sys/socket.h> #include <sys/socket.h>

View File

@@ -25,9 +25,12 @@
#if wxUSE_DISPLAY #if wxUSE_DISPLAY
#include "wx/display.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/dynarray.h" #include "wx/dynarray.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/string.h"
#endif #endif
#ifdef __DARWIN__ #ifdef __DARWIN__
@@ -41,10 +44,8 @@
#include <Debugging.h> #include <Debugging.h>
#endif #endif
#include "wx/display.h"
#include "wx/display_impl.h" #include "wx/display_impl.h"
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#include "wx/string.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// display classes implementation // display classes implementation

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: font.cpp // Name: src/mac/carbon/font.cpp
// Purpose: wxFont class // Purpose: wxFont class
// Author: Stefan Csomor // Author: Stefan Csomor
// Modified by: // Modified by:
@@ -11,8 +11,12 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/string.h"
#include "wx/font.h" #include "wx/font.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#include "wx/fontutil.h" #include "wx/fontutil.h"
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#include "wx/utils.h" #include "wx/utils.h"
@@ -39,7 +43,7 @@ public:
, m_family(wxDEFAULT) , m_family(wxDEFAULT)
, m_style(wxNORMAL) , m_style(wxNORMAL)
, m_weight(wxNORMAL) , m_weight(wxNORMAL)
, m_underlined(FALSE) , m_underlined(false)
, m_faceName(wxT("applicationfont")) , m_faceName(wxT("applicationfont"))
, m_encoding(wxFONTENCODING_DEFAULT) , m_encoding(wxFONTENCODING_DEFAULT)
, m_macFontNum(0) , m_macFontNum(0)
@@ -216,7 +220,7 @@ void wxFontRefData::MacFindFont()
} }
else else
{ {
if ( m_faceName.Length() == 0 ) if ( m_faceName.empty() )
{ {
switch ( m_family ) switch ( m_family )
{ {
@@ -637,4 +641,3 @@ const wxNativeFontInfo * wxFont::GetNativeFontInfo() const
return &(M_FONTDATA->m_info); return &(M_FONTDATA->m_info);
} }

View File

@@ -13,12 +13,17 @@
#if wxUSE_NOTEBOOK #if wxUSE_NOTEBOOK
#include "wx/notebook.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#include "wx/app.h" #include "wx/app.h"
#include "wx/string.h" #include "wx/string.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/imaglist.h" #include "wx/imaglist.h"
#include "wx/image.h" #include "wx/image.h"
#include "wx/notebook.h"
#include "wx/mac/uma.h" #include "wx/mac/uma.h"

View File

@@ -14,14 +14,15 @@
#if wxUSE_SOUND #if wxUSE_SOUND
#include "wx/sound.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/object.h" #include "wx/object.h"
#include "wx/string.h"
#endif #endif
#include "wx/string.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/file.h" #include "wx/file.h"
#include "wx/sound.h"
#include "wx/timer.h" #include "wx/timer.h"
#include "wx/intl.h" #include "wx/intl.h"

View File

@@ -12,7 +12,10 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/accel.h" #include "wx/accel.h"
#include "wx/string.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
IMPLEMENT_DYNAMIC_CLASS(wxAcceleratorTable, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxAcceleratorTable, wxObject)
@@ -47,7 +50,7 @@ wxAcceleratorRefData::wxAcceleratorRefData()
wxAcceleratorRefData::~wxAcceleratorRefData() wxAcceleratorRefData::~wxAcceleratorRefData()
{ {
m_accels.DeleteContents( TRUE ); m_accels.DeleteContents( true );
} }
wxAcceleratorTable::wxAcceleratorTable() wxAcceleratorTable::wxAcceleratorTable()

View File

@@ -26,9 +26,12 @@
#if wxUSE_DISPLAY #if wxUSE_DISPLAY
#include "wx/display.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/dynarray.h" #include "wx/dynarray.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/string.h"
#endif #endif
#ifdef __DARWIN__ #ifdef __DARWIN__
@@ -41,10 +44,8 @@
#include <FixMath.h> #include <FixMath.h>
#endif #endif
#include "wx/display.h"
#include "wx/display_impl.h" #include "wx/display_impl.h"
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#include "wx/string.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// display implementation classes // display implementation classes

View File

@@ -15,8 +15,12 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/string.h"
#include "wx/font.h" #include "wx/font.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#include "wx/fontutil.h" #include "wx/fontutil.h"
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#include "wx/utils.h" #include "wx/utils.h"
@@ -166,7 +170,7 @@ wxFontRefData::~wxFontRefData()
void wxFontRefData::MacFindFont() void wxFontRefData::MacFindFont()
{ {
if( m_faceName.Length() == 0 ) if( m_faceName.empty() )
{ {
switch( m_family ) switch( m_family )
{ {

View File

@@ -9,6 +9,8 @@
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
// ============================================================================ // ============================================================================
// declarations // declarations
// ============================================================================ // ============================================================================
@@ -16,12 +18,17 @@
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// headers // headers
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "wx/notebook.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#include "wx/app.h" #include "wx/app.h"
#include "wx/string.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/imaglist.h" #include "wx/imaglist.h"
#include "wx/image.h" #include "wx/image.h"
#include "wx/notebook.h"
#include "wx/mac/uma.h" #include "wx/mac/uma.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// macros // macros

View File

@@ -14,13 +14,13 @@
#if wxUSE_SOUND #if wxUSE_SOUND
#include "wx/sound.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/object.h" #include "wx/object.h"
#include "wx/string.h"
#endif #endif
#include "wx/string.h"
#include "wx/sound.h"
#ifdef __WXMAC__ #ifdef __WXMAC__
#include "wx/mac/private.h" #include "wx/mac/private.h"
#ifndef __DARWIN__ #ifndef __DARWIN__

View File

@@ -27,12 +27,13 @@
//DARWIN _ONLY_ //DARWIN _ONLY_
#ifdef __DARWIN__ #ifdef __DARWIN__
#include "wx/mac/corefoundation/hid.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/dynarray.h" #include "wx/dynarray.h"
#include "wx/string.h"
#endif #endif
#include "wx/mac/corefoundation/hid.h"
#include "wx/string.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/mac/corefoundation/cfstring.h" #include "wx/mac/corefoundation/cfstring.h"

View File

@@ -22,14 +22,15 @@
// headers // headers
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "wx/fontenum.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/dynarray.h" #include "wx/dynarray.h"
#include "wx/string.h"
#endif #endif
#include "wx/string.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/fontenum.h"
#include "wx/encinfo.h" #include "wx/encinfo.h"
#include "wx/fontutil.h" #include "wx/fontutil.h"

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: utils.cpp // Name: src/mgl/utils.cpp
// Purpose: // Purpose:
// Author: Vaclav Slavik // Author: Vaclav Slavik
// Id: $Id$ // Id: $Id$
@@ -15,7 +15,10 @@
#endif #endif
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/string.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/apptrait.h" #include "wx/apptrait.h"

View File

@@ -13,7 +13,11 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/accel.h" #include "wx/accel.h"
#include "wx/string.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#include "wx/utils.h" #include "wx/utils.h"
#include <ctype.h> #include <ctype.h>

View File

@@ -29,8 +29,12 @@
#pragma message enable nosimpint #pragma message enable nosimpint
#endif #endif
#include "wx/string.h"
#include "wx/font.h" #include "wx/font.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#include "wx/utils.h" // for wxGetDisplay() #include "wx/utils.h" // for wxGetDisplay()
#include "wx/fontutil.h" // for wxNativeFontInfo #include "wx/fontutil.h" // for wxNativeFontInfo

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: utils.cpp // Name: src/msdos/utils.cpp
// Purpose: DOS implementations of utility functions // Purpose: DOS implementations of utility functions
// Author: Vaclav Slavik, M.J.Wetherell // Author: Vaclav Slavik, M.J.Wetherell
// Id: $Id$ // Id: $Id$
@@ -16,7 +16,10 @@
#endif #endif
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/string.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/apptrait.h" #include "wx/apptrait.h"
@@ -85,12 +88,12 @@ bool wxGetEnv(const wxString& var, wxString *value)
// wxGetenv is defined as getenv() // wxGetenv is defined as getenv()
wxChar *p = wxGetenv(var); wxChar *p = wxGetenv(var);
if ( !p ) if ( !p )
return FALSE; return false;
if ( value ) if ( value )
*value = p; *value = p;
return TRUE; return true;
} }
bool wxSetEnv(const wxString& variable, const wxChar *value) bool wxSetEnv(const wxString& variable, const wxChar *value)

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: dcclient.cpp // Name: src/msw/dcclient.cpp
// Purpose: wxClientDC class // Purpose: wxClientDC class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -24,14 +24,17 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/string.h" #include "wx/dcclient.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#include "wx/log.h" #include "wx/log.h"
#include "wx/window.h" #include "wx/window.h"
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include "wx/dcclient.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// array/list types // array/list types
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@@ -353,4 +356,3 @@ wxPaintDCEx::~wxPaintDCEx()
// prevent the base class dtor from ReleaseDC()ing it again // prevent the base class dtor from ReleaseDC()ing it again
m_hDC = 0; m_hDC = 0;
} }

View File

@@ -13,13 +13,17 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __BORLANDC__ #ifdef __BORLANDC__
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_JOYSTICK #if wxUSE_JOYSTICK
#include "wx/joystick.h" #include "wx/joystick.h"
#include "wx/string.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#include "wx/window.h" #include "wx/window.h"
#include "wx/msw/private.h" #include "wx/msw/private.h"

View File

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// Name: msw/registry.cpp // Name: src/msw/registry.cpp
// Purpose: implementation of registry classes and functions // Purpose: implementation of registry classes and functions
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Modified by: // Modified by:
@@ -16,11 +16,13 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __BORLANDC__ #ifdef __BORLANDC__
#pragma hdrstop #pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif #endif
// other wxWidgets headers
#include "wx/string.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/file.h" #include "wx/file.h"
@@ -1413,4 +1415,3 @@ void RemoveTrailingSeparator(wxString& str)
if ( !str.empty() && str.Last() == REG_SEPARATOR ) if ( !str.empty() && str.Last() == REG_SEPARATOR )
str.Truncate(str.Len() - 1); str.Truncate(str.Len() - 1);
} }

View File

@@ -20,6 +20,7 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/list.h" #include "wx/list.h"
#include "wx/string.h"
#endif #endif
#if !wxUSE_PROTOCOL_HTTP #if !wxUSE_PROTOCOL_HTTP
@@ -63,7 +64,6 @@ USE_PROTOCOL(wxHTTPDummyProto)
#pragma comment(lib, "wininet.lib") #pragma comment(lib, "wininet.lib")
#endif #endif
#include "wx/string.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/module.h" #include "wx/module.h"
#include "wx/url.h" #include "wx/url.h"

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: dcclient.cpp // Name: src/os2/dcclient.cpp
// Purpose: wxClientDC class // Purpose: wxClientDC class
// Author: David Webster // Author: David Webster
// Modified by: // Modified by:
@@ -20,15 +20,18 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/string.h" #include "wx/dcclient.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#include "wx/log.h" #include "wx/log.h"
#include "wx/window.h" #include "wx/window.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/os2/private.h" #include "wx/os2/private.h"
#include "wx/dcclient.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// array/list types // array/list types
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@@ -362,7 +365,7 @@ wxPaintDC::wxPaintDC(
); );
} }
m_bIsPaintTime = TRUE; m_bIsPaintTime = true;
ms_cache.Add(new wxPaintDCInfo(m_pCanvas, this)); ms_cache.Add(new wxPaintDCInfo(m_pCanvas, this));
} }
InitDC(); InitDC();
@@ -383,7 +386,7 @@ wxPaintDC::~wxPaintDC()
{ {
::WinEndPaint(m_hPS); ::WinEndPaint(m_hPS);
m_hPS = m_hOldPS; m_hPS = m_hOldPS;
m_bIsPaintTime = FALSE; m_bIsPaintTime = false;
ms_cache.RemoveAt(nIndex); ms_cache.RemoveAt(nIndex);
} }
//else: cached DC entry is still in use //else: cached DC entry is still in use
@@ -431,4 +434,3 @@ WXHDC wxPaintDC::FindDCInCache(
} }
return 0; return 0;
} // end of wxPaintDC::FindInCache } // end of wxPaintDC::FindInCache

View File

@@ -12,23 +12,24 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#if wxUSE_PRINTING_ARCHITECTURE
#define INCL_DEV #define INCL_DEV
#define INCL_GPI #define INCL_GPI
#define INCL_PM #define INCL_PM
#include<os2.h> #include<os2.h>
#include "wx/dcprint.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/app.h" #include "wx/app.h"
#include "wx/math.h" #include "wx/math.h"
#include "wx/string.h"
#endif #endif
#include "wx/string.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/window.h" #include "wx/window.h"
#include "wx/os2/private.h" #include "wx/os2/private.h"
#include "wx/dcprint.h"
#if wxUSE_PRINTING_ARCHITECTURE
IMPLEMENT_CLASS(wxPrinterDC, wxDC) IMPLEMENT_CLASS(wxPrinterDC, wxDC)

View File

@@ -9,14 +9,17 @@
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
//
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
//
#include "wx/wxprec.h" #include "wx/wxprec.h"
#if wxUSE_JOYSTICK #if wxUSE_JOYSTICK
#include "wx/string.h" #include "wx/joystick.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#define INCL_PM #define INCL_PM
#define INCL_DOS #define INCL_DOS
#include "wx/os2/private.h" #include "wx/os2/private.h"
@@ -24,7 +27,6 @@
#define NO_JOYGETPOSEX #define NO_JOYGETPOSEX
#include "wx/window.h" #include "wx/window.h"
#include "wx/joystick.h"
IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject)
@@ -287,4 +289,5 @@ bool wxJoystick::ReleaseCapture()
// TODO // TODO
return false; return false;
} }
#endif // wxUSE_JOYSTICK #endif // wxUSE_JOYSTICK

View File

@@ -24,12 +24,15 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/string.h" #include "wx/dcclient.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#include "wx/log.h" #include "wx/log.h"
#include "wx/window.h" #include "wx/window.h"
#include "wx/dcclient.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// array/list types // array/list types
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@@ -156,4 +159,3 @@ wxPaintDCEx::wxPaintDCEx(wxWindow *canvas, WXHDC dc) : saveState(0)
wxPaintDCEx::~wxPaintDCEx() wxPaintDCEx::~wxPaintDCEx()
{ {
} }

View File

@@ -12,13 +12,15 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __BORLANDC__ #if wxUSE_JOYSTICK
#pragma hdrstop
#include "wx/joystick.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif #endif
#include "wx/string.h"
#include "wx/window.h" #include "wx/window.h"
#include "wx/palmos/joystick.h"
IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject)
@@ -27,7 +29,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject)
wxJoystick::wxJoystick(int joystick) wxJoystick::wxJoystick(int joystick)
{ {
}; }
wxPoint wxJoystick::GetPosition() const wxPoint wxJoystick::GetPosition() const
{ {
@@ -245,3 +247,4 @@ bool wxJoystick::ReleaseCapture()
return false; return false;
} }
#endif // wxUSE_JOYSTICK

View File

@@ -20,16 +20,17 @@
// for compilers that support precompilation, includes "wx.h". // for compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/fontenum.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/dynarray.h" #include "wx/dynarray.h"
#include "wx/string.h"
#endif #endif
#include "wx/string.h"
#include "wx/regex.h" #include "wx/regex.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/fontmap.h" #include "wx/fontmap.h"
#include "wx/fontenum.h"
#include "wx/fontutil.h" #include "wx/fontutil.h"
#include "wx/encinfo.h" #include "wx/encinfo.h"

View File

@@ -29,8 +29,12 @@
#pragma message enable nosimpint #pragma message enable nosimpint
#endif #endif
#include "wx/string.h"
#include "wx/font.h" #include "wx/font.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#include "wx/utils.h" // for wxGetDisplay() #include "wx/utils.h" // for wxGetDisplay()
#include "wx/fontutil.h" // for wxNativeFontInfo #include "wx/fontutil.h" // for wxNativeFontInfo

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: xh_statbar.cpp // Name: src/xrc/xh_statbar.cpp
// Purpose: XRC resource for wxStatusBar // Purpose: XRC resource for wxStatusBar
// Author: Brian Ravnsgaard Riis // Author: Brian Ravnsgaard Riis
// Created: 2004/01/21 // Created: 2004/01/21
@@ -17,11 +17,15 @@
#if wxUSE_XRC && wxUSE_STATUSBAR #if wxUSE_XRC && wxUSE_STATUSBAR
#include "wx/xrc/xh_statbar.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#include "wx/frame.h" #include "wx/frame.h"
#include "wx/string.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/xrc/xh_statbar.h"
#include "wx/statusbr.h" #include "wx/statusbr.h"
IMPLEMENT_DYNAMIC_CLASS(wxStatusBarXmlHandler, wxXmlResourceHandler) IMPLEMENT_DYNAMIC_CLASS(wxStatusBarXmlHandler, wxXmlResourceHandler)
@@ -62,7 +66,7 @@ wxObject *wxStatusBarXmlHandler::DoCreateResource()
else else
statbar->SetFieldsCount(fields); statbar->SetFieldsCount(fields);
if (!styles.IsEmpty()) if (!styles.empty())
{ {
int *style = new int[fields]; int *style = new int[fields];
for (int i = 0; i < fields; ++i) for (int i = 0; i < fields; ++i)
@@ -77,7 +81,7 @@ wxObject *wxStatusBarXmlHandler::DoCreateResource()
else if (first == wxT("wxSB_RAISED")) else if (first == wxT("wxSB_RAISED"))
style[i] = wxSB_RAISED; style[i] = wxSB_RAISED;
if (!first.IsEmpty()) if (!first.empty())
wxLogError(wxT("Error in resource, unknown statusbar field style: ") + first); wxLogError(wxT("Error in resource, unknown statusbar field style: ") + first);
if(styles.Find(wxT(','))) if(styles.Find(wxT(',')))
styles.Remove(0, styles.Find(wxT(',')) + 1); styles.Remove(0, styles.Find(wxT(',')) + 1);
@@ -102,4 +106,3 @@ bool wxStatusBarXmlHandler::CanHandle(wxXmlNode *node)
} }
#endif // wxUSE_XRC && wxUSE_STATUSBAR #endif // wxUSE_XRC && wxUSE_STATUSBAR