wx/wxprec.h already includes wx/defs.h (with other minor cleaning).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-04-18 07:24:35 +00:00
parent 2c1e249967
commit 8898456df4
40 changed files with 282 additions and 317 deletions

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: cocoa/app.mm // Name: src/cocoa/app.mm
// Purpose: wxApp // Purpose: wxApp
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
@@ -10,8 +10,8 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/defs.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/dc.h" #include "wx/dc.h"
#include "wx/intl.h" #include "wx/intl.h"
@@ -233,7 +233,7 @@ wxApp::wxApp()
m_topWindow = NULL; m_topWindow = NULL;
#ifdef __WXDEBUG__ #ifdef __WXDEBUG__
m_isInAssert = FALSE; m_isInAssert = false;
#endif // __WXDEBUG__ #endif // __WXDEBUG__
argc = 0; argc = 0;
@@ -263,7 +263,7 @@ bool wxApp::OnInitGui()
{ {
wxAutoNSAutoreleasePool pool; wxAutoNSAutoreleasePool pool;
if(!wxAppBase::OnInitGui()) if(!wxAppBase::OnInitGui())
return FALSE; return false;
// Create the app using the sharedApplication method // Create the app using the sharedApplication method
m_cocoaApp = [NSApplication sharedApplication]; m_cocoaApp = [NSApplication sharedApplication];
@@ -276,7 +276,7 @@ bool wxApp::OnInitGui()
wxMenuBarManager::CreateInstance(); wxMenuBarManager::CreateInstance();
wxDC::CocoaInitializeTextSystem(); wxDC::CocoaInitializeTextSystem();
return TRUE; return true;
} }
bool wxApp::CallOnInit() bool wxApp::CallOnInit()
@@ -288,9 +288,9 @@ bool wxApp::CallOnInit()
bool wxApp::OnInit() bool wxApp::OnInit()
{ {
if(!wxAppBase::OnInit()) if(!wxAppBase::OnInit())
return FALSE; return false;
return TRUE; return true;
} }
void wxApp::Exit() void wxApp::Exit()
@@ -359,9 +359,8 @@ void wxApp::WakeUpIdle()
#ifdef __WXDEBUG__ #ifdef __WXDEBUG__
void wxApp::OnAssert(const wxChar *file, int line, const wxChar* cond, const wxChar *msg) 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); wxAppBase::OnAssert(file, line, cond, msg);
m_isInAssert = FALSE; m_isInAssert = false;
} }
#endif // __WXDEBUG__ #endif // __WXDEBUG__

View File

@@ -1,10 +1,10 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: cocoa/bmpbuttn.mm // Name: src/cocoa/bmpbuttn.mm
// Purpose: wxBitmapButton // Purpose: wxBitmapButton
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2003/03/16 // Created: 2003/03/16
// RCS-ID: $Id: // RCS-ID: $Id$
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWidgets licence // Licence: wxWidgets licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
@@ -14,7 +14,6 @@
#if wxUSE_BMPBUTTON #if wxUSE_BMPBUTTON
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/defs.h"
#include "wx/bmpbuttn.h" #include "wx/bmpbuttn.h"
#include "wx/log.h" #include "wx/log.h"
#endif #endif

View File

@@ -1,17 +1,17 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: cocoa/button.mm // Name: src/cocoa/button.mm
// Purpose: wxButton // Purpose: wxButton
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2002/12/30 // Created: 2002/12/30
// RCS-ID: $Id: // RCS-ID: $Id$
// Copyright: (c) 2002 David Elliott // Copyright: (c) 2002 David Elliott
// Licence: wxWidgets licence // Licence: wxWidgets licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/defs.h"
#include "wx/button.h" #include "wx/button.h"
#include "wx/log.h" #include "wx/log.h"
#endif #endif
@@ -108,4 +108,3 @@ wxSize wxButtonBase::GetDefaultSize()
// Apple HIG says OK/Cancel buttons have default width of 68. // Apple HIG says OK/Cancel buttons have default width of 68.
return wxSize(68,(int)ceil(cocoaRect.size.height)); return wxSize(68,(int)ceil(cocoaRect.size.height));
} }

View File

