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

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-04-20 07:31:44 +00:00
parent 40a0dc1b0e
commit 8ecff18117
32 changed files with 145 additions and 159 deletions

View File

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// Name: common/base/appbase.cpp // Name: src/common/appbase.cpp
// Purpose: implements wxAppConsole class // Purpose: implements wxAppConsole class
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Modified by: // Modified by:
@@ -25,9 +25,9 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/list.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/list.h"
#include "wx/log.h" #include "wx/log.h"
#endif //WX_PRECOMP #endif //WX_PRECOMP
@@ -269,7 +269,7 @@ void wxAppConsole::ProcessPendingEvents()
if ( !wxPendingEventsLocker ) if ( !wxPendingEventsLocker )
return; return;
#endif #endif
// ensure that we're the only thread to modify the pending events list // ensure that we're the only thread to modify the pending events list
wxENTER_CRIT_SECT( *wxPendingEventsLocker ); wxENTER_CRIT_SECT( *wxPendingEventsLocker );
@@ -289,7 +289,7 @@ void wxAppConsole::ProcessPendingEvents()
// In ProcessPendingEvents(), new handlers might be add // In ProcessPendingEvents(), new handlers might be add
// and we can safely leave the critical section here. // and we can safely leave the critical section here.
wxLEAVE_CRIT_SECT( *wxPendingEventsLocker ); wxLEAVE_CRIT_SECT( *wxPendingEventsLocker );
handler->ProcessPendingEvents(); handler->ProcessPendingEvents();
wxENTER_CRIT_SECT( *wxPendingEventsLocker ); wxENTER_CRIT_SECT( *wxPendingEventsLocker );
@@ -839,4 +839,3 @@ void ShowAssertDialog(const wxChar *szFile,
} }
#endif // __WXDEBUG__ #endif // __WXDEBUG__

View File

@@ -25,10 +25,10 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/list.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/bitmap.h" #include "wx/bitmap.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/list.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
#include "wx/bitmap.h" #include "wx/bitmap.h"

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: artprov.cpp // Name: src/common/artprov.cpp
// Purpose: wxArtProvider class // Purpose: wxArtProvider class
// Author: Vaclav Slavik // Author: Vaclav Slavik
// Modified by: // Modified by:
@@ -21,15 +21,16 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/list.h" #include "wx/list.h"
#include "wx/log.h"
#endif #endif
#include "wx/artprov.h" #include "wx/artprov.h"
#include "wx/hashmap.h" #include "wx/hashmap.h"
#include "wx/module.h" #include "wx/module.h"
#if wxUSE_IMAGE #if wxUSE_IMAGE
#include "wx/image.h" #include "wx/image.h"
#endif #endif
// =========================================================================== // ===========================================================================
@@ -240,7 +241,7 @@ wxArtProviderCache *wxArtProvider::sm_cache = NULL;
else if (client == wxART_BUTTON) else if (client == wxART_BUTTON)
return wxSize(16, 15); return wxSize(16, 15);
else // wxART_OTHER or perhaps a user's client, no specified size else // wxART_OTHER or perhaps a user's client, no specified size
return wxDefaultSize; return wxDefaultSize;
#endif // GTK+ 2/else #endif // GTK+ 2/else
} }

View File

@@ -31,8 +31,8 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/object.h" #include "wx/object.h"
#include "wx/string.h"
#include "wx/list.h" #include "wx/list.h"
#include "wx/string.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/log.h" #include "wx/log.h"
#endif #endif

View File

@@ -21,8 +21,8 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/object.h" #include "wx/object.h"
#include "wx/string.h"
#include "wx/list.h" #include "wx/list.h"
#include "wx/string.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/log.h" #include "wx/log.h"
#endif #endif

View File

