#if wxUSE_DISPLAY
+#include "wx/display.h"
+
#ifndef WX_PRECOMP
- #include "wx/dynarray.h"
+ #include "wx/dynarray.h"
+ #include "wx/string.h"
#endif
-#include "wx/display.h"
#include "wx/display_impl.h"
#include "wx/gdicmn.h"
-#include "wx/string.h"
#import <Foundation/Foundation.h>
}
#endif // wxUSE_DISPLAY
-
#if wxUSE_SOCKETS
+#include "wx/socket.h"
+
#ifndef WX_PRECOMP
#include "wx/object.h"
+ #include "wx/string.h"
#endif
#include "wx/app.h"
#include "wx/apptrait.h"
-#include "wx/string.h"
#include "wx/timer.h"
#include "wx/utils.h"
#include "wx/module.h"
#include "wx/event.h"
#include "wx/sckaddr.h"
-#include "wx/socket.h"
#include "wx/datetime.h"
// DLL options compatibility check:
/////////////////////////////////////////////////////////////////////////////
-// Name: common/sysopt.cpp
+// Name: src/common/sysopt.cpp
// Purpose: wxSystemOptions
// Author: Julian Smart
// Modified by:
#if wxUSE_SYSTEM_OPTIONS
+#include "wx/sysopt.h"
+
#ifndef WX_PRECOMP
#include "wx/list.h"
+ #include "wx/string.h"
#endif
-#include "wx/string.h"
-#include "wx/sysopt.h"
#include "wx/arrstr.h"
// ----------------------------------------------------------------------------
}
#endif // wxUSE_SYSTEM_OPTIONS
-
#if wxUSE_URL
+#include "wx/url.h"
+
#ifndef WX_PRECOMP
#include "wx/list.h"
+ #include "wx/string.h"
#endif
-#include "wx/string.h"
#include "wx/utils.h"
#include "wx/module.h"
-#include "wx/url.h"
#include <string.h>
#include <ctype.h>
#pragma hdrstop
#endif
+#include "wx/variant.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
+
#if wxUSE_STD_IOSTREAM
#if wxUSE_IOSTREAMH
#include <fstream.h>
#include "wx/tokenzr.h"
#include "wx/math.h"
-#include "wx/variant.h"
-
IMPLEMENT_ABSTRACT_CLASS(wxVariantData, wxObject)
wxVariant WXDLLIMPEXP_BASE wxNullVariant;
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
-#ifndef __WXPALMOS__
+#include "wx/notebook.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
-#include "wx/string.h"
#include "wx/log.h"
#include "wx/settings.h"
#include "wx/generic/imaglist.h"
-#include "wx/notebook.h"
#include "wx/dcclient.h"
#include "wx/generic/tabg.h"
}
return retval;
}
-
-#endif // __WXPALMOS__
#include "wx/wxprec.h"
#include "wx/utils.h"
-#include "wx/string.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
#include "wx/apptrait.h"
#include "wx/intl.h"
{
Bool result;
XkbSetDetectableAutoRepeat( GDK_DISPLAY(), flag, &result );
- return result; /* TRUE if keyboard hardware supports this mode */
+ return result; /* true if keyboard hardware supports this mode */
}
#else
bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) )
{
- return FALSE;
+ return false;
}
#endif
bool wxColourDisplay()
{
- return TRUE;
+ return true;
}
int wxDisplayDepth()
return tag;
}
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#include "wx/utils.h"
+
#ifndef WX_PRECOMP
#include "wx/list.h"
+ #include "wx/string.h"
#endif
-#include "wx/utils.h"
-#include "wx/string.h"
#include "wx/log.h"
#include "wx/config.h"
#include "wx/app.h"
#include "wx/wxprec.h"
#include "wx/utils.h"
-#include "wx/string.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
#include "wx/apptrait.h"
#include "wx/intl.h"
{
Bool result;
XkbSetDetectableAutoRepeat( GDK_DISPLAY(), flag, &result );
- return result; /* TRUE if keyboard hardware supports this mode */
+ return result; /* true if keyboard hardware supports this mode */
}
#else
bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) )
{
- return FALSE;
+ return false;
}
#endif
bool wxColourDisplay()
{
- return TRUE;
+ return true;
}
int wxDisplayDepth()
return tag;
}
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#include "wx/utils.h"
+
#ifndef WX_PRECOMP
#include "wx/list.h"
+ #include "wx/string.h"
#endif
-#include "wx/utils.h"
-#include "wx/string.h"
#include "wx/log.h"
#include "wx/config.h"
#include "wx/app.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: accel.cpp
+// Name: src/mac/carbon/accel.cpp
// Purpose: wxAcceleratorTable
// Author: Stefan Csomor
// Modified by:
#include "wx/wxprec.h"
#include "wx/accel.h"
-#include "wx/string.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
IMPLEMENT_DYNAMIC_CLASS(wxAcceleratorTable, wxObject)
return -1;
}
-
-
#if wxUSE_SOCKETS
+#include "wx/socket.h"
+
#ifndef WX_PRECOMP
#include "wx/object.h"
+ #include "wx/string.h"
#endif
#include "wx/app.h"
#include "wx/apptrait.h"
-#include "wx/string.h"
#include "wx/timer.h"
#include "wx/utils.h"
#include "wx/module.h"
#include "wx/event.h"
#include "wx/sckaddr.h"
-#include "wx/socket.h"
#include "wx/mac/carbon/private.h"
#include <sys/socket.h>
#if wxUSE_DISPLAY
+#include "wx/display.h"
+
#ifndef WX_PRECOMP
#include "wx/dynarray.h"
#include "wx/log.h"
+ #include "wx/string.h"
#endif
#ifdef __DARWIN__
#include <Debugging.h>
#endif
-#include "wx/display.h"
#include "wx/display_impl.h"
#include "wx/gdicmn.h"
-#include "wx/string.h"
// ----------------------------------------------------------------------------
// display classes implementation
/////////////////////////////////////////////////////////////////////////////
-// Name: font.cpp
+// Name: src/mac/carbon/font.cpp
// Purpose: wxFont class
// Author: Stefan Csomor
// Modified by:
#include "wx/wxprec.h"
-#include "wx/string.h"
#include "wx/font.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
+
#include "wx/fontutil.h"
#include "wx/gdicmn.h"
#include "wx/utils.h"
, m_family(wxDEFAULT)
, m_style(wxNORMAL)
, m_weight(wxNORMAL)
- , m_underlined(FALSE)
+ , m_underlined(false)
, m_faceName(wxT("applicationfont"))
, m_encoding(wxFONTENCODING_DEFAULT)
, m_macFontNum(0)
}
else
{
- if ( m_faceName.Length() == 0 )
+ if ( m_faceName.empty() )
{
switch ( m_family )
{
return &(M_FONTDATA->m_info);
}
-
#if wxUSE_NOTEBOOK
+#include "wx/notebook.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
+
#include "wx/app.h"
#include "wx/string.h"
#include "wx/log.h"
#include "wx/imaglist.h"
#include "wx/image.h"
-#include "wx/notebook.h"
#include "wx/mac/uma.h"
ControlTabSize tabsize;
switch (GetWindowVariant())
{
- case wxWINDOW_VARIANT_MINI:
+ case wxWINDOW_VARIANT_MINI:
if ( UMAGetSystemVersion() >= 0x1030 )
tabsize = 3 ;
else
tabsize = kControlSizeSmall;
break;
- case wxWINDOW_VARIANT_SMALL:
+ case wxWINDOW_VARIANT_SMALL:
tabsize = kControlTabSizeSmall;
break;
- default:
+ default:
tabsize = kControlTabSizeLarge;
break;
}
const int countPages = GetPageCount();
// we have to convert from Client to Window relative coordinates
- wxPoint adjustedPt = pt + GetClientAreaOrigin();
+ wxPoint adjustedPt = pt + GetClientAreaOrigin();
// and now to HIView native ones
adjustedPt.x -= MacGetLeftBorderSize() ;
adjustedPt.y -= MacGetTopBorderSize() ;
-
+
HIPoint hipoint= { adjustedPt.x , adjustedPt.y } ;
HIViewPartCode outPart = 0 ;
OSStatus err = HIViewGetPartHit( m_peer->GetControlRef(), &hipoint, &outPart );
#if wxUSE_SOUND
+#include "wx/sound.h"
+
#ifndef WX_PRECOMP
#include "wx/object.h"
+ #include "wx/string.h"
#endif
-#include "wx/string.h"
#include "wx/log.h"
#include "wx/file.h"
-#include "wx/sound.h"
#include "wx/timer.h"
#include "wx/intl.h"
#include "wx/wxprec.h"
#include "wx/accel.h"
-#include "wx/string.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
IMPLEMENT_DYNAMIC_CLASS(wxAcceleratorTable, wxObject)
wxAcceleratorRefData::~wxAcceleratorRefData()
{
- m_accels.DeleteContents( TRUE );
+ m_accels.DeleteContents( true );
}
wxAcceleratorTable::wxAcceleratorTable()
#if wxUSE_DISPLAY
+#include "wx/display.h"
+
#ifndef WX_PRECOMP
#include "wx/dynarray.h"
#include "wx/log.h"
+ #include "wx/string.h"
#endif
#ifdef __DARWIN__
#include <FixMath.h>
#endif
-#include "wx/display.h"
#include "wx/display_impl.h"
#include "wx/gdicmn.h"
-#include "wx/string.h"
// ----------------------------------------------------------------------------
// display implementation classes
#pragma hdrstop
#endif
-#include "wx/string.h"
#include "wx/font.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
+
#include "wx/fontutil.h"
#include "wx/gdicmn.h"
#include "wx/utils.h"
void wxFontRefData::MacFindFont()
{
- if( m_faceName.Length() == 0 )
+ if( m_faceName.empty() )
{
switch( m_family )
{
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
+#include "wx/wxprec.h"
+
// ============================================================================
// declarations
// ============================================================================
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
+
+#include "wx/notebook.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
+
#include "wx/app.h"
-#include "wx/string.h"
#include "wx/log.h"
#include "wx/imaglist.h"
#include "wx/image.h"
-#include "wx/notebook.h"
#include "wx/mac/uma.h"
// ----------------------------------------------------------------------------
// macros
#if wxUSE_SOUND
+#include "wx/sound.h"
+
#ifndef WX_PRECOMP
#include "wx/object.h"
+ #include "wx/string.h"
#endif
-#include "wx/string.h"
-#include "wx/sound.h"
-
#ifdef __WXMAC__
#include "wx/mac/private.h"
#ifndef __DARWIN__
//DARWIN _ONLY_
#ifdef __DARWIN__
+#include "wx/mac/corefoundation/hid.h"
+
#ifndef WX_PRECOMP
#include "wx/dynarray.h"
+ #include "wx/string.h"
#endif
-#include "wx/mac/corefoundation/hid.h"
-#include "wx/string.h"
#include "wx/log.h"
#include "wx/mac/corefoundation/cfstring.h"
// headers
// ----------------------------------------------------------------------------
+#include "wx/fontenum.h"
+
#ifndef WX_PRECOMP
#include "wx/dynarray.h"
+ #include "wx/string.h"
#endif
-#include "wx/string.h"
#include "wx/utils.h"
-#include "wx/fontenum.h"
#include "wx/encinfo.h"
#include "wx/fontutil.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: utils.cpp
+// Name: src/mgl/utils.cpp
// Purpose:
// Author: Vaclav Slavik
// Id: $Id$
#endif
#include "wx/utils.h"
-#include "wx/string.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
#include "wx/intl.h"
#include "wx/apptrait.h"
#include "wx/wxprec.h"
#include "wx/accel.h"
-#include "wx/string.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
+
#include "wx/utils.h"
#include <ctype.h>
#pragma message enable nosimpint
#endif
-#include "wx/string.h"
#include "wx/font.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
+
#include "wx/gdicmn.h"
#include "wx/utils.h" // for wxGetDisplay()
#include "wx/fontutil.h" // for wxNativeFontInfo
/////////////////////////////////////////////////////////////////////////////
-// Name: utils.cpp
+// Name: src/msdos/utils.cpp
// Purpose: DOS implementations of utility functions
// Author: Vaclav Slavik, M.J.Wetherell
// Id: $Id$
#endif
#include "wx/utils.h"
-#include "wx/string.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
#include "wx/intl.h"
#include "wx/apptrait.h"
// wxGetenv is defined as getenv()
wxChar *p = wxGetenv(var);
if ( !p )
- return FALSE;
+ return false;
if ( value )
*value = p;
- return TRUE;
+ return true;
}
bool wxSetEnv(const wxString& variable, const wxChar *value)
bool wxGetHostName(wxChar *buf, int n)
{
const wxChar *host = wxGetenv(_T("ComputerName"));
-
+
if (!host)
host = wxGetenv(_T("HOSTNAME"));
#if wxUSE_STREAMS
// A wxFFileInputStream that deletes the file in it's destructor
-//
+//
class wxTempFileInStream : public wxFFileInputStream
{
public:
/////////////////////////////////////////////////////////////////////////////
-// Name: dcclient.cpp
+// Name: src/msw/dcclient.cpp
// Purpose: wxClientDC class
// Author: Julian Smart
// Modified by:
#pragma hdrstop
#endif
-#include "wx/string.h"
+#include "wx/dcclient.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
+
#include "wx/log.h"
#include "wx/window.h"
#include "wx/msw/private.h"
-#include "wx/dcclient.h"
-
// ----------------------------------------------------------------------------
// array/list types
// ----------------------------------------------------------------------------
// prevent the base class dtor from ReleaseDC()ing it again
m_hDC = 0;
}
-
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
#if wxUSE_JOYSTICK
#include "wx/joystick.h"
-#include "wx/string.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
+
#include "wx/window.h"
#include "wx/msw/private.h"
///////////////////////////////////////////////////////////////////////////////
-// Name: msw/registry.cpp
+// Name: src/msw/registry.cpp
// Purpose: implementation of registry classes and functions
// Author: Vadim Zeitlin
// Modified by:
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
+#endif
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
#endif
-// other wxWidgets headers
-#include "wx/string.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/file.h"
if ( !str.empty() && str.Last() == REG_SEPARATOR )
str.Truncate(str.Len() - 1);
}
-
#ifndef WX_PRECOMP
#include "wx/list.h"
+ #include "wx/string.h"
#endif
#if !wxUSE_PROTOCOL_HTTP
#pragma comment(lib, "wininet.lib")
#endif
-#include "wx/string.h"
#include "wx/utils.h"
#include "wx/module.h"
#include "wx/url.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: dcclient.cpp
+// Name: src/os2/dcclient.cpp
// Purpose: wxClientDC class
// Author: David Webster
// Modified by:
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
-#include "wx/string.h"
+#include "wx/dcclient.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
+
#include "wx/log.h"
#include "wx/window.h"
#include "wx/app.h"
#include "wx/os2/private.h"
-#include "wx/dcclient.h"
-
// ----------------------------------------------------------------------------
// array/list types
// ----------------------------------------------------------------------------
);
}
- m_bIsPaintTime = TRUE;
+ m_bIsPaintTime = true;
ms_cache.Add(new wxPaintDCInfo(m_pCanvas, this));
}
InitDC();
{
::WinEndPaint(m_hPS);
m_hPS = m_hOldPS;
- m_bIsPaintTime = FALSE;
+ m_bIsPaintTime = false;
ms_cache.RemoveAt(nIndex);
}
//else: cached DC entry is still in use
}
return 0;
} // end of wxPaintDC::FindInCache
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#if wxUSE_PRINTING_ARCHITECTURE
+
#define INCL_DEV
#define INCL_GPI
#define INCL_PM
#include<os2.h>
+#include "wx/dcprint.h"
+
#ifndef WX_PRECOMP
-#include "wx/app.h"
-#include "wx/math.h"
+ #include "wx/app.h"
+ #include "wx/math.h"
+ #include "wx/string.h"
#endif
-#include "wx/string.h"
#include "wx/log.h"
#include "wx/window.h"
#include "wx/os2/private.h"
-#include "wx/dcprint.h"
-
-#if wxUSE_PRINTING_ARCHITECTURE
IMPLEMENT_CLASS(wxPrinterDC, wxDC)
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-//
// For compilers that support precompilation, includes "wx.h".
-//
#include "wx/wxprec.h"
#if wxUSE_JOYSTICK
-#include "wx/string.h"
+#include "wx/joystick.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
+
#define INCL_PM
#define INCL_DOS
#include "wx/os2/private.h"
#define NO_JOYGETPOSEX
#include "wx/window.h"
-#include "wx/joystick.h"
IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject)
// TODO
return false;
}
+
#endif // wxUSE_JOYSTICK
#pragma hdrstop
#endif
-#include "wx/string.h"
+#include "wx/dcclient.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
+
#include "wx/log.h"
#include "wx/window.h"
-#include "wx/dcclient.h"
-
// ----------------------------------------------------------------------------
// array/list types
// ----------------------------------------------------------------------------
wxPaintDCEx::~wxPaintDCEx()
{
}
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
-#ifdef __BORLANDC__
-#pragma hdrstop
+#if wxUSE_JOYSTICK
+
+#include "wx/joystick.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
#endif
-#include "wx/string.h"
#include "wx/window.h"
-#include "wx/palmos/joystick.h"
IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject)
wxJoystick::wxJoystick(int joystick)
{
-};
+}
wxPoint wxJoystick::GetPosition() const
{
return false;
}
+#endif // wxUSE_JOYSTICK
// for compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#include "wx/fontenum.h"
+
#ifndef WX_PRECOMP
#include "wx/dynarray.h"
+ #include "wx/string.h"
#endif
-#include "wx/string.h"
#include "wx/regex.h"
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/fontmap.h"
-#include "wx/fontenum.h"
#include "wx/fontutil.h"
#include "wx/encinfo.h"
#pragma message enable nosimpint
#endif
-#include "wx/string.h"
#include "wx/font.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
+
#include "wx/gdicmn.h"
#include "wx/utils.h" // for wxGetDisplay()
#include "wx/fontutil.h" // for wxNativeFontInfo
/////////////////////////////////////////////////////////////////////////////
-// Name: xh_statbar.cpp
+// Name: src/xrc/xh_statbar.cpp
// Purpose: XRC resource for wxStatusBar
// Author: Brian Ravnsgaard Riis
// Created: 2004/01/21
#if wxUSE_XRC && wxUSE_STATUSBAR
+#include "wx/xrc/xh_statbar.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+#endif
+
#include "wx/frame.h"
-#include "wx/string.h"
#include "wx/log.h"
-#include "wx/xrc/xh_statbar.h"
#include "wx/statusbr.h"
IMPLEMENT_DYNAMIC_CLASS(wxStatusBarXmlHandler, wxXmlResourceHandler)
else
statbar->SetFieldsCount(fields);
- if (!styles.IsEmpty())
+ if (!styles.empty())
{
int *style = new int[fields];
for (int i = 0; i < fields; ++i)
else if (first == wxT("wxSB_RAISED"))
style[i] = wxSB_RAISED;
- if (!first.IsEmpty())
+ if (!first.empty())
wxLogError(wxT("Error in resource, unknown statusbar field style: ") + first);
if(styles.Find(wxT(',')))
styles.Remove(0, styles.Find(wxT(',')) + 1);
}
#endif // wxUSE_XRC && wxUSE_STATUSBAR
-