@@ -1,17 +1,17 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: cocoa/control.mm // Name: src/cocoa/control.mm
// Purpose: wxControl class // Purpose: wxControl class
// Author: David Elliiott // Author: David Elliiott
// Modified by: // Modified by:
// Created: 2003/02/15 // Created: 2003/02/15
// RCS-ID: $Id: // RCS-ID: $Id$
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWidgets licence // Licence: wxWidgets licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/defs.h"
#include "wx/control.h" #include "wx/control.h"
#include "wx/log.h" #include "wx/log.h"
#endif #endif
@@ -123,4 +123,3 @@ void wxControl::CocoaSetEnabled(bool enable)
{ {
[GetNSControl() setEnabled: enable]; [GetNSControl() setEnabled: enable];
} }

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: font.cpp // Name: src/cocoa/font.cpp
// Purpose: wxFont class // Purpose: wxFont class
// Author: AUTHOR // Author: AUTHOR
// Modified by: // Modified by:
@@ -9,8 +9,12 @@
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#include "wx/defs.h" #include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/string.h" #include "wx/string.h"
#endif
#include "wx/font.h" #include "wx/font.h"
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#include "wx/encinfo.h" #include "wx/encinfo.h"
@@ -34,7 +38,7 @@ wxFontRefData::~wxFontRefData()
bool wxFont::Create(const wxNativeFontInfo&) bool wxFont::Create(const wxNativeFontInfo&)
{ {
return FALSE; return false;
} }
void wxFont::SetEncoding(wxFontEncoding) void wxFont::SetEncoding(wxFontEncoding)
@@ -53,7 +57,7 @@ int wxFont::GetPointSize() const
bool wxFont::GetUnderlined() const bool wxFont::GetUnderlined() const
{ {
return FALSE; return false;
} }
int wxFont::GetStyle() const int wxFont::GetStyle() const
@@ -92,7 +96,7 @@ bool wxFont::Create(int pointSize, int family, int style, int weight, bool under
RealizeResource(); RealizeResource();
return TRUE; return true;
} }
wxFont::~wxFont() wxFont::~wxFont()
@@ -102,7 +106,7 @@ wxFont::~wxFont()
bool wxFont::RealizeResource() bool wxFont::RealizeResource()
{ {
// TODO: create the font (if there is a native font object) // TODO: create the font (if there is a native font object)
return FALSE; return false;
} }
void wxFont::Unshare() void wxFont::Unshare()

View File

@@ -9,6 +9,8 @@
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
// =========================================================================== // ===========================================================================
// declarations // declarations
// =========================================================================== // ===========================================================================
@@ -17,11 +19,12 @@
// headers // headers
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
#include "wx/defs.h"
#if wxUSE_TOOLTIPS #if wxUSE_TOOLTIPS
#ifndef WX_PRECOMP
#include "wx/window.h" #include "wx/window.h"
#endif
#include "wx/tooltip.h" #include "wx/tooltip.h"
#include "wx/cocoa/autorelease.h" #include "wx/cocoa/autorelease.h"
@@ -135,7 +138,7 @@ void wxToolTip::SetWindow(wxWindow* window)
m_window = window; m_window = window;
//set the tooltip - empty string means remove //set the tooltip - empty string means remove
if (m_text.IsEmpty()) if (m_text.empty())
[m_window->GetNSView() setToolTip:nil]; [m_window->GetNSView() setToolTip:nil];
else else
[m_window->GetNSView() setToolTip:wxNSStringWithWxString(m_text)]; [m_window->GetNSView() setToolTip:wxNSStringWithWxString(m_text)];

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: archive.cpp // Name: src/common/archive.cpp
// Purpose: Streams for archive formats // Purpose: Streams for archive formats
// Author: Mike Wetherell // Author: Mike Wetherell
// RCS-ID: $Id$ // RCS-ID: $Id$
@@ -14,12 +14,11 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef WX_PRECOMP
#include "wx/defs.h"
#endif
#if wxUSE_STREAMS && wxUSE_ARCHIVE_STREAMS #if wxUSE_STREAMS && wxUSE_ARCHIVE_STREAMS
#ifndef WX_PRECOMP
#endif
#include "wx/archive.h" #include "wx/archive.h"
#include "wx/link.h" #include "wx/link.h"

View File