@@ -21,19 +21,19 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __BORLANDC__ #ifdef __BORLANDC__
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_DOC_VIEW_ARCHITECTURE #if wxUSE_DOC_VIEW_ARCHITECTURE
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/list.h"
#include "wx/string.h" #include "wx/string.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/dc.h" #include "wx/dc.h"
#include "wx/dialog.h" #include "wx/dialog.h"
#include "wx/menu.h" #include "wx/menu.h"
#include "wx/list.h"
#include "wx/filedlg.h" #include "wx/filedlg.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/log.h" #include "wx/log.h"
@@ -50,8 +50,8 @@
#endif #endif
#if wxUSE_PRINTING_ARCHITECTURE #if wxUSE_PRINTING_ARCHITECTURE
#include "wx/prntbase.h" #include "wx/prntbase.h"
#include "wx/printdlg.h" #include "wx/printdlg.h"
#endif #endif
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
@@ -66,14 +66,14 @@
#include <string.h> #include <string.h>
#if wxUSE_STD_IOSTREAM #if wxUSE_STD_IOSTREAM
#include "wx/ioswrap.h" #include "wx/ioswrap.h"
#if wxUSE_IOSTREAMH #if wxUSE_IOSTREAMH
#include <fstream.h> #include <fstream.h>
#else #else
#include <fstream> #include <fstream>
#endif #endif
#else #else
#include "wx/wfstream.h" #include "wx/wfstream.h"
#endif #endif
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -25,8 +25,8 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/list.h" #include "wx/list.h"
#include "wx/app.h"
#if wxUSE_GUI #if wxUSE_GUI
#include "wx/control.h" #include "wx/control.h"

View File

@@ -21,11 +21,11 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __BORLANDC__ #ifdef __BORLANDC__
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/list.h" #include "wx/list.h"
#endif #endif
#include "wx/hash.h" #include "wx/hash.h"

View File

@@ -19,6 +19,7 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/object.h" #include "wx/object.h"
#include "wx/list.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/palette.h" #include "wx/palette.h"
@@ -29,7 +30,6 @@
#include "wx/module.h" #include "wx/module.h"
#include "wx/hash.h" #include "wx/hash.h"
#include "wx/list.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// wxPCXHandler // wxPCXHandler

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: url.cpp // Name: src/common/url.cpp
// Purpose: URL parser // Purpose: URL parser
// Author: Guilhem Lavaux // Author: Guilhem Lavaux
// Modified by: // Modified by:
@@ -13,13 +13,16 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __BORLANDC__ #ifdef __BORLANDC__
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_URL #if wxUSE_URL
#ifndef WX_PRECOMP
#include "wx/list.h"
#endif
#include "wx/string.h" #include "wx/string.h"
#include "wx/list.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"
@@ -328,7 +331,7 @@ void wxURL::SetDefaultProxy(const wxString& url_proxy)
return; return;
wxString hostname = tmp_str(0, pos), wxString hostname = tmp_str(0, pos),
port = tmp_str(pos+1, tmp_str.Length()-pos); port = tmp_str(pos+1, tmp_str.length()-pos);
wxIPV4address addr; wxIPV4address addr;
if (!addr.Hostname(hostname)) if (!addr.Hostname(hostname))
@@ -371,7 +374,7 @@ void wxURL::SetProxy(const wxString& url_proxy)
return; return;
hostname = tmp_str(0, pos); hostname = tmp_str(0, pos);
port = tmp_str(pos+1, tmp_str.Length()-pos); port = tmp_str(pos+1, tmp_str.length()-pos);
addr.Hostname(hostname); addr.Hostname(hostname);
addr.Service(port); addr.Service(port);

View File

@@ -21,13 +21,13 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/object.h" #include "wx/object.h"
#include "wx/list.h"
#include "wx/hash.h" #include "wx/hash.h"
#endif #endif
#include "wx/xti.h" #include "wx/xti.h"
#include "wx/xml/xml.h" #include "wx/xml/xml.h"
#include "wx/tokenzr.h" #include "wx/tokenzr.h"
#include "wx/list.h"
#include <string.h> #include <string.h>
#include "wx/beforestd.h" #include "wx/beforestd.h"

