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:
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: cocoa/app.mm
|
||||
// Name: src/cocoa/app.mm
|
||||
// Purpose: wxApp
|
||||
// Author: David Elliott
|
||||
// Modified by:
|
||||
@@ -10,8 +10,8 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/intl.h"
|
||||
@@ -233,7 +233,7 @@ wxApp::wxApp()
|
||||
m_topWindow = NULL;
|
||||
|
||||
#ifdef __WXDEBUG__
|
||||
m_isInAssert = FALSE;
|
||||
m_isInAssert = false;
|
||||
#endif // __WXDEBUG__
|
||||
|
||||
argc = 0;
|
||||
@@ -263,7 +263,7 @@ bool wxApp::OnInitGui()
|
||||
{
|
||||
wxAutoNSAutoreleasePool pool;
|
||||
if(!wxAppBase::OnInitGui())
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
// Create the app using the sharedApplication method
|
||||
m_cocoaApp = [NSApplication sharedApplication];
|
||||
@@ -276,7 +276,7 @@ bool wxApp::OnInitGui()
|
||||
wxMenuBarManager::CreateInstance();
|
||||
|
||||
wxDC::CocoaInitializeTextSystem();
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxApp::CallOnInit()
|
||||
@@ -288,9 +288,9 @@ bool wxApp::CallOnInit()
|
||||
bool wxApp::OnInit()
|
||||
{
|
||||
if(!wxAppBase::OnInit())
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxApp::Exit()
|
||||
@@ -359,9 +359,8 @@ void wxApp::WakeUpIdle()
|
||||
#ifdef __WXDEBUG__
|
||||
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);
|
||||
m_isInAssert = FALSE;
|
||||
m_isInAssert = false;
|
||||
}
|
||||
#endif // __WXDEBUG__
|
||||
|
||||
|
@@ -1,10 +1,10 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: cocoa/bmpbuttn.mm
|
||||
// Name: src/cocoa/bmpbuttn.mm
|
||||
// Purpose: wxBitmapButton
|
||||
// Author: David Elliott
|
||||
// Modified by:
|
||||
// Created: 2003/03/16
|
||||
// RCS-ID: $Id:
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 2003 David Elliott
|
||||
// Licence: wxWidgets licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@@ -14,7 +14,6 @@
|
||||
#if wxUSE_BMPBUTTON
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#include "wx/bmpbuttn.h"
|
||||
#include "wx/log.h"
|
||||
#endif
|
||||
|
@@ -1,17 +1,17 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: cocoa/button.mm
|
||||
// Name: src/cocoa/button.mm
|
||||
// Purpose: wxButton
|
||||
// Author: David Elliott
|
||||
// Modified by:
|
||||
// Created: 2002/12/30
|
||||
// RCS-ID: $Id:
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 2002 David Elliott
|
||||
// Licence: wxWidgets licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#include "wx/button.h"
|
||||
#include "wx/log.h"
|
||||
#endif
|
||||
@@ -108,4 +108,3 @@ wxSize wxButtonBase::GetDefaultSize()
|
||||
// Apple HIG says OK/Cancel buttons have default width of 68.
|
||||
return wxSize(68,(int)ceil(cocoaRect.size.height));
|
||||
}
|
||||
|
||||
|
@@ -1,17 +1,17 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: cocoa/control.mm
|
||||
// Name: src/cocoa/control.mm
|
||||
// Purpose: wxControl class
|
||||
// Author: David Elliiott
|
||||
// Modified by:
|
||||
// Created: 2003/02/15
|
||||
// RCS-ID: $Id:
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 2003 David Elliott
|
||||
// Licence: wxWidgets licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#include "wx/control.h"
|
||||
#include "wx/log.h"
|
||||
#endif
|
||||
@@ -123,4 +123,3 @@ void wxControl::CocoaSetEnabled(bool enable)
|
||||
{
|
||||
[GetNSControl() setEnabled: enable];
|
||||
}
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: font.cpp
|
||||
// Name: src/cocoa/font.cpp
|
||||
// Purpose: wxFont class
|
||||
// Author: AUTHOR
|
||||
// Modified by:
|
||||
@@ -9,8 +9,12 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/string.h"
|
||||
#endif
|
||||
|
||||
#include "wx/font.h"
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/encinfo.h"
|
||||
@@ -34,7 +38,7 @@ wxFontRefData::~wxFontRefData()
|
||||
|
||||
bool wxFont::Create(const wxNativeFontInfo&)
|
||||
{
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
void wxFont::SetEncoding(wxFontEncoding)
|
||||
@@ -53,7 +57,7 @@ int wxFont::GetPointSize() const
|
||||
|
||||
bool wxFont::GetUnderlined() const
|
||||
{
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
int wxFont::GetStyle() const
|
||||
@@ -92,7 +96,7 @@ bool wxFont::Create(int pointSize, int family, int style, int weight, bool under
|
||||
|
||||
RealizeResource();
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
wxFont::~wxFont()
|
||||
@@ -102,7 +106,7 @@ wxFont::~wxFont()
|
||||
bool wxFont::RealizeResource()
|
||||
{
|
||||
// TODO: create the font (if there is a native font object)
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
void wxFont::Unshare()
|
||||
|
@@ -9,6 +9,8 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
// ===========================================================================
|
||||
// declarations
|
||||
// ===========================================================================
|
||||
@@ -17,11 +19,12 @@
|
||||
// headers
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_TOOLTIPS
|
||||
|
||||
#include "wx/window.h"
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/window.h"
|
||||
#endif
|
||||
|
||||
#include "wx/tooltip.h"
|
||||
|
||||
#include "wx/cocoa/autorelease.h"
|
||||
@@ -135,7 +138,7 @@ void wxToolTip::SetWindow(wxWindow* window)
|
||||
m_window = window;
|
||||
|
||||
//set the tooltip - empty string means remove
|
||||
if (m_text.IsEmpty())
|
||||
if (m_text.empty())
|
||||
[m_window->GetNSView() setToolTip:nil];
|
||||
else
|
||||
[m_window->GetNSView() setToolTip:wxNSStringWithWxString(m_text)];
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: archive.cpp
|
||||
// Name: src/common/archive.cpp
|
||||
// Purpose: Streams for archive formats
|
||||
// Author: Mike Wetherell
|
||||
// RCS-ID: $Id$
|
||||
@@ -14,12 +14,11 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#endif
|
||||
|
||||
#if wxUSE_STREAMS && wxUSE_ARCHIVE_STREAMS
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#endif
|
||||
|
||||
#include "wx/archive.h"
|
||||
#include "wx/link.h"
|
||||
|
||||
|
@@ -19,14 +19,16 @@
|
||||
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
#include "wx/defs.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#endif
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/file.h" // This does include filefn.h
|
||||
#include "wx/filename.h"
|
||||
#include "wx/dir.h"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: gifdecod.cpp
|
||||
// Name: src/common/gifdecod.cpp
|
||||
// Purpose: wxGIFDecoder, GIF reader for wxImage and wxAnimation
|
||||
// Author: Guillermo Rodriguez Garcia <guille@iies.es>
|
||||
// Version: 3.04
|
||||
@@ -12,16 +12,15 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
# pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
# include "wx/defs.h"
|
||||
# include "wx/palette.h"
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_STREAMS && wxUSE_GIF
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/palette.h"
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "wx/gifdecod.h"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: helpbase.cpp
|
||||
// Name: src/common/helpbase.cpp
|
||||
// Purpose: Help system base classes
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
@@ -13,15 +13,14 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_HELP
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#endif
|
||||
|
||||
#include "wx/helpbase.h"
|
||||
|
||||
IMPLEMENT_CLASS(wxHelpControllerBase, wxObject)
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: imagbmp.cpp
|
||||
// Name: src/common/imagbmp.cpp
|
||||
// Purpose: wxImage BMP,ICO and CUR handlers
|
||||
// Author: Robert Roebling, Chris Elliott
|
||||
// RCS-ID: $Id$
|
||||
@@ -11,18 +11,19 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_IMAGE
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#endif
|
||||
|
||||
#include "wx/imagbmp.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/debug.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/filefn.h"
|
||||
#include "wx/wfstream.h"
|
||||
#include "wx/intl.h"
|
||||
|
@@ -14,15 +14,16 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_IMAGE
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#endif
|
||||
|
||||
#include "wx/image.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/debug.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/filefn.h"
|
||||
#include "wx/wfstream.h"
|
||||
#include "wx/intl.h"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: imagfill.cpp
|
||||
// Name: src/common/imagfill.cpp
|
||||
// Purpose: FloodFill for wxImage
|
||||
// Author: Julian Smart
|
||||
// RCS-ID: $Id$
|
||||
@@ -15,19 +15,17 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_IMAGE && !defined(__WXMSW__)
|
||||
// we have no use for this code in wxMSW...
|
||||
|
||||
#include "wx/image.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/brush.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/image.h"
|
||||
|
||||
// DoFloodFill
|
||||
// Fills with the colour extracted from fillBrush, starting at x,y until either
|
||||
// a color different from the start pixel is reached (wxFLOOD_SURFACE)
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: imaggif.cpp
|
||||
// Name: src/common/imaggif.cpp
|
||||
// Purpose: wxGIFHandler
|
||||
// Author: Vaclav Slavik & Guillermo Rodriguez Garcia
|
||||
// RCS-ID: $Id$
|
||||
@@ -11,20 +11,19 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
# pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
# include "wx/defs.h"
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_IMAGE && wxUSE_GIF
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#endif
|
||||
|
||||
#include "wx/imaggif.h"
|
||||
#include "wx/gifdecod.h"
|
||||
#include "wx/wfstream.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/intl.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxGIFHandler,wxImageHandler)
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: imagiff.h
|
||||
// Name: src/common/imagiff.h
|
||||
// Purpose: wxImage handler for Amiga IFF images
|
||||
// Author: Steffen Gutmann, Thomas Meyer
|
||||
// RCS-ID: $Id$
|
||||
@@ -16,19 +16,18 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
# pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
# include "wx/defs.h"
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_IMAGE && wxUSE_IFF
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/intl.h"
|
||||
#endif
|
||||
|
||||
#include "wx/imagiff.h"
|
||||
#include "wx/wfstream.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/intl.h"
|
||||
|
||||
#if wxUSE_PALETTE
|
||||
#include "wx/palette.h"
|
||||
|
@@ -14,15 +14,16 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_IMAGE && wxUSE_LIBJPEG
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#endif
|
||||
|
||||
#include "wx/imagjpeg.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/debug.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
|
||||
// NB: Some compilers define boolean type in Windows headers
|
||||
// (e.g. Watcom C++, but not Open Watcom).
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: imagpcx.cpp
|
||||
// Name: src/common/imagpcx.cpp
|
||||
// Purpose: wxImage PCX handler
|
||||
// Author: Guillermo Rodriguez Garcia <guille@iies.es>
|
||||
// Version: 1.1
|
||||
@@ -12,21 +12,20 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
# include "wx/defs.h"
|
||||
# include "wx/palette.h"
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_IMAGE && wxUSE_PCX
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/palette.h"
|
||||
#endif
|
||||
|
||||
#include "wx/imagpcx.h"
|
||||
#include "wx/wfstream.h"
|
||||
#include "wx/module.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/intl.h"
|
||||
|
||||
#include "wx/hash.h"
|
||||
#include "wx/list.h"
|
||||
@@ -500,4 +499,3 @@ bool wxPCXHandler::DoCanRead( wxInputStream& stream )
|
||||
#endif // wxUSE_STREAMS
|
||||
|
||||
#endif // wxUSE_IMAGE && wxUSE_PCX
|
||||
|
||||
|
@@ -22,17 +22,16 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#endif
|
||||
|
||||
#if wxUSE_IMAGE && wxUSE_LIBPNG
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#endif
|
||||
|
||||
#include "wx/imagpng.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/debug.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "png.h"
|
||||
#include "wx/filefn.h"
|
||||
#include "wx/wfstream.h"
|
||||
|
@@ -11,18 +11,19 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_IMAGE && wxUSE_LIBTIFF
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#endif
|
||||
|
||||
#include "wx/imagtiff.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/debug.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
extern "C"
|
||||
{
|
||||
#include "tiff.h"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: imagxpm.cpp
|
||||
// Name: src/common/imagxpm.cpp
|
||||
// Purpose: wxXPMHandler
|
||||
// Author: Vaclav Slavik, Robert Roebling
|
||||
// RCS-ID: $Id$
|
||||
@@ -66,19 +66,18 @@ license is as follows:
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
# pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
# include "wx/defs.h"
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_XPM
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/intl.h"
|
||||
#endif
|
||||
|
||||
#include "wx/imagxpm.h"
|
||||
#include "wx/wfstream.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/xpmdecod.h"
|
||||
|
||||
@@ -145,7 +144,7 @@ bool wxXPMHandler::SaveFile(wxImage * image,
|
||||
sName << wxT("_xpm");
|
||||
}
|
||||
|
||||
if ( !sName.IsEmpty() )
|
||||
if ( !sName.empty() )
|
||||
sName = wxString(wxT("/* XPM */\nstatic char *")) + sName;
|
||||
else
|
||||
sName = wxT("/* XPM */\nstatic char *xpm_data");
|
||||
@@ -211,7 +210,7 @@ bool wxXPMHandler::SaveFile(wxImage * image,
|
||||
}
|
||||
|
||||
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();
|
||||
for (j = 0; j < image->GetHeight(); j++)
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: ipcbase.cpp
|
||||
// Name: src/common/ipcbase.cpp
|
||||
// Purpose: IPC base classes
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
@@ -13,11 +13,10 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#endif
|
||||
|
||||
#include "wx/ipcbase.h"
|
||||
@@ -87,4 +86,3 @@ wxChar *wxConnectionBase::GetBufferAtLeast( size_t bytes )
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: layout.cpp
|
||||
// Name: src/common/layout.cpp
|
||||
// Purpose: Constraint layout system classes
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
@@ -24,10 +24,6 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#endif
|
||||
|
||||
#if wxUSE_CONSTRAINTS
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
@@ -40,9 +36,9 @@
|
||||
|
||||
#include "wx/layout.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxIndividualLayoutConstraint, wxObject)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxLayoutConstraints, wxObject)
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxIndividualLayoutConstraint, wxObject)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxLayoutConstraints, wxObject)
|
||||
|
||||
|
||||
inline void wxGetAsIs(wxWindowBase* win, int* w, int* h)
|
||||
|
@@ -29,7 +29,6 @@
|
||||
#include <string.h>
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#include "wx/list.h"
|
||||
#endif
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: matrix.cpp
|
||||
// Name: src/common/matrix.cpp
|
||||
// Purpose: wxTransformMatrix class
|
||||
// Author: Chris Breeze, Julian Smart
|
||||
// Modified by: Klaas Holwerda
|
||||
@@ -20,8 +20,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#include "wx/math.h"
|
||||
#include "wx/math.h"
|
||||
#endif
|
||||
|
||||
#include "wx/matrix.h"
|
||||
@@ -600,4 +599,3 @@ void wxTransformMatrix::SetRotation(double rotation)
|
||||
Rotate(-GetRotation(), x, y);
|
||||
Rotate(rotation, x, y);
|
||||
}
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: memory.cpp
|
||||
// Name: src/common/memory.cpp
|
||||
// Purpose: Memory checking implementation
|
||||
// Author: Arthur Seaton, Julian Smart
|
||||
// Modified by:
|
||||
@@ -13,23 +13,19 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/hash.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/hash.h"
|
||||
#endif
|
||||
|
||||
#if wxUSE_THREADS
|
||||
#include "wx/thread.h"
|
||||
#include "wx/thread.h"
|
||||
#endif
|
||||
|
||||
#include "wx/log.h"
|
||||
@@ -1160,4 +1156,3 @@ void wxDebugContextDumpDelayCounter::DoDump()
|
||||
static wxDebugContextDumpDelayCounter wxDebugContextDumpDelayCounter_One;
|
||||
|
||||
#endif // (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: paper.cpp
|
||||
// Name: src/common/paper.cpp
|
||||
// Purpose: Paper size classes
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
@@ -13,18 +13,16 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_PRINTING_ARCHITECTURE
|
||||
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/intl.h"
|
||||
#endif
|
||||
|
||||
#include "wx/paper.h"
|
||||
@@ -372,4 +370,3 @@ void wxPrintPaperModule::OnExit()
|
||||
}
|
||||
|
||||
#endif // wxUSE_PRINTING_ARCHITECTURE
|
||||
|
||||
|
@@ -13,27 +13,25 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_PRINTING_ARCHITECTURE
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/msgdlg.h"
|
||||
#include "wx/layout.h"
|
||||
#include "wx/choice.h"
|
||||
#include "wx/button.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/stattext.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/textdlg.h"
|
||||
#include "wx/sizer.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/msgdlg.h"
|
||||
#include "wx/layout.h"
|
||||
#include "wx/choice.h"
|
||||
#include "wx/button.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/stattext.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/textdlg.h"
|
||||
#include "wx/sizer.h"
|
||||
#endif // !WX_PRECOMP
|
||||
|
||||
#include "wx/prntbase.h"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: sckaddr.cpp
|
||||
// Name: src/common/sckaddr.cpp
|
||||
// Purpose: Network address manager
|
||||
// Author: Guilhem Lavaux
|
||||
// Modified by:
|
||||
@@ -19,7 +19,6 @@
|
||||
#if wxUSE_SOCKETS
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#include "wx/object.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/intl.h"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: sckfile.cpp
|
||||
// Name: src/common/sckfile.cpp
|
||||
// Purpose: File protocol
|
||||
// Author: Guilhem Lavaux
|
||||
// Modified by:
|
||||
@@ -16,12 +16,11 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#endif
|
||||
|
||||
#if wxUSE_STREAMS && wxUSE_PROTOCOL_FILE
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include "wx/wfstream.h"
|
||||
#include "wx/protocol/file.h"
|
||||
@@ -56,4 +55,3 @@ wxInputStream *wxFileProto::GetInputStream(const wxString& path)
|
||||
}
|
||||
|
||||
#endif // wxUSE_STREAMS && wxUSE_PROTOCOL_FILE
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: sckstrm.h
|
||||
// Name: src/common/sckstrm.cpp
|
||||
// Purpose: wxSocket*Stream
|
||||
// Author: Guilhem Lavaux
|
||||
// Modified by:
|
||||
@@ -16,12 +16,11 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#endif
|
||||
|
||||
#if wxUSE_SOCKETS && wxUSE_STREAMS
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#endif
|
||||
|
||||
#include "wx/stream.h"
|
||||
#include "wx/socket.h"
|
||||
#include "wx/sckstrm.h"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: common/settcmn.cpp
|
||||
// Name: src/common/settcmn.cpp
|
||||
// Purpose: common (to all ports) wxWindow functions
|
||||
// Author: Robert Roebling
|
||||
// RCS-ID: $Id$
|
||||
@@ -23,7 +23,6 @@
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/settings.h"
|
||||
#endif //WX_PRECOMP
|
||||
|
@@ -25,17 +25,16 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#endif
|
||||
|
||||
#if wxUSE_STREAMS
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#endif
|
||||
|
||||
#include <ctype.h>
|
||||
#include "wx/stream.h"
|
||||
#include "wx/datstrm.h"
|
||||
#include "wx/textfile.h"
|
||||
#include "wx/log.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// constants
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: string.cpp
|
||||
// Name: src/common/string.cpp
|
||||
// Purpose: wxString class
|
||||
// Author: Vadim Zeitlin, Ryan Norton
|
||||
// Modified by:
|
||||
@@ -29,7 +29,6 @@
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/thread.h"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// File: taskbarcmn.cpp
|
||||
// File: src/common/taskbarcmn.cpp
|
||||
// Purpose: Common parts of wxTaskBarIcon class
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
@@ -12,12 +12,17 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/defs.h"
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifdef wxHAS_TASK_BAR_ICON
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#endif
|
||||
|
||||
// DLL options compatibility check:
|
||||
#include "wx/app.h"
|
||||
WX_CHECK_BUILD_OPTIONS("wxAdvanced")
|
||||
|
||||
|
||||
|
@@ -16,10 +16,6 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#endif
|
||||
|
||||
#if wxUSE_VALIDATORS
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: validate.cpp
|
||||
// Name: src/common/validate.cpp
|
||||
// Purpose: wxValidator
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
@@ -16,10 +16,6 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#endif
|
||||
|
||||
#if wxUSE_VALIDATORS
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
@@ -30,7 +26,7 @@
|
||||
|
||||
const wxValidator wxDefaultValidator;
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxValidator, wxEvtHandler)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxValidator, wxEvtHandler)
|
||||
|
||||
// VZ: personally, I think true would be more appropriate - these bells are
|
||||
// _annoying_
|
||||
|
@@ -29,7 +29,6 @@
|
||||
#include "wx/log.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/frame.h"
|
||||
#include "wx/defs.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/control.h"
|
||||
#include "wx/checkbox.h"
|
||||
|
@@ -28,14 +28,13 @@
|
||||
#include <string.h>
|
||||
|
||||
#ifndef __WXWINCE__
|
||||
#include <time.h>
|
||||
#include <locale.h>
|
||||
#include <time.h>
|
||||
#include <locale.h>
|
||||
#else
|
||||
#include "wx/msw/wince/time.h"
|
||||
#include "wx/msw/wince/time.h"
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxchar.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/hash.h"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: xpmdecod.cpp
|
||||
// Name: src/common/xpmdecod.cpp
|
||||
// Purpose: wxXPMDecoder
|
||||
// Author: John Cristy, Vaclav Slavik
|
||||
// RCS-ID: $Id$
|
||||
@@ -94,21 +94,20 @@ license is as follows:
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
# pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
# include "wx/defs.h"
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_IMAGE && wxUSE_XPM
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#endif
|
||||
|
||||
#include "wx/stream.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/hashmap.h"
|
||||
#include "wx/intl.h"
|
||||
#include <string.h>
|
||||
|
||||
#include <ctype.h>
|
||||
|
@@ -14,15 +14,14 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#endif
|
||||
|
||||
#if wxUSE_ZLIB && wxUSE_STREAMS && wxUSE_ZIPSTREAM
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#endif
|
||||
|
||||
#include "wx/zipstrm.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/datstrm.h"
|
||||
#include "wx/zstream.h"
|
||||
#include "wx/mstream.h"
|
||||
|
Reference in New Issue
Block a user