git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38787
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
40 files changed:
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/cocoa/app.mm
// Purpose: wxApp
// Author: David Elliott
// Modified by:
// Purpose: wxApp
// Author: David Elliott
// Modified by:
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
#include "wx/app.h"
#include "wx/dc.h"
#include "wx/intl.h"
#include "wx/app.h"
#include "wx/dc.h"
#include "wx/intl.h"
If nil is returned then idle event processing occurs until the user
does not request anymore idle events or until a real event comes through.
If nil is returned then idle event processing occurs until the user
does not request anymore idle events or until a real event comes through.
- RN: Even though Apple documentation states that nil can be passed in place
+ RN: Even though Apple documentation states that nil can be passed in place
of [NSDate distantPast] in the untilDate parameter, this causes Jaguar (10.2)
of [NSDate distantPast] in the untilDate parameter, this causes Jaguar (10.2)
- to get stuck in some kind of loop deep within nextEventMatchingMask:, thus we
+ to get stuck in some kind of loop deep within nextEventMatchingMask:, thus we
need to explicitly pass [NSDate distantPast] instead.
*/
need to explicitly pass [NSDate distantPast] instead.
*/
- (NSEvent *)nextEventMatchingMask:(unsigned int)mask untilDate:(NSDate *)expiration inMode:(NSString *)mode dequeue:(BOOL)flag
{
// Get the same events except don't block
- (NSEvent *)nextEventMatchingMask:(unsigned int)mask untilDate:(NSDate *)expiration inMode:(NSString *)mode dequeue:(BOOL)flag
{
// Get the same events except don't block
m_topWindow = NULL;
#ifdef __WXDEBUG__
m_topWindow = NULL;
#ifdef __WXDEBUG__
#endif // __WXDEBUG__
argc = 0;
#endif // __WXDEBUG__
argc = 0;
{
wxAutoNSAutoreleasePool pool;
if(!wxAppBase::OnInitGui())
{
wxAutoNSAutoreleasePool pool;
if(!wxAppBase::OnInitGui())
// Create the app using the sharedApplication method
m_cocoaApp = [NSApplication sharedApplication];
// Create the app using the sharedApplication method
m_cocoaApp = [NSApplication sharedApplication];
wxMenuBarManager::CreateInstance();
wxDC::CocoaInitializeTextSystem();
wxMenuBarManager::CreateInstance();
wxDC::CocoaInitializeTextSystem();
}
bool wxApp::CallOnInit()
}
bool wxApp::CallOnInit()
bool wxApp::OnInit()
{
if(!wxAppBase::OnInit())
bool wxApp::OnInit()
{
if(!wxAppBase::OnInit())
#ifdef __WXDEBUG__
void wxApp::OnAssert(const wxChar *file, int line, const wxChar* cond, const wxChar *msg)
{
#ifdef __WXDEBUG__
void wxApp::OnAssert(const wxChar *file, int line, const wxChar* cond, const wxChar *msg)
{
wxAppBase::OnAssert(file, line, cond, msg);
wxAppBase::OnAssert(file, line, cond, msg);
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: cocoa/bmpbuttn.mm
+// Name: src/cocoa/bmpbuttn.mm
// Purpose: wxBitmapButton
// Author: David Elliott
// Modified by:
// Created: 2003/03/16
// Purpose: wxBitmapButton
// Author: David Elliott
// Modified by:
// Created: 2003/03/16
// Copyright: (c) 2003 David Elliott
// Copyright: (c) 2003 David Elliott
-// Licence: wxWidgets licence
+// Licence: wxWidgets licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
#if wxUSE_BMPBUTTON
#ifndef WX_PRECOMP
#if wxUSE_BMPBUTTON
#ifndef WX_PRECOMP
#include "wx/bmpbuttn.h"
#include "wx/log.h"
#endif
#include "wx/bmpbuttn.h"
#include "wx/log.h"
#endif
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: cocoa/button.mm
+// Name: src/cocoa/button.mm
// Purpose: wxButton
// Author: David Elliott
// Modified by:
// Created: 2002/12/30
// Purpose: wxButton
// Author: David Elliott
// Modified by:
// Created: 2002/12/30
// Copyright: (c) 2002 David Elliott
// Copyright: (c) 2002 David Elliott
-// Licence: wxWidgets licence
+// Licence: wxWidgets licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
#include "wx/button.h"
#include "wx/log.h"
#endif
#include "wx/button.h"
#include "wx/log.h"
#endif
// Apple HIG says OK/Cancel buttons have default width of 68.
return wxSize(68,(int)ceil(cocoaRect.size.height));
}
// Apple HIG says OK/Cancel buttons have default width of 68.
return wxSize(68,(int)ceil(cocoaRect.size.height));
}
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: cocoa/control.mm
+// Name: src/cocoa/control.mm
// Purpose: wxControl class
// Author: David Elliiott
// Modified by:
// Created: 2003/02/15
// Purpose: wxControl class
// Author: David Elliiott
// Modified by:
// Created: 2003/02/15
// Copyright: (c) 2003 David Elliott
// Copyright: (c) 2003 David Elliott
-// Licence: wxWidgets licence
+// Licence: wxWidgets licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
#include "wx/control.h"
#include "wx/log.h"
#endif
#include "wx/control.h"
#include "wx/log.h"
#endif
{
[GetNSControl() setEnabled: enable];
}
{
[GetNSControl() setEnabled: enable];
}
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/cocoa/font.cpp
// Purpose: wxFont class
// Author: AUTHOR
// Modified by:
// Created: ??/??/98
// RCS-ID: $Id$
// Copyright: (c) AUTHOR
// Purpose: wxFont class
// Author: AUTHOR
// Modified by:
// Created: ??/??/98
// RCS-ID: $Id$
// Copyright: (c) AUTHOR
-// Licence: wxWindows licence
+// 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"
#include "wx/font.h"
#include "wx/gdicmn.h"
#include "wx/encinfo.h"
void wxFontRefData::Init(int size, int family, int style, int weight, bool underlined, const wxString& faceName, wxFontEncoding encoding)
{
void wxFontRefData::Init(int size, int family, int style, int weight, bool underlined, const wxString& faceName, wxFontEncoding encoding)
{
- m_family = family;
- m_style = style;
- m_weight = weight;
- m_underlined = underlined;
- m_faceName = faceName;
- m_encoding = encoding;
+ m_family = family;
+ m_style = style;
+ m_weight = weight;
+ m_underlined = underlined;
+ m_faceName = faceName;
+ m_encoding = encoding;
}
wxFontRefData::~wxFontRefData()
}
wxFontRefData::~wxFontRefData()
bool wxFont::Create(const wxNativeFontInfo&)
{
bool wxFont::Create(const wxNativeFontInfo&)
{
}
void wxFont::SetEncoding(wxFontEncoding)
}
void wxFont::SetEncoding(wxFontEncoding)
bool wxFont::GetUnderlined() const
{
bool wxFont::GetUnderlined() const
{
}
int wxFont::GetStyle() const
}
int wxFont::GetStyle() const
bool wxFont::RealizeResource()
{
// TODO: create the font (if there is a native font object)
bool wxFont::RealizeResource()
{
// TODO: create the font (if there is a native font object)
}
void wxFont::Unshare()
{
}
void wxFont::Unshare()
{
- // Don't change shared data
- if (!m_refData)
+ // Don't change shared data
+ if (!m_refData)
- m_refData = new wxFontRefData();
- }
+ m_refData = new wxFontRefData();
+ }
- wxFontRefData* ref = new wxFontRefData(*(wxFontRefData*)m_refData);
- UnRef();
- m_refData = ref;
- }
+ wxFontRefData* ref = new wxFontRefData(*(wxFontRefData*)m_refData);
+ UnRef();
+ m_refData = ref;
+ }
}
void wxFont::SetPointSize(int pointSize)
}
void wxFont::SetPointSize(int pointSize)
{
wxString str;
if (M_FONTDATA)
{
wxString str;
if (M_FONTDATA)
- str = M_FONTDATA->m_faceName ;
+ str = M_FONTDATA->m_faceName ;
// Name: src/cocoa/tooltip.mm
// Purpose: Cocoa tooltips
// Author: Ryan Norton
// Name: src/cocoa/tooltip.mm
// Purpose: Cocoa tooltips
// Author: Ryan Norton
// Created: 2004-10-03
// RCS-ID: $Id$
// Copyright: (c) Ryan Norton
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// Created: 2004-10-03
// RCS-ID: $Id$
// Copyright: (c) Ryan Norton
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
+#include "wx/wxprec.h"
+
// ===========================================================================
// declarations
// ===========================================================================
// ===========================================================================
// declarations
// ===========================================================================
// headers
// ---------------------------------------------------------------------------
// headers
// ---------------------------------------------------------------------------
+#ifndef WX_PRECOMP
+ #include "wx/window.h"
+#endif
+
#include "wx/tooltip.h"
#include "wx/cocoa/autorelease.h"
#include "wx/tooltip.h"
#include "wx/cocoa/autorelease.h"
#import <AppKit/NSView.h>
//
#import <AppKit/NSView.h>
//
-// Private object in AppKit - exists in 10.2 at least -
+// Private object in AppKit - exists in 10.2 at least -
// most likely exists earlier too
//
@interface NSToolTipManager : NSObject
// most likely exists earlier too
//
@interface NSToolTipManager : NSObject
IMPLEMENT_ABSTRACT_CLASS(wxToolTip, wxObject)
IMPLEMENT_ABSTRACT_CLASS(wxToolTip, wxObject)
-wxToolTip::wxToolTip(const wxString &tip) :
- m_text(tip), m_window(0)
+wxToolTip::wxToolTip(const wxString &tip) :
+ m_text(tip), m_window(0)
{
}
void wxToolTip::SetTip(const wxString& tip)
{
}
void wxToolTip::SetTip(const wxString& tip)
-const wxString& wxToolTip::GetTip() const
-{
- return m_text;
+const wxString& wxToolTip::GetTip() const
+{
+ return m_text;
}
// the window we're associated with
}
// the window we're associated with
-wxWindow *wxToolTip::GetWindow() const
-{
- return m_window;
+wxWindow *wxToolTip::GetWindow() const
+{
+ return m_window;
}
// enable or disable the tooltips globally
}
// enable or disable the tooltips globally
-//static
- void wxToolTip::Enable(bool flag)
+//static
+ void wxToolTip::Enable(bool flag)
{
//TODO
wxFAIL_MSG(wxT("Not implemented"));
{
//TODO
wxFAIL_MSG(wxT("Not implemented"));
// set the delay after which the tooltip appears
//static
// set the delay after which the tooltip appears
//static
- void wxToolTip::SetDelay(long milliseconds)
+ void wxToolTip::SetDelay(long milliseconds)
{
[[NSToolTipManager sharedToolTipManager] setInitialToolTipDelay: ((double)milliseconds) / 1000.0];
}
{
[[NSToolTipManager sharedToolTipManager] setInitialToolTipDelay: ((double)milliseconds) / 1000.0];
}
-void wxToolTip::SetWindow(wxWindow* window)
+void wxToolTip::SetWindow(wxWindow* window)
{
wxAutoNSAutoreleasePool pool;
m_window = window;
{
wxAutoNSAutoreleasePool pool;
m_window = window;
//set the tooltip - empty string means remove
//set the tooltip - empty string means remove
- if (m_text.IsEmpty())
- [m_window->GetNSView() setToolTip:nil];
+ if (m_text.empty())
+ [m_window->GetNSView() setToolTip:nil];
- [m_window->GetNSView() setToolTip:wxNSStringWithWxString(m_text)];
+ [m_window->GetNSView() setToolTip:wxNSStringWithWxString(m_text)];
}
#endif //wxUSE_TOOLTIPS
}
#endif //wxUSE_TOOLTIPS
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/archive.cpp
// Purpose: Streams for archive formats
// Author: Mike Wetherell
// RCS-ID: $Id$
// Purpose: Streams for archive formats
// Author: Mike Wetherell
// RCS-ID: $Id$
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
+#if wxUSE_STREAMS && wxUSE_ARCHIVE_STREAMS
+
-#if wxUSE_STREAMS && wxUSE_ARCHIVE_STREAMS
-
#include "wx/archive.h"
#include "wx/link.h"
#include "wx/archive.h"
#include "wx/link.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifdef __BORLANDC__
#pragma hdrstop
#endif
+#ifndef WX_PRECOMP
+ #include "wx/intl.h"
+#endif
+
#include "wx/file.h" // This does include filefn.h
#include "wx/filename.h"
#include "wx/dir.h"
#include "wx/file.h" // This does include filefn.h
#include "wx/filename.h"
#include "wx/dir.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/gifdecod.cpp
// Purpose: wxGIFDecoder, GIF reader for wxImage and wxAnimation
// Author: Guillermo Rodriguez Garcia <guille@iies.es>
// Version: 3.04
// Purpose: wxGIFDecoder, GIF reader for wxImage and wxAnimation
// Author: Guillermo Rodriguez Garcia <guille@iies.es>
// Version: 3.04
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
+#if wxUSE_STREAMS && wxUSE_GIF
+
-# include "wx/defs.h"
-# include "wx/palette.h"
+ #include "wx/palette.h"
-#if wxUSE_STREAMS && wxUSE_GIF
-
#include <stdlib.h>
#include <string.h>
#include "wx/gifdecod.h"
#include <stdlib.h>
#include <string.h>
#include "wx/gifdecod.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/helpbase.cpp
// Purpose: Help system base classes
// Author: Julian Smart
// Modified by:
// Purpose: Help system base classes
// Author: Julian Smart
// Modified by:
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/helpbase.h"
IMPLEMENT_CLASS(wxHelpControllerBase, wxObject)
#include "wx/helpbase.h"
IMPLEMENT_CLASS(wxHelpControllerBase, wxObject)
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/imagbmp.cpp
// Purpose: wxImage BMP,ICO and CUR handlers
// Author: Robert Roebling, Chris Elliott
// RCS-ID: $Id$
// Purpose: wxImage BMP,ICO and CUR handlers
// Author: Robert Roebling, Chris Elliott
// RCS-ID: $Id$
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
+#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/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"
#include "wx/filefn.h"
#include "wx/wfstream.h"
#include "wx/intl.h"
+#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/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"
#include "wx/filefn.h"
#include "wx/wfstream.h"
#include "wx/intl.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/imagfill.cpp
// Purpose: FloodFill for wxImage
// Author: Julian Smart
// RCS-ID: $Id$
// Purpose: FloodFill for wxImage
// Author: Julian Smart
// RCS-ID: $Id$
#if wxUSE_IMAGE && !defined(__WXMSW__)
// we have no use for this code in wxMSW...
#if wxUSE_IMAGE && !defined(__WXMSW__)
// we have no use for this code in wxMSW...
#ifndef WX_PRECOMP
#include "wx/brush.h"
#include "wx/dc.h"
#include "wx/dcmemory.h"
#endif
#ifndef WX_PRECOMP
#include "wx/brush.h"
#include "wx/dc.h"
#include "wx/dcmemory.h"
#endif
// 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)
// 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)
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/imaggif.cpp
// Purpose: wxGIFHandler
// Author: Vaclav Slavik & Guillermo Rodriguez Garcia
// RCS-ID: $Id$
// Purpose: wxGIFHandler
// Author: Vaclav Slavik & Guillermo Rodriguez Garcia
// RCS-ID: $Id$
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
+#if wxUSE_IMAGE && wxUSE_GIF
+
+ #include "wx/intl.h"
+ #include "wx/log.h"
-#if wxUSE_IMAGE && wxUSE_GIF
-
#include "wx/imaggif.h"
#include "wx/gifdecod.h"
#include "wx/wfstream.h"
#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)
IMPLEMENT_DYNAMIC_CLASS(wxGIFHandler,wxImageHandler)
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/imagiff.h
// Purpose: wxImage handler for Amiga IFF images
// Author: Steffen Gutmann, Thomas Meyer
// RCS-ID: $Id$
// Purpose: wxImage handler for Amiga IFF images
// Author: Steffen Gutmann, Thomas Meyer
// RCS-ID: $Id$
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
+#if wxUSE_IMAGE && wxUSE_IFF
+
+ #include "wx/log.h"
+ #include "wx/intl.h"
-#if wxUSE_IMAGE && wxUSE_IFF
-
#include "wx/imagiff.h"
#include "wx/wfstream.h"
#include "wx/imagiff.h"
#include "wx/wfstream.h"
-#include "wx/log.h"
-#include "wx/intl.h"
#if wxUSE_PALETTE
#include "wx/palette.h"
#if wxUSE_PALETTE
#include "wx/palette.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/bitmap.h"
#include "wx/debug.h"
#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).
// NB: Some compilers define boolean type in Windows headers
// (e.g. Watcom C++, but not Open Watcom).
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/imagpcx.cpp
// Purpose: wxImage PCX handler
// Author: Guillermo Rodriguez Garcia <guille@iies.es>
// Version: 1.1
// Purpose: wxImage PCX handler
// Author: Guillermo Rodriguez Garcia <guille@iies.es>
// Version: 1.1
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
+#if wxUSE_IMAGE && wxUSE_PCX
+
-# include "wx/defs.h"
-# include "wx/palette.h"
+ #include "wx/log.h"
+ #include "wx/intl.h"
+ #include "wx/palette.h"
-#if wxUSE_IMAGE && wxUSE_PCX
-
#include "wx/imagpcx.h"
#include "wx/wfstream.h"
#include "wx/module.h"
#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"
#include "wx/hash.h"
#include "wx/list.h"
#endif // wxUSE_STREAMS
#endif // wxUSE_IMAGE && wxUSE_PCX
#endif // wxUSE_STREAMS
#endif // wxUSE_IMAGE && wxUSE_PCX
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
+#if wxUSE_IMAGE && wxUSE_LIBPNG
+
+ #include "wx/log.h"
+ #include "wx/app.h"
-#if wxUSE_IMAGE && wxUSE_LIBPNG
-
#include "wx/imagpng.h"
#include "wx/bitmap.h"
#include "wx/debug.h"
#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"
#include "png.h"
#include "wx/filefn.h"
#include "wx/wfstream.h"
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#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/bitmap.h"
#include "wx/debug.h"
#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"
extern "C"
{
#include "tiff.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/imagxpm.cpp
// Purpose: wxXPMHandler
// Author: Vaclav Slavik, Robert Roebling
// RCS-ID: $Id$
// Purpose: wxXPMHandler
// Author: Vaclav Slavik, Robert Roebling
// RCS-ID: $Id$
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
+ #include "wx/log.h"
+ #include "wx/intl.h"
#include "wx/imagxpm.h"
#include "wx/wfstream.h"
#include "wx/imagxpm.h"
#include "wx/wfstream.h"
-#include "wx/log.h"
-#include "wx/intl.h"
#include "wx/utils.h"
#include "wx/xpmdecod.h"
#include "wx/utils.h"
#include "wx/xpmdecod.h"
- if ( !sName.IsEmpty() )
sName = wxString(wxT("/* XPM */\nstatic char *")) + sName;
else
sName = wxT("/* XPM */\nstatic char *xpm_data");
sName = wxString(wxT("/* XPM */\nstatic char *")) + sName;
else
sName = wxT("/* XPM */\nstatic char *xpm_data");
}
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();
for (j = 0; j < image->GetHeight(); j++)
unsigned char *data = image->GetData();
for (j = 0; j < image->GetHeight(); j++)
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/ipcbase.cpp
// Purpose: IPC base classes
// Author: Julian Smart
// Modified by:
// Purpose: IPC base classes
// Author: Julian Smart
// Modified by:
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#endif
#ifndef WX_PRECOMP
#endif
#ifndef WX_PRECOMP
#endif
#include "wx/ipcbase.h"
#endif
#include "wx/ipcbase.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/layout.cpp
// Purpose: Constraint layout system classes
// Author: Julian Smart
// Modified by:
// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Purpose: Constraint layout system classes
// Author: Julian Smart
// Modified by:
// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// =============================================================================
/////////////////////////////////////////////////////////////////////////////
// =============================================================================
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#ifndef WX_PRECOMP
- #include "wx/defs.h"
#endif
#if wxUSE_CONSTRAINTS
#ifndef WX_PRECOMP
#endif
#if wxUSE_CONSTRAINTS
#ifndef WX_PRECOMP
- #include "wx/window.h"
- #include "wx/utils.h"
- #include "wx/dialog.h"
- #include "wx/msgdlg.h"
- #include "wx/intl.h"
+ #include "wx/window.h"
+ #include "wx/utils.h"
+ #include "wx/dialog.h"
+ #include "wx/msgdlg.h"
+ #include "wx/intl.h"
#endif
#include "wx/layout.h"
#endif
#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)
inline void wxGetAsIs(wxWindowBase* win, int* w, int* h)
// The old way. Works for me.
win->GetSize(w, h);
#endif
// The old way. Works for me.
win->GetSize(w, h);
#endif
#if 0
// Vadim's change. Breaks wxPython's LayoutAnchors
win->GetBestSize(w, h);
#if 0
// Vadim's change. Breaks wxPython's LayoutAnchors
win->GetBestSize(w, h);
#include <string.h>
#ifndef WX_PRECOMP
#include <string.h>
#ifndef WX_PRECOMP
#include "wx/list.h"
#endif
#include "wx/list.h"
#endif
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
+// Name: src/common/matrix.cpp
// Purpose: wxTransformMatrix class
// Author: Chris Breeze, Julian Smart
// Modified by: Klaas Holwerda
// Purpose: wxTransformMatrix class
// Author: Chris Breeze, Julian Smart
// Modified by: Klaas Holwerda
#endif
#ifndef WX_PRECOMP
#endif
#ifndef WX_PRECOMP
-#include "wx/defs.h"
-#include "wx/math.h"
#endif
#include "wx/matrix.h"
#endif
#include "wx/matrix.h"
Rotate(-GetRotation(), x, y);
Rotate(rotation, x, y);
}
Rotate(-GetRotation(), x, y);
Rotate(rotation, x, y);
}
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/memory.cpp
// Purpose: Memory checking implementation
// Author: Arthur Seaton, Julian Smart
// Modified by:
// Purpose: Memory checking implementation
// Author: Arthur Seaton, Julian Smart
// Modified by:
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-
-#ifndef WX_PRECOMP
-#include "wx/defs.h"
#endif
#if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
#ifndef WX_PRECOMP
#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
#include "wx/log.h"
#endif
#include "wx/log.h"
static wxDebugContextDumpDelayCounter wxDebugContextDumpDelayCounter_One;
#endif // (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
static wxDebugContextDumpDelayCounter wxDebugContextDumpDelayCounter_One;
#endif // (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/paper.cpp
// Purpose: Paper size classes
// Author: Julian Smart
// Modified by:
// Purpose: Paper size classes
// Author: Julian Smart
// Modified by:
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#if wxUSE_PRINTING_ARCHITECTURE
#ifndef WX_PRECOMP
#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"
#endif
#include "wx/paper.h"
WXADDPAPER(wxPAPER_A2, DMPAPER_A2, wxTRANSLATE("A2 420 x 594 mm"), 4200, 5940);
WXADDPAPER(wxPAPER_A3_TRANSVERSE, DMPAPER_A3_TRANSVERSE, wxTRANSLATE("A3 Transverse 297 x 420 mm"), 2970, 4200);
WXADDPAPER(wxPAPER_A3_EXTRA_TRANSVERSE,DMPAPER_A3_EXTRA_TRANSVERSE,wxTRANSLATE("A3 Extra Transverse 322 x 445 mm"), 3220, 4450);
WXADDPAPER(wxPAPER_A2, DMPAPER_A2, wxTRANSLATE("A2 420 x 594 mm"), 4200, 5940);
WXADDPAPER(wxPAPER_A3_TRANSVERSE, DMPAPER_A3_TRANSVERSE, wxTRANSLATE("A3 Transverse 297 x 420 mm"), 2970, 4200);
WXADDPAPER(wxPAPER_A3_EXTRA_TRANSVERSE,DMPAPER_A3_EXTRA_TRANSVERSE,wxTRANSLATE("A3 Extra Transverse 322 x 445 mm"), 3220, 4450);
WXADDPAPER(wxPAPER_DBL_JAPANESE_POSTCARD, 69, wxTRANSLATE("Japanese Double Postcard 200 x 148 mm"), 2000, 1480);
WXADDPAPER(wxPAPER_A6, 70, wxTRANSLATE("A6 105 x 148 mm"), 1050, 1480);
WXADDPAPER(wxPAPER_JENV_KAKU2, 71, wxTRANSLATE("Japanese Envelope Kaku #2"), 2400, 3320);
WXADDPAPER(wxPAPER_DBL_JAPANESE_POSTCARD, 69, wxTRANSLATE("Japanese Double Postcard 200 x 148 mm"), 2000, 1480);
WXADDPAPER(wxPAPER_A6, 70, wxTRANSLATE("A6 105 x 148 mm"), 1050, 1480);
WXADDPAPER(wxPAPER_JENV_KAKU2, 71, wxTRANSLATE("Japanese Envelope Kaku #2"), 2400, 3320);
}
#endif // wxUSE_PRINTING_ARCHITECTURE
}
#endif // wxUSE_PRINTING_ARCHITECTURE
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#if wxUSE_PRINTING_ARCHITECTURE
#ifndef WX_PRECOMP
#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"
#endif // !WX_PRECOMP
#include "wx/prntbase.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/sckaddr.cpp
// Purpose: Network address manager
// Author: Guilhem Lavaux
// Modified by:
// Purpose: Network address manager
// Author: Guilhem Lavaux
// Modified by:
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#endif
#if wxUSE_SOCKETS
#ifndef WX_PRECOMP
#endif
#if wxUSE_SOCKETS
#ifndef WX_PRECOMP
#include "wx/object.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/object.h"
#include "wx/log.h"
#include "wx/intl.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/sckfile.cpp
// Purpose: File protocol
// Author: Guilhem Lavaux
// Modified by:
// Purpose: File protocol
// Author: Guilhem Lavaux
// Modified by:
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
+#if wxUSE_STREAMS && wxUSE_PROTOCOL_FILE
+
-#if wxUSE_STREAMS && wxUSE_PROTOCOL_FILE
-
#include <stdio.h>
#include "wx/wfstream.h"
#include "wx/protocol/file.h"
#include <stdio.h>
#include "wx/wfstream.h"
#include "wx/protocol/file.h"
}
#endif // wxUSE_STREAMS && wxUSE_PROTOCOL_FILE
}
#endif // wxUSE_STREAMS && wxUSE_PROTOCOL_FILE
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/sckstrm.cpp
// Purpose: wxSocket*Stream
// Author: Guilhem Lavaux
// Modified by:
// Purpose: wxSocket*Stream
// Author: Guilhem Lavaux
// Modified by:
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
+#if wxUSE_SOCKETS && wxUSE_STREAMS
+
-#if wxUSE_SOCKETS && wxUSE_STREAMS
-
#include "wx/stream.h"
#include "wx/socket.h"
#include "wx/sckstrm.h"
#include "wx/stream.h"
#include "wx/socket.h"
#include "wx/sckstrm.h"
size_t wxSocketOutputStream::OnSysWrite(const void *buffer, size_t size)
{
size_t wxSocketOutputStream::OnSysWrite(const void *buffer, size_t size)
{
- size_t ret = m_o_socket->Write((const char *)buffer, size).LastCount();
+ size_t ret = m_o_socket->Write((const char *)buffer, size).LastCount();
- m_lasterror = m_o_socket->Error() ? wxSTREAM_WRITE_ERROR : wxSTREAM_NO_ERROR;
+ m_lasterror = m_o_socket->Error() ? wxSTREAM_WRITE_ERROR : wxSTREAM_NO_ERROR;
}
// ---------------------------------------------------------------------------
}
// ---------------------------------------------------------------------------
size_t wxSocketInputStream::OnSysRead(void *buffer, size_t size)
{
size_t wxSocketInputStream::OnSysRead(void *buffer, size_t size)
{
- size_t ret = m_i_socket->Read((char *)buffer, size).LastCount();
+ size_t ret = m_i_socket->Read((char *)buffer, size).LastCount();
- m_lasterror = m_i_socket->Error() ? wxSTREAM_READ_ERROR : wxSTREAM_NO_ERROR;
+ m_lasterror = m_i_socket->Error() ? wxSTREAM_READ_ERROR : wxSTREAM_NO_ERROR;
}
// ---------------------------------------------------------------------------
}
// ---------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: common/settcmn.cpp
+// Name: src/common/settcmn.cpp
// Purpose: common (to all ports) wxWindow functions
// Author: Robert Roebling
// RCS-ID: $Id$
// Purpose: common (to all ports) wxWindow functions
// Author: Robert Roebling
// RCS-ID: $Id$
#endif
#ifndef WX_PRECOMP
#endif
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/settings.h"
#endif //WX_PRECOMP
#include "wx/utils.h"
#include "wx/settings.h"
#endif //WX_PRECOMP
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include <ctype.h>
#include "wx/stream.h"
#include "wx/datstrm.h"
#include "wx/textfile.h"
#include <ctype.h>
#include "wx/stream.h"
#include "wx/datstrm.h"
#include "wx/textfile.h"
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
// constants
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/string.cpp
// Purpose: wxString class
// Author: Vadim Zeitlin, Ryan Norton
// Modified by:
// Purpose: wxString class
// Author: Vadim Zeitlin, Ryan Norton
// Modified by:
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#endif
#ifndef WX_PRECOMP
#endif
#ifndef WX_PRECOMP
- #include "wx/defs.h"
- #include "wx/string.h"
- #include "wx/intl.h"
- #include "wx/thread.h"
+ #include "wx/string.h"
+ #include "wx/intl.h"
+ #include "wx/thread.h"
#endif
#include <ctype.h>
#endif
#include <ctype.h>
#include <stdlib.h>
#ifdef __SALFORDC__
#include <stdlib.h>
#ifdef __SALFORDC__
#endif
// allocating extra space for each string consumes more memory but speeds up
#endif
// allocating extra space for each string consumes more memory but speeds up
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
+// File: src/common/taskbarcmn.cpp
// Purpose: Common parts of wxTaskBarIcon class
// Author: Julian Smart
// Modified by:
// Purpose: Common parts of wxTaskBarIcon class
// Author: Julian Smart
// Modified by:
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#ifdef __BORLANDC__
+ #pragma hdrstop
+#endif
#ifdef wxHAS_TASK_BAR_ICON
#ifdef wxHAS_TASK_BAR_ICON
+#ifndef WX_PRECOMP
+ #include "wx/app.h"
+#endif
+
// DLL options compatibility check:
// DLL options compatibility check:
WX_CHECK_BUILD_OPTIONS("wxAdvanced")
WX_CHECK_BUILD_OPTIONS("wxAdvanced")
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#ifndef WX_PRECOMP
- #include "wx/defs.h"
#endif
#if wxUSE_VALIDATORS
#ifndef WX_PRECOMP
#endif
#if wxUSE_VALIDATORS
#ifndef WX_PRECOMP
- #include "wx/utils.h"
- #include "wx/intl.h"
- #include "wx/dynarray.h"
- #include "wx/choice.h"
- #include "wx/combobox.h"
- #include "wx/radiobox.h"
- #include "wx/radiobut.h"
- #include "wx/checkbox.h"
- #include "wx/scrolbar.h"
- #include "wx/gauge.h"
- #include "wx/stattext.h"
- #include "wx/textctrl.h"
- #include "wx/button.h"
- #include "wx/listbox.h"
- #include "wx/slider.h"
+ #include "wx/utils.h"
+ #include "wx/intl.h"
+ #include "wx/dynarray.h"
+ #include "wx/choice.h"
+ #include "wx/combobox.h"
+ #include "wx/radiobox.h"
+ #include "wx/radiobut.h"
+ #include "wx/checkbox.h"
+ #include "wx/scrolbar.h"
+ #include "wx/gauge.h"
+ #include "wx/stattext.h"
+ #include "wx/textctrl.h"
+ #include "wx/button.h"
+ #include "wx/listbox.h"
+ #include "wx/slider.h"
#endif
#include "wx/spinctrl.h"
#endif
#include "wx/spinctrl.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/validate.cpp
// Purpose: wxValidator
// Author: Julian Smart
// Modified by:
// Purpose: wxValidator
// Author: Julian Smart
// Modified by:
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#ifndef WX_PRECOMP
- #include "wx/defs.h"
#endif
#if wxUSE_VALIDATORS
#ifndef WX_PRECOMP
#endif
#if wxUSE_VALIDATORS
#ifndef WX_PRECOMP
#endif
#include "wx/validate.h"
const wxValidator wxDefaultValidator;
#endif
#include "wx/validate.h"
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_
// VZ: personally, I think true would be more appropriate - these bells are
// _annoying_
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/frame.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/frame.h"
#include "wx/window.h"
#include "wx/control.h"
#include "wx/checkbox.h"
#include "wx/window.h"
#include "wx/control.h"
#include "wx/checkbox.h"
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#endif
#define _ISOC9X_SOURCE 1 // to get vsscanf()
#endif
#define _ISOC9X_SOURCE 1 // to get vsscanf()
#include <string.h>
#ifndef __WXWINCE__
#include <string.h>
#ifndef __WXWINCE__
-#include <time.h>
-#include <locale.h>
+ #include <time.h>
+ #include <locale.h>
-#include "wx/msw/wince/time.h"
+ #include "wx/msw/wince/time.h"
#endif
#ifndef WX_PRECOMP
#endif
#ifndef WX_PRECOMP
- #include "wx/defs.h"
- #include "wx/wxchar.h"
- #include "wx/string.h"
- #include "wx/hash.h"
+ #include "wx/wxchar.h"
+ #include "wx/string.h"
+ #include "wx/hash.h"
#endif
#if defined(__WIN32__) && defined(wxNEED_WX_CTYPE_H)
#include <windef.h>
#endif
#if defined(__WIN32__) && defined(wxNEED_WX_CTYPE_H)
#include <windef.h>
- #include <winbase.h>
- #include <winnls.h>
- #include <winnt.h>
+ #include <winbase.h>
+ #include <winnls.h>
+ #include <winnt.h>
#endif
#if defined(__MWERKS__) && __MSL__ >= 0x6000
#endif
#if defined(__MWERKS__) && __MSL__ >= 0x6000
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/xpmdecod.cpp
// Purpose: wxXPMDecoder
// Author: John Cristy, Vaclav Slavik
// RCS-ID: $Id$
// Purpose: wxXPMDecoder
// Author: John Cristy, Vaclav Slavik
// RCS-ID: $Id$
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
+#if wxUSE_IMAGE && wxUSE_XPM
+
+ #include "wx/intl.h"
+ #include "wx/log.h"
-#if wxUSE_IMAGE && wxUSE_XPM
-
#include "wx/stream.h"
#include "wx/image.h"
#include "wx/utils.h"
#include "wx/stream.h"
#include "wx/image.h"
#include "wx/utils.h"
#include <string.h>
#include <ctype.h>
#include <string.h>
#include <ctype.h>
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
+#if wxUSE_ZLIB && wxUSE_STREAMS && wxUSE_ZIPSTREAM
+
+ #include "wx/intl.h"
+ #include "wx/log.h"
-#if wxUSE_ZLIB && wxUSE_STREAMS && wxUSE_ZIPSTREAM
-
-#include "wx/log.h"
-#include "wx/intl.h"
#include "wx/datstrm.h"
#include "wx/zstream.h"
#include "wx/mstream.h"
#include "wx/datstrm.h"
#include "wx/zstream.h"
#include "wx/mstream.h"