View File

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// Name: generic/accel.cpp // Name: src/generic/accel.cpp
// Purpose: generic implementation of wxAcceleratorTable class // Purpose: generic implementation of wxAcceleratorTable class
// Author: Robert Roebling // Author: Robert Roebling
// Modified: VZ pn 31.05.01: use typed lists, Unicode cleanup, Add/Remove // Modified: VZ pn 31.05.01: use typed lists, Unicode cleanup, Add/Remove
@@ -26,8 +26,8 @@
#if wxUSE_ACCEL #if wxUSE_ACCEL
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/event.h"
#include "wx/list.h" #include "wx/list.h"
#include "wx/event.h"
#endif // WX_PRECOMP #endif // WX_PRECOMP
#include "wx/accel.h" #include "wx/accel.h"
@@ -218,4 +218,3 @@ wxObjectRefData *wxAcceleratorTable::CloneRefData(const wxObjectRefData *data) c
} }
#endif // wxUSE_ACCEL #endif // wxUSE_ACCEL

View File

@@ -18,9 +18,9 @@
#if wxUSE_HELP && !defined(__WXWINCE__) && (!defined(__WXMAC__) || defined(__WXMAC_OSX__)) #if wxUSE_HELP && !defined(__WXWINCE__) && (!defined(__WXMAC__) || defined(__WXMAC_OSX__))
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/list.h"
#include "wx/string.h" #include "wx/string.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/list.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
#include "wx/choicdlg.h" #include "wx/choicdlg.h"

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: utilres.cpp // Name: src/gtk/utilsres.cpp
// Purpose: // Purpose:
// Author: Robert Roebling // Author: Robert Roebling
// Id: $Id$ // Id: $Id$
@@ -10,9 +10,12 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/list.h"
#endif
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/string.h" #include "wx/string.h"
#include "wx/list.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"
@@ -24,7 +27,7 @@
bool wxWriteResource(const wxString& section, const wxString& entry, const wxString& value, const wxString& file ) bool wxWriteResource(const wxString& section, const wxString& entry, const wxString& value, const wxString& file )
{ {
wxString filename( file ); wxString filename( file );
if (filename.IsEmpty()) filename = wxT(".wxWindows"); if (filename.empty()) filename = wxT(".wxWindows");
wxFileConfig conf( wxTheApp->GetAppName(), wxTheApp->GetVendorName(), filename ); wxFileConfig conf( wxTheApp->GetAppName(), wxTheApp->GetVendorName(), filename );
@@ -60,7 +63,7 @@ bool wxWriteResource(const wxString& section, const wxString& entry, int value,
bool wxGetResource(const wxString& section, const wxString& entry, wxChar **value, const wxString& file ) bool wxGetResource(const wxString& section, const wxString& entry, wxChar **value, const wxString& file )
{ {
wxString filename( file ); wxString filename( file );
if (filename.IsEmpty()) filename = wxT(".wxWindows"); if (filename.empty()) filename = wxT(".wxWindows");
wxFileConfig conf( wxTheApp->GetAppName(), wxTheApp->GetVendorName(), filename ); wxFileConfig conf( wxTheApp->GetAppName(), wxTheApp->GetVendorName(), filename );
@@ -69,16 +72,16 @@ bool wxGetResource(const wxString& section, const wxString& entry, wxChar **valu
wxString result; wxString result;
if (conf.Read( entry, &result )) if (conf.Read( entry, &result ))
{ {
if (!result.IsEmpty()) if (!result.empty())
{ {
wxChar *s = new wxChar[result.Len()+1]; wxChar *s = new wxChar[result.Len()+1];
wxStrcpy( s, result.c_str() ); wxStrcpy( s, result.c_str() );
*value = s; *value = s;
return TRUE; return true;
} }
} }
return FALSE; return false;
} }
bool wxGetResource(const wxString& section, const wxString& entry, float *value, const wxString& file ) bool wxGetResource(const wxString& section, const wxString& entry, float *value, const wxString& file )
@@ -89,9 +92,9 @@ bool wxGetResource(const wxString& section, const wxString& entry, float *value,
{ {
*value = (float)wxStrtod(s, NULL); *value = (float)wxStrtod(s, NULL);
delete[] s; delete[] s;
return TRUE; return true;
} }
else return FALSE; else return false;
} }
bool wxGetResource(const wxString& section, const wxString& entry, long *value, const wxString& file ) bool wxGetResource(const wxString& section, const wxString& entry, long *value, const wxString& file )
@@ -102,9 +105,9 @@ bool wxGetResource(const wxString& section, const wxString& entry, long *value,
{ {
*value = wxStrtol(s, NULL, 10); *value = wxStrtol(s, NULL, 10);
delete[] s; delete[] s;
return TRUE; return true;
} }
else return FALSE; else return false;
} }
bool wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file ) bool wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file )
@@ -115,8 +118,7 @@ bool wxGetResource(const wxString& section, const wxString& entry, int *value, c
{ {
*value = (int)wxStrtol(s, NULL, 10); *value = (int)wxStrtol(s, NULL, 10);
delete[] s; delete[] s;
return TRUE; return true;
} }
else return FALSE; else return false;
} }

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: utilres.cpp // Name: src/gtk1/utilsres.cpp
// Purpose: // Purpose:
// Author: Robert Roebling // Author: Robert Roebling
// Id: $Id$ // Id: $Id$
@@ -10,9 +10,12 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/list.h"
#endif
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/string.h" #include "wx/string.h"
#include "wx/list.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"
@@ -24,7 +27,7 @@
bool wxWriteResource(const wxString& section, const wxString& entry, const wxString& value, const wxString& file ) bool wxWriteResource(const wxString& section, const wxString& entry, const wxString& value, const wxString& file )
{ {
wxString filename( file ); wxString filename( file );
if (filename.IsEmpty()) filename = wxT(".wxWindows"); if (filename.empty()) filename = wxT(".wxWindows");
wxFileConfig conf( wxTheApp->GetAppName(), wxTheApp->GetVendorName(), filename ); wxFileConfig conf( wxTheApp->GetAppName(), wxTheApp->GetVendorName(), filename );
@@ -60,7 +63,7 @@ bool wxWriteResource(const wxString& section, const wxString& entry, int value,
bool wxGetResource(const wxString& section, const wxString& entry, wxChar **value, const wxString& file ) bool wxGetResource(const wxString& section, const wxString& entry, wxChar **value, const wxString& file )
{ {
wxString filename( file ); wxString filename( file );
if (filename.IsEmpty()) filename = wxT(".wxWindows"); if (filename.empty()) filename = wxT(".wxWindows");
wxFileConfig conf( wxTheApp->GetAppName(), wxTheApp->GetVendorName(), filename ); wxFileConfig conf( wxTheApp->GetAppName(), wxTheApp->GetVendorName(), filename );
@@ -69,16 +72,16 @@ bool wxGetResource(const wxString& section, const wxString& entry, wxChar **valu
wxString result; wxString result;
if (conf.Read( entry, &result )) if (conf.Read( entry, &result ))
{ {
if (!result.IsEmpty()) if (!result.empty())
{ {
wxChar *s = new wxChar[result.Len()+1]; wxChar *s = new wxChar[result.Len()+1];
wxStrcpy( s, result.c_str() ); wxStrcpy( s, result.c_str() );
*value = s; *value = s;
return TRUE; return true;
} }
} }
return FALSE; return false;
} }
bool wxGetResource(const wxString& section, const wxString& entry, float *value, const wxString& file ) bool wxGetResource(const wxString& section, const wxString& entry, float *value, const wxString& file )
@@ -89,9 +92,9 @@ bool wxGetResource(const wxString& section, const wxString& entry, float *value,
{ {
*value = (float)wxStrtod(s, NULL); *value = (float)wxStrtod(s, NULL);
delete[] s; delete[] s;
return TRUE; return true;
} }
else return FALSE; else return false;
} }
bool wxGetResource(const wxString& section, const wxString& entry, long *value, const wxString& file ) bool wxGetResource(const wxString& section, const wxString& entry, long *value, const wxString& file )
@@ -102,9 +105,9 @@ bool wxGetResource(const wxString& section, const wxString& entry, long *value,
{ {
*value = wxStrtol(s, NULL, 10); *value = wxStrtol(s, NULL, 10);
delete[] s; delete[] s;
return TRUE; return true;
} }
else return FALSE; else return false;
} }
bool wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file ) bool wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file )
@@ -115,8 +118,7 @@ bool wxGetResource(const wxString& section, const wxString& entry, int *value, c
{ {
*value = (int)wxStrtol(s, NULL, 10); *value = (int)wxStrtol(s, NULL, 10);
delete[] s; delete[] s;
return TRUE; return true;
} }
else return FALSE; else return false;
} }