@@ -19,14 +19,16 @@
// 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/defs.h"
#ifdef __BORLANDC__ #ifdef __BORLANDC__
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/utils.h" #ifndef WX_PRECOMP
#include "wx/intl.h" #include "wx/intl.h"
#endif
#include "wx/utils.h"
#include "wx/file.h" // This does include filefn.h #include "wx/file.h" // This does include filefn.h
#include "wx/filename.h" #include "wx/filename.h"
#include "wx/dir.h" #include "wx/dir.h"

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: gifdecod.cpp // Name: src/common/gifdecod.cpp
// Purpose: wxGIFDecoder, GIF reader for wxImage and wxAnimation // Purpose: wxGIFDecoder, GIF reader for wxImage and wxAnimation
// Author: Guillermo Rodriguez Garcia <guille@iies.es> // Author: Guillermo Rodriguez Garcia <guille@iies.es>
// Version: 3.04 // Version: 3.04
@@ -15,13 +15,12 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_STREAMS && wxUSE_GIF
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
# include "wx/defs.h"
#include "wx/palette.h" #include "wx/palette.h"
#endif #endif
#if wxUSE_STREAMS && wxUSE_GIF
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "wx/gifdecod.h" #include "wx/gifdecod.h"

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: helpbase.cpp // Name: src/common/helpbase.cpp
// Purpose: Help system base classes // Purpose: Help system base classes
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -16,12 +16,11 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef WX_PRECOMP
#include "wx/defs.h"
#endif
#if wxUSE_HELP #if wxUSE_HELP
#ifndef WX_PRECOMP
#endif
#include "wx/helpbase.h" #include "wx/helpbase.h"
IMPLEMENT_CLASS(wxHelpControllerBase, wxObject) IMPLEMENT_CLASS(wxHelpControllerBase, wxObject)

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: imagbmp.cpp // Name: src/common/imagbmp.cpp
// Purpose: wxImage BMP,ICO and CUR handlers // Purpose: wxImage BMP,ICO and CUR handlers
// Author: Robert Roebling, Chris Elliott // Author: Robert Roebling, Chris Elliott
// RCS-ID: $Id$ // RCS-ID: $Id$
@@ -14,15 +14,16 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/defs.h"
#if wxUSE_IMAGE #if wxUSE_IMAGE
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/app.h"
#endif
#include "wx/imagbmp.h" #include "wx/imagbmp.h"
#include "wx/bitmap.h" #include "wx/bitmap.h"
#include "wx/debug.h" #include "wx/debug.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/filefn.h" #include "wx/filefn.h"
#include "wx/wfstream.h" #include "wx/wfstream.h"
#include "wx/intl.h" #include "wx/intl.h"

View File

@@ -14,15 +14,16 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/defs.h"
#if wxUSE_IMAGE #if wxUSE_IMAGE
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/app.h"
#endif
#include "wx/image.h" #include "wx/image.h"
#include "wx/bitmap.h" #include "wx/bitmap.h"
#include "wx/debug.h" #include "wx/debug.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/filefn.h" #include "wx/filefn.h"
#include "wx/wfstream.h" #include "wx/wfstream.h"
#include "wx/intl.h" #include "wx/intl.h"

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: imagfill.cpp // Name: src/common/imagfill.cpp
// Purpose: FloodFill for wxImage // Purpose: FloodFill for wxImage
// Author: Julian Smart // Author: Julian Smart
// RCS-ID: $Id$ // RCS-ID: $Id$
@@ -15,19 +15,17 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/defs.h"
#if wxUSE_IMAGE && !defined(__WXMSW__) #if wxUSE_IMAGE && !defined(__WXMSW__)
// we have no use for this code in wxMSW... // we have no use for this code in wxMSW...
#include "wx/image.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/brush.h" #include "wx/brush.h"
#include "wx/dc.h" #include "wx/dc.h"
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#endif #endif
#include "wx/image.h"
// DoFloodFill // DoFloodFill
// Fills with the colour extracted from fillBrush, starting at x,y until either // Fills with the colour extracted from fillBrush, starting at x,y until either
// a color different from the start pixel is reached (wxFLOOD_SURFACE) // a color different from the start pixel is reached (wxFLOOD_SURFACE)

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: imaggif.cpp // Name: src/common/imaggif.cpp
// Purpose: wxGIFHandler // Purpose: wxGIFHandler
// Author: Vaclav Slavik & Guillermo Rodriguez Garcia // Author: Vaclav Slavik & Guillermo Rodriguez Garcia
// RCS-ID: $Id$ // RCS-ID: $Id$
@@ -14,17 +14,16 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef WX_PRECOMP
# include "wx/defs.h"
#endif
#if wxUSE_IMAGE && wxUSE_GIF #if wxUSE_IMAGE && wxUSE_GIF
#ifndef WX_PRECOMP
#include "wx/intl.h"
#include "wx/log.h"
#endif
#include "wx/imaggif.h" #include "wx/imaggif.h"
#include "wx/gifdecod.h" #include "wx/gifdecod.h"
#include "wx/wfstream.h" #include "wx/wfstream.h"
#include "wx/log.h"
#include "wx/intl.h"
IMPLEMENT_DYNAMIC_CLASS(wxGIFHandler,wxImageHandler) IMPLEMENT_DYNAMIC_CLASS(wxGIFHandler,wxImageHandler)

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: imagiff.h // Name: src/common/imagiff.h
// Purpose: wxImage handler for Amiga IFF images // Purpose: wxImage handler for Amiga IFF images
// Author: Steffen Gutmann, Thomas Meyer // Author: Steffen Gutmann, Thomas Meyer
// RCS-ID: $Id$ // RCS-ID: $Id$
@@ -19,16 +19,15 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef WX_PRECOMP
# include "wx/defs.h"
#endif
#if wxUSE_IMAGE && wxUSE_IFF #if wxUSE_IMAGE && wxUSE_IFF
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/intl.h"
#endif
#include "wx/imagiff.h" #include "wx/imagiff.h"
#include "wx/wfstream.h" #include "wx/wfstream.h"
#include "wx/log.h"
#include "wx/intl.h"
#if wxUSE_PALETTE #if wxUSE_PALETTE
#include "wx/palette.h" #include "wx/palette.h"

View File

@@ -14,15 +14,16 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/defs.h"
#if wxUSE_IMAGE && wxUSE_LIBJPEG #if wxUSE_IMAGE && wxUSE_LIBJPEG
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/app.h"
#endif
#include "wx/imagjpeg.h" #include "wx/imagjpeg.h"
#include "wx/bitmap.h" #include "wx/bitmap.h"
#include "wx/debug.h" #include "wx/debug.h"
#include "wx/log.h"
#include "wx/app.h"
// NB: Some compilers define boolean type in Windows headers // NB: Some compilers define boolean type in Windows headers
// (e.g. Watcom C++, but not Open Watcom). // (e.g. Watcom C++, but not Open Watcom).

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: imagpcx.cpp // Name: src/common/imagpcx.cpp
// Purpose: wxImage PCX handler // Purpose: wxImage PCX handler
// Author: Guillermo Rodriguez Garcia <guille@iies.es> // Author: Guillermo Rodriguez Garcia <guille@iies.es>
// Version: 1.1 // Version: 1.1
@@ -15,18 +15,17 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_IMAGE && wxUSE_PCX
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
# include "wx/defs.h" #include "wx/log.h"
#include "wx/intl.h"
#include "wx/palette.h" #include "wx/palette.h"
#endif #endif
#if wxUSE_IMAGE && wxUSE_PCX
#include "wx/imagpcx.h" #include "wx/imagpcx.h"
#include "wx/wfstream.h" #include "wx/wfstream.h"
#include "wx/module.h" #include "wx/module.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/hash.h" #include "wx/hash.h"
#include "wx/list.h" #include "wx/list.h"
@@ -500,4 +499,3 @@ bool wxPCXHandler::DoCanRead( wxInputStream& stream )
#endif // wxUSE_STREAMS #endif // wxUSE_STREAMS
#endif // wxUSE_IMAGE && wxUSE_PCX #endif // wxUSE_IMAGE && wxUSE_PCX

View File

@@ -22,17 +22,16 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef WX_PRECOMP
#include "wx/defs.h"
#endif
#if wxUSE_IMAGE && wxUSE_LIBPNG #if wxUSE_IMAGE && wxUSE_LIBPNG
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/app.h"
#endif
#include "wx/imagpng.h" #include "wx/imagpng.h"
#include "wx/bitmap.h" #include "wx/bitmap.h"
#include "wx/debug.h" #include "wx/debug.h"
#include "wx/log.h"
#include "wx/app.h"
#include "png.h" #include "png.h"
#include "wx/filefn.h" #include "wx/filefn.h"
#include "wx/wfstream.h" #include "wx/wfstream.h"