View File

@@ -16,6 +16,7 @@
#if wxUSE_HTML && wxUSE_STREAMS #if wxUSE_HTML && wxUSE_STREAMS
#ifndef WXPRECOMP #ifndef WXPRECOMP
#include "wx/list.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/dcclient.h" #include "wx/dcclient.h"
@@ -24,7 +25,6 @@
#include "wx/html/htmlwin.h" #include "wx/html/htmlwin.h"
#include "wx/html/htmlproc.h" #include "wx/html/htmlproc.h"
#include "wx/list.h"
#include "wx/clipbrd.h" #include "wx/clipbrd.h"
#include "wx/dataobj.h" #include "wx/dataobj.h"
#include "wx/timer.h" #include "wx/timer.h"
@@ -1612,4 +1612,3 @@ IMPLEMENT_DYNAMIC_CLASS(wxHtmlWinModule, wxModule)
FORCE_WXHTML_MODULES() FORCE_WXHTML_MODULES()
#endif // wxUSE_HTML #endif // wxUSE_HTML

View File

@@ -13,13 +13,13 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __BORLANDC__ #ifdef __BORLANDC__
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include <stdio.h> #include <stdio.h>
#include "wx/list.h" #include "wx/list.h"
#include "wx/utils.h" #include "wx/utils.h"
#endif #endif
#include "wx/gdiobj.h" #include "wx/gdiobj.h"

View File

@@ -12,13 +12,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"
#ifndef WX_PRECOMP
#include "wx/list.h"
#endif
#include "wx/cursor.h" #include "wx/cursor.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/list.h"
#include "wx/window.h" #include "wx/window.h"
#if wxUSE_IMAGE #if wxUSE_IMAGE
#include "wx/image.h" #include "wx/image.h"
#endif #endif
#ifdef __VMS__ #ifdef __VMS__

View File

@@ -1,5 +1,5 @@
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////
// Name: bitmap.cpp // Name: src/msw/bitmap.cpp
// Purpose: wxBitmap // Purpose: wxBitmap
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:

View File

@@ -13,14 +13,14 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __BORLANDC__ #ifdef __BORLANDC__
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include <stdio.h> #include <stdio.h>
#include "wx/list.h" #include "wx/list.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/app.h" #include "wx/app.h"
#endif #endif
#include "wx/gdiobj.h" #include "wx/gdiobj.h"

View File

@@ -25,7 +25,6 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/defs.h"
#include "wx/list.h" #include "wx/list.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/app.h" #include "wx/app.h"

View File

@@ -13,15 +13,15 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __BORLANDC__ #ifdef __BORLANDC__
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include <stdio.h> #include <stdio.h>
#include "wx/list.h" #include "wx/list.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/pen.h" #include "wx/pen.h"
#endif #endif
#include "wx/msw/private.h" #include "wx/msw/private.h"

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: msw/timer.cpp // Name: src/msw/timer.cpp
// Purpose: wxTimer implementation // Purpose: wxTimer implementation
// Author: Julian Smart // Author: Julian Smart
// Modified by: Vadim Zeitlin (use hash map instead of list, global rewrite) // Modified by: Vadim Zeitlin (use hash map instead of list, global rewrite)
@@ -19,8 +19,8 @@
#if wxUSE_TIMER #if wxUSE_TIMER
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/window.h"
#include "wx/list.h" #include "wx/list.h"
#include "wx/window.h"
#include "wx/event.h" #include "wx/event.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/intl.h" #include "wx/intl.h"
@@ -162,4 +162,3 @@ wxTimerProc(HWND WXUNUSED(hwnd),
} }
#endif // wxUSE_TIMER #endif // wxUSE_TIMER