View File

@@ -14,15 +14,16 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/defs.h"
#if wxUSE_IMAGE && wxUSE_LIBTIFF #if wxUSE_IMAGE && wxUSE_LIBTIFF
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/app.h"
#endif
#include "wx/imagtiff.h" #include "wx/imagtiff.h"
#include "wx/bitmap.h" #include "wx/bitmap.h"
#include "wx/debug.h" #include "wx/debug.h"
#include "wx/log.h"
#include "wx/app.h"
extern "C" extern "C"
{ {
#include "tiff.h" #include "tiff.h"

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: imagxpm.cpp // Name: src/common/imagxpm.cpp
// Purpose: wxXPMHandler // Purpose: wxXPMHandler
// Author: Vaclav Slavik, Robert Roebling // Author: Vaclav Slavik, Robert Roebling
// RCS-ID: $Id$ // RCS-ID: $Id$
@@ -69,16 +69,15 @@ license is as follows:
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef WX_PRECOMP
# include "wx/defs.h"
#endif
#if wxUSE_XPM #if wxUSE_XPM
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/intl.h"
#endif
#include "wx/imagxpm.h" #include "wx/imagxpm.h"
#include "wx/wfstream.h" #include "wx/wfstream.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/xpmdecod.h" #include "wx/xpmdecod.h"
@@ -145,7 +144,7 @@ bool wxXPMHandler::SaveFile(wxImage * image,
sName << wxT("_xpm"); sName << wxT("_xpm");
} }
if ( !sName.IsEmpty() ) if ( !sName.empty() )
sName = wxString(wxT("/* XPM */\nstatic char *")) + sName; sName = wxString(wxT("/* XPM */\nstatic char *")) + sName;
else else
sName = wxT("/* XPM */\nstatic char *xpm_data"); sName = wxT("/* XPM */\nstatic char *xpm_data");
@@ -211,7 +210,7 @@ bool wxXPMHandler::SaveFile(wxImage * image,
} }
tmp = wxT("/* pixels */\n"); tmp = wxT("/* pixels */\n");
stream.Write( (const char*) tmp.ToAscii(), tmp.Length() ); stream.Write( (const char*) tmp.ToAscii(), tmp.length() );
unsigned char *data = image->GetData(); unsigned char *data = image->GetData();
for (j = 0; j < image->GetHeight(); j++) for (j = 0; j < image->GetHeight(); j++)

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: ipcbase.cpp // Name: src/common/ipcbase.cpp
// Purpose: IPC base classes // Purpose: IPC base classes
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -17,7 +17,6 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/defs.h"
#endif #endif
#include "wx/ipcbase.h" #include "wx/ipcbase.h"
@@ -87,4 +86,3 @@ wxChar *wxConnectionBase::GetBufferAtLeast( size_t bytes )
return NULL; return NULL;
} }
} }

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: layout.cpp // Name: src/common/layout.cpp
// Purpose: Constraint layout system classes // Purpose: Constraint layout system classes
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -24,10 +24,6 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef WX_PRECOMP
#include "wx/defs.h"
#endif
#if wxUSE_CONSTRAINTS #if wxUSE_CONSTRAINTS
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
@@ -40,11 +36,11 @@
#include "wx/layout.h" #include "wx/layout.h"
IMPLEMENT_DYNAMIC_CLASS(wxIndividualLayoutConstraint, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxIndividualLayoutConstraint, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxLayoutConstraints, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxLayoutConstraints, wxObject)
inline void wxGetAsIs(wxWindowBase* win, int* w, int* h) inline void wxGetAsIs(wxWindowBase* win, int* w, int* h)
{ {
#if 1 #if 1

View File

@@ -29,7 +29,6 @@
#include <string.h> #include <string.h>
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/defs.h"
#include "wx/list.h" #include "wx/list.h"
#endif #endif

View File

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// Name: matrix.cpp // Name: src/common/matrix.cpp
// Purpose: wxTransformMatrix class // Purpose: wxTransformMatrix class
// Author: Chris Breeze, Julian Smart // Author: Chris Breeze, Julian Smart
// Modified by: Klaas Holwerda // Modified by: Klaas Holwerda
@@ -20,7 +20,6 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/defs.h"
#include "wx/math.h" #include "wx/math.h"
#endif #endif
@@ -600,4 +599,3 @@ void wxTransformMatrix::SetRotation(double rotation)
Rotate(-GetRotation(), x, y); Rotate(-GetRotation(), x, y);
Rotate(rotation, x, y); Rotate(rotation, x, y);
} }

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: memory.cpp // Name: src/common/memory.cpp
// Purpose: Memory checking implementation // Purpose: Memory checking implementation
// Author: Arthur Seaton, Julian Smart // Author: Arthur Seaton, Julian Smart
// Modified by: // Modified by:
@@ -16,10 +16,6 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef WX_PRECOMP
#include "wx/defs.h"
#endif
#if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT #if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
@@ -1160,4 +1156,3 @@ void wxDebugContextDumpDelayCounter::DoDump()
static wxDebugContextDumpDelayCounter wxDebugContextDumpDelayCounter_One; static wxDebugContextDumpDelayCounter wxDebugContextDumpDelayCounter_One;
#endif // (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT #endif // (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: paper.cpp // Name: src/common/paper.cpp
// Purpose: Paper size classes // Purpose: Paper size classes
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -16,8 +16,6 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/defs.h"
#if wxUSE_PRINTING_ARCHITECTURE #if wxUSE_PRINTING_ARCHITECTURE
@@ -372,4 +370,3 @@ void wxPrintPaperModule::OnExit()
} }
#endif // wxUSE_PRINTING_ARCHITECTURE #endif // wxUSE_PRINTING_ARCHITECTURE

View File

@@ -16,8 +16,6 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/defs.h"
#if wxUSE_PRINTING_ARCHITECTURE #if wxUSE_PRINTING_ARCHITECTURE
#ifndef WX_PRECOMP #ifndef WX_PRECOMP

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: sckaddr.cpp // Name: src/common/sckaddr.cpp
// Purpose: Network address manager // Purpose: Network address manager
// Author: Guilhem Lavaux // Author: Guilhem Lavaux
// Modified by: // Modified by:
@@ -19,7 +19,6 @@
#if wxUSE_SOCKETS #if wxUSE_SOCKETS
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/defs.h"
#include "wx/object.h" #include "wx/object.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/intl.h" #include "wx/intl.h"

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: sckfile.cpp // Name: src/common/sckfile.cpp
// Purpose: File protocol // Purpose: File protocol
// Author: Guilhem Lavaux // Author: Guilhem Lavaux
// Modified by: // Modified by:
@@ -16,12 +16,11 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef WX_PRECOMP
#include "wx/defs.h"
#endif
#if wxUSE_STREAMS && wxUSE_PROTOCOL_FILE #if wxUSE_STREAMS && wxUSE_PROTOCOL_FILE
#ifndef WX_PRECOMP
#endif
#include <stdio.h> #include <stdio.h>
#include "wx/wfstream.h" #include "wx/wfstream.h"
#include "wx/protocol/file.h" #include "wx/protocol/file.h"
@@ -56,4 +55,3 @@ wxInputStream *wxFileProto::GetInputStream(const wxString& path)
} }
#endif // wxUSE_STREAMS && wxUSE_PROTOCOL_FILE #endif // wxUSE_STREAMS && wxUSE_PROTOCOL_FILE

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: sckstrm.h // Name: src/common/sckstrm.cpp
// Purpose: wxSocket*Stream // Purpose: wxSocket*Stream
// Author: Guilhem Lavaux // Author: Guilhem Lavaux
// Modified by: // Modified by:
@@ -16,12 +16,11 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef WX_PRECOMP
#include "wx/defs.h"
#endif
#if wxUSE_SOCKETS && wxUSE_STREAMS #if wxUSE_SOCKETS && wxUSE_STREAMS
#ifndef WX_PRECOMP
#endif
#include "wx/stream.h" #include "wx/stream.h"
#include "wx/socket.h" #include "wx/socket.h"
#include "wx/sckstrm.h" #include "wx/sckstrm.h"

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: common/settcmn.cpp // Name: src/common/settcmn.cpp
// Purpose: common (to all ports) wxWindow functions // Purpose: common (to all ports) wxWindow functions
// Author: Robert Roebling // Author: Robert Roebling
// RCS-ID: $Id$ // RCS-ID: $Id$
@@ -23,7 +23,6 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/defs.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/settings.h" #include "wx/settings.h"
#endif //WX_PRECOMP #endif //WX_PRECOMP