View File

@@ -18,6 +18,10 @@
#if wxUSE_URL_NATIVE #if wxUSE_URL_NATIVE
#ifndef WX_PRECOMP
#include "wx/list.h"
#endif
#if !wxUSE_PROTOCOL_HTTP #if !wxUSE_PROTOCOL_HTTP
#include "wx/protocol/protocol.h" #include "wx/protocol/protocol.h"
@@ -60,7 +64,6 @@ USE_PROTOCOL(wxHTTPDummyProto)
#endif #endif
#include "wx/string.h" #include "wx/string.h"
#include "wx/list.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: bitmap.cpp // Name: src/os2/bitmap.cpp
// Purpose: wxBitmap // Purpose: wxBitmap
// Author: David Webster // Author: David Webster
// Modified by: // Modified by:
@@ -27,7 +27,6 @@
#include "wx/os2/private.h" #include "wx/os2/private.h"
#include "wx/log.h" #include "wx/log.h"
//#include "wx/msw/dib.h"
#include "wx/image.h" #include "wx/image.h"
#include "wx/xpmdecod.h" #include "wx/xpmdecod.h"
@@ -90,9 +89,7 @@ void wxBitmap::Init()
// //
} // end of wxBitmap::Init } // end of wxBitmap::Init
bool wxBitmap::CopyFromIconOrCursor( bool wxBitmap::CopyFromIconOrCursor(const wxGDIImage& rIcon)
const wxGDIImage& rIcon
)
{ {
HPOINTER hIcon = (HPOINTER)rIcon.GetHandle(); HPOINTER hIcon = (HPOINTER)rIcon.GetHandle();
POINTERINFO SIconInfo; POINTERINFO SIconInfo;

View File

@@ -13,12 +13,12 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include <stdio.h> #include <stdio.h>
#include "wx/list.h" #include "wx/list.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/brush.h" #include "wx/brush.h"
#include "wx/log.h" #include "wx/log.h"
#endif #endif
#include "wx/os2/private.h" #include "wx/os2/private.h"
@@ -34,9 +34,7 @@ wxBrushRefData::wxBrushRefData()
memset(&m_vBundle, '\0', sizeof(AREABUNDLE)); memset(&m_vBundle, '\0', sizeof(AREABUNDLE));
} // end of wxBrushRefData::wxBrushRefData } // end of wxBrushRefData::wxBrushRefData
wxBrushRefData::wxBrushRefData( wxBrushRefData::wxBrushRefData(const wxBrushRefData& rData)
const wxBrushRefData& rData
)
{ {
m_nStyle = rData.m_nStyle; m_nStyle = rData.m_nStyle;
m_vStipple = rData.m_vStipple; m_vStipple = rData.m_vStipple;
@@ -75,9 +73,7 @@ wxBrush::wxBrush(
RealizeResource(); RealizeResource();
} // end of wxBrush::wxBrush } // end of wxBrush::wxBrush
wxBrush::wxBrush( wxBrush::wxBrush(const wxBitmap& rStipple)
const wxBitmap& rStipple
)
{ {
m_refData = new wxBrushRefData; m_refData = new wxBrushRefData;

View File

@@ -13,12 +13,12 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include <stdio.h> #include <stdio.h>
#include "wx/list.h" #include "wx/list.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/cursor.h" #include "wx/cursor.h"
#include "wx/icon.h" #include "wx/icon.h"
#endif #endif
#include "wx/os2/private.h" #include "wx/os2/private.h"

View File

@@ -323,10 +323,10 @@ void wxFontRefData::Init(
m_vEncoding = vEncoding; m_vEncoding = vEncoding;
m_hFont = 0; m_hFont = 0;
m_bNativeFontInfoOk = FALSE; m_bNativeFontInfoOk = false;
m_nFontId = 0; m_nFontId = 0;
m_bTemporary = FALSE; m_bTemporary = false;
m_pFM = (PFONTMETRICS)NULL; m_pFM = (PFONTMETRICS)NULL;
m_hPS = NULLHANDLE; m_hPS = NULLHANDLE;
m_nNumFonts = 0; m_nNumFonts = 0;
@@ -359,7 +359,7 @@ void wxFontRefData::Init(
m_hPS = (HPS)hPS; m_hPS = (HPS)hPS;
m_nFontId = 0; m_nFontId = 0;
m_bTemporary = FALSE; m_bTemporary = false;
m_pFM = (PFONTMETRICS)NULL; m_pFM = (PFONTMETRICS)NULL;
m_nNumFonts = 0; m_nNumFonts = 0;
} // end of wxFontRefData::Init } // end of wxFontRefData::Init
@@ -782,56 +782,56 @@ bool wxNativeFontInfo::FromString( const wxString& rsStr )
wxString sToken = vTokenizer.GetNextToken(); wxString sToken = vTokenizer.GetNextToken();
if (sToken != _T('0')) if (sToken != _T('0'))
return FALSE; return false;
sToken = vTokenizer.GetNextToken(); sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal)) if (!sToken.ToLong(&lVal))
return FALSE; return false;
fm.lEmHeight = lVal; fm.lEmHeight = lVal;
sToken = vTokenizer.GetNextToken(); sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal)) if (!sToken.ToLong(&lVal))
return FALSE; return false;
fa.lAveCharWidth = lVal; fa.lAveCharWidth = lVal;
sToken = vTokenizer.GetNextToken(); sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal)) if (!sToken.ToLong(&lVal))
return FALSE; return false;
fa.fsSelection = (USHORT)lVal; fa.fsSelection = (USHORT)lVal;
sToken = vTokenizer.GetNextToken(); sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal)) if (!sToken.ToLong(&lVal))
return FALSE; return false;
fa.fsType = (USHORT)lVal; fa.fsType = (USHORT)lVal;
sToken = vTokenizer.GetNextToken(); sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal)) if (!sToken.ToLong(&lVal))
return FALSE; return false;
fa.fsFontUse = (USHORT)lVal; fa.fsFontUse = (USHORT)lVal;
sToken = vTokenizer.GetNextToken(); sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal)) if (!sToken.ToLong(&lVal))
return FALSE; return false;
fa.idRegistry = (USHORT)lVal; fa.idRegistry = (USHORT)lVal;
sToken = vTokenizer.GetNextToken(); sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal)) if (!sToken.ToLong(&lVal))
return FALSE; return false;
fa.usCodePage = (USHORT)lVal; fa.usCodePage = (USHORT)lVal;
sToken = vTokenizer.GetNextToken(); sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal)) if (!sToken.ToLong(&lVal))
return FALSE; return false;
fa.lMatch = lVal; fa.lMatch = lVal;
sToken = vTokenizer.GetNextToken(); sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal)) if (!sToken.ToLong(&lVal))
return FALSE; return false;
fn.usWeightClass = (USHORT)lVal; fn.usWeightClass = (USHORT)lVal;
sToken = vTokenizer.GetNextToken(); sToken = vTokenizer.GetNextToken();
if(!sToken) if(!sToken)
return FALSE; return false;
wxStrcpy((wxChar*)fa.szFacename, sToken.c_str()); wxStrcpy((wxChar*)fa.szFacename, sToken.c_str());
return true; return true;
} // end of wxNativeFontInfo::FromString } // end of wxNativeFontInfo::FromString
@@ -1103,7 +1103,7 @@ int wxFont::GetWeight() const
bool wxFont::GetUnderlined() const bool wxFont::GetUnderlined() const
{ {
wxCHECK_MSG( Ok(), FALSE, wxT("invalid font") ); wxCHECK_MSG( Ok(), false, wxT("invalid font") );
return M_FONTDATA->GetUnderlined(); return M_FONTDATA->GetUnderlined();
} // end of wxFont::GetUnderlined } // end of wxFont::GetUnderlined

View File

@@ -11,6 +11,8 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#if wxUSE_PRINTING_ARCHITECTURE
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include <stdio.h> #include <stdio.h>
#include "wx/list.h" #include "wx/list.h"
@@ -18,8 +20,6 @@
#include "wx/app.h" #include "wx/app.h"
#endif #endif
#if wxUSE_PRINTING_ARCHITECTURE
#include "wx/os2/printos2.h" #include "wx/os2/printos2.h"
#include "wx/generic/prntdlgg.h" #include "wx/generic/prntdlgg.h"

View File

@@ -13,8 +13,8 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/window.h"
#include "wx/list.h" #include "wx/list.h"
#include "wx/window.h"
#include "wx/event.h" #include "wx/event.h"
#include "wx/app.h" #include "wx/app.h"
#endif #endif
@@ -96,18 +96,13 @@ void wxTimer::Notify()
(void)m_owner->ProcessEvent(vEvent); (void)m_owner->ProcessEvent(vEvent);
} // end of wxTimer::Notify } // end of wxTimer::Notify
bool wxTimer::Start( bool wxTimer::Start( int nMilliseconds, bool bOneShot )
int nMilliseconds
, bool bOneShot
)
{ {
(void)wxTimerBase::Start( nMilliseconds (void)wxTimerBase::Start( nMilliseconds, bOneShot );
,bOneShot
);
wxCHECK_MSG( m_milli > 0L, FALSE, wxT("invalid value for timer") ); wxCHECK_MSG( m_milli > 0L, false, wxT("invalid value for timer") );
wxWindow* pWin = NULL; wxWindow* pWin = NULL;
if (m_owner) if (m_owner)
{ {
@@ -148,7 +143,7 @@ bool wxTimer::Start(
{ {
wxLogSysError(_("Couldn't create a timer")); wxLogSysError(_("Couldn't create a timer"));
return(FALSE); return false;
} }
} }

View File

@@ -13,27 +13,16 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __BORLANDC__ #ifdef __BORLANDC__
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include <stdio.h> #include <stdio.h>
#include "wx/list.h" #include "wx/list.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/app.h" #include "wx/app.h"
#endif #endif
#include "wx/gdiobj.h" #include "wx/gdiobj.h"
IMPLEMENT_DYNAMIC_CLASS(wxGDIObject, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxGDIObject, wxObject)
/*
void wxGDIObject::IncrementResourceUsage(void)
{
};
void wxGDIObject::DecrementResourceUsage(void)
{
};
*/

View File

@@ -19,8 +19,8 @@
#if wxUSE_TIMER #if wxUSE_TIMER
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/window.h"
#include "wx/list.h" #include "wx/list.h"
#include "wx/window.h"
#include "wx/event.h" #include "wx/event.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/intl.h" #include "wx/intl.h"
@@ -98,4 +98,3 @@ void WINAPI wxTimerProc(HWND WXUNUSED(hwnd), WORD, int idTimer, DWORD)
} }
#endif // wxUSE_TIMER #endif // wxUSE_TIMER