View File

@@ -25,17 +25,16 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef WX_PRECOMP
#include "wx/defs.h"
#endif
#if wxUSE_STREAMS #if wxUSE_STREAMS
#ifndef WX_PRECOMP
#include "wx/log.h"
#endif
#include <ctype.h> #include <ctype.h>
#include "wx/stream.h" #include "wx/stream.h"
#include "wx/datstrm.h" #include "wx/datstrm.h"
#include "wx/textfile.h" #include "wx/textfile.h"
#include "wx/log.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// constants // constants

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: string.cpp // Name: src/common/string.cpp
// Purpose: wxString class // Purpose: wxString class
// Author: Vadim Zeitlin, Ryan Norton // Author: Vadim Zeitlin, Ryan Norton
// Modified by: // Modified by:
@@ -29,7 +29,6 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/defs.h"
#include "wx/string.h" #include "wx/string.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/thread.h" #include "wx/thread.h"

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
// File: taskbarcmn.cpp // File: src/common/taskbarcmn.cpp
// Purpose: Common parts of wxTaskBarIcon class // Purpose: Common parts of wxTaskBarIcon class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -12,12 +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"
#include "wx/defs.h" #ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifdef wxHAS_TASK_BAR_ICON #ifdef wxHAS_TASK_BAR_ICON
// DLL options compatibility check: #ifndef WX_PRECOMP
#include "wx/app.h" #include "wx/app.h"
#endif
// DLL options compatibility check:
WX_CHECK_BUILD_OPTIONS("wxAdvanced") WX_CHECK_BUILD_OPTIONS("wxAdvanced")

View File

@@ -16,10 +16,6 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef WX_PRECOMP
#include "wx/defs.h"
#endif
#if wxUSE_VALIDATORS #if wxUSE_VALIDATORS
#ifndef WX_PRECOMP #ifndef WX_PRECOMP

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: validate.cpp // Name: src/common/validate.cpp
// Purpose: wxValidator // Purpose: wxValidator
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -16,10 +16,6 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef WX_PRECOMP
#include "wx/defs.h"
#endif
#if wxUSE_VALIDATORS #if wxUSE_VALIDATORS
#ifndef WX_PRECOMP #ifndef WX_PRECOMP

View File

@@ -29,7 +29,6 @@
#include "wx/log.h" #include "wx/log.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/frame.h" #include "wx/frame.h"
#include "wx/defs.h"
#include "wx/window.h" #include "wx/window.h"
#include "wx/control.h" #include "wx/control.h"
#include "wx/checkbox.h" #include "wx/checkbox.h"

View File

@@ -35,7 +35,6 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/defs.h"
#include "wx/wxchar.h" #include "wx/wxchar.h"
#include "wx/string.h" #include "wx/string.h"
#include "wx/hash.h" #include "wx/hash.h"

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: xpmdecod.cpp // Name: src/common/xpmdecod.cpp
// Purpose: wxXPMDecoder // Purpose: wxXPMDecoder
// Author: John Cristy, Vaclav Slavik // Author: John Cristy, Vaclav Slavik
// RCS-ID: $Id$ // RCS-ID: $Id$
@@ -97,18 +97,17 @@ license is as follows:
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef WX_PRECOMP
# include "wx/defs.h"
#endif
#if wxUSE_IMAGE && wxUSE_XPM #if wxUSE_IMAGE && wxUSE_XPM
#ifndef WX_PRECOMP
#include "wx/intl.h"
#include "wx/log.h"
#endif
#include "wx/stream.h" #include "wx/stream.h"
#include "wx/image.h" #include "wx/image.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/log.h"
#include "wx/hashmap.h" #include "wx/hashmap.h"
#include "wx/intl.h"
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>

View File

@@ -14,15 +14,14 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef WX_PRECOMP
#include "wx/defs.h"
#endif
#if wxUSE_ZLIB && wxUSE_STREAMS && wxUSE_ZIPSTREAM #if wxUSE_ZLIB && wxUSE_STREAMS && wxUSE_ZIPSTREAM
#include "wx/zipstrm.h" #ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/log.h"
#endif
#include "wx/zipstrm.h"
#include "wx/datstrm.h" #include "wx/datstrm.h"
#include "wx/zstream.h" #include "wx/zstream.h"
#include "wx/mstream.h" #include "wx/mstream.h"