///////////////////////////////////////////////////////////////////////////////
-// Name: common/base/appbase.cpp
+// Name: src/common/appbase.cpp
// Purpose: implements wxAppConsole class
// Author: Vadim Zeitlin
// Modified by:
#endif
#ifndef WX_PRECOMP
+ #include "wx/list.h"
#include "wx/app.h"
#include "wx/intl.h"
- #include "wx/list.h"
#include "wx/log.h"
#endif //WX_PRECOMP
if ( !wxPendingEventsLocker )
return;
#endif
-
+
// ensure that we're the only thread to modify the pending events list
wxENTER_CRIT_SECT( *wxPendingEventsLocker );
// In ProcessPendingEvents(), new handlers might be add
// and we can safely leave the critical section here.
wxLEAVE_CRIT_SECT( *wxPendingEventsLocker );
-
+
handler->ProcessPendingEvents();
wxENTER_CRIT_SECT( *wxPendingEventsLocker );
}
#endif // __WXDEBUG__
-
#endif
#ifndef WX_PRECOMP
+ #include "wx/list.h"
#include "wx/app.h"
#include "wx/bitmap.h"
#include "wx/intl.h"
- #include "wx/list.h"
#include "wx/log.h"
#include "wx/msgdlg.h"
#include "wx/bitmap.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: artprov.cpp
+// Name: src/common/artprov.cpp
// Purpose: wxArtProvider class
// Author: Vaclav Slavik
// Modified by:
#endif
#ifndef WX_PRECOMP
- #include "wx/log.h"
#include "wx/list.h"
+ #include "wx/log.h"
#endif
#include "wx/artprov.h"
#include "wx/hashmap.h"
#include "wx/module.h"
+
#if wxUSE_IMAGE
-#include "wx/image.h"
+ #include "wx/image.h"
#endif
// ===========================================================================
else if (client == wxART_BUTTON)
return wxSize(16, 15);
else // wxART_OTHER or perhaps a user's client, no specified size
- return wxDefaultSize;
+ return wxDefaultSize;
#endif // GTK+ 2/else
}
#ifndef WX_PRECOMP
#include "wx/object.h"
- #include "wx/string.h"
#include "wx/list.h"
+ #include "wx/string.h"
#include "wx/utils.h"
#include "wx/log.h"
#endif
#ifndef WX_PRECOMP
#include "wx/object.h"
- #include "wx/string.h"
#include "wx/list.h"
+ #include "wx/string.h"
#include "wx/utils.h"
#include "wx/log.h"
#endif
#include "wx/wxprec.h"
#ifdef __BORLANDC__
- #pragma hdrstop
+ #pragma hdrstop
#endif
#if wxUSE_DOC_VIEW_ARCHITECTURE
#ifndef WX_PRECOMP
+ #include "wx/list.h"
#include "wx/string.h"
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/dc.h"
#include "wx/dialog.h"
#include "wx/menu.h"
- #include "wx/list.h"
#include "wx/filedlg.h"
#include "wx/intl.h"
#include "wx/log.h"
#endif
#if wxUSE_PRINTING_ARCHITECTURE
- #include "wx/prntbase.h"
- #include "wx/printdlg.h"
+ #include "wx/prntbase.h"
+ #include "wx/printdlg.h"
#endif
#include "wx/msgdlg.h"
#include <string.h>
#if wxUSE_STD_IOSTREAM
- #include "wx/ioswrap.h"
- #if wxUSE_IOSTREAMH
- #include <fstream.h>
- #else
- #include <fstream>
- #endif
+ #include "wx/ioswrap.h"
+ #if wxUSE_IOSTREAMH
+ #include <fstream.h>
+ #else
+ #include <fstream>
+ #endif
#else
- #include "wx/wfstream.h"
+ #include "wx/wfstream.h"
#endif
// ----------------------------------------------------------------------------
#endif
#ifndef WX_PRECOMP
- #include "wx/app.h"
#include "wx/list.h"
+ #include "wx/app.h"
#if wxUSE_GUI
#include "wx/control.h"
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
#ifndef WX_PRECOMP
-#include "wx/list.h"
+ #include "wx/list.h"
#endif
#include "wx/hash.h"
#ifndef WX_PRECOMP
#include "wx/object.h"
+ #include "wx/list.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/palette.h"
#include "wx/module.h"
#include "wx/hash.h"
-#include "wx/list.h"
//-----------------------------------------------------------------------------
// wxPCXHandler
/////////////////////////////////////////////////////////////////////////////
-// Name: url.cpp
+// Name: src/common/url.cpp
// Purpose: URL parser
// Author: Guilhem Lavaux
// Modified by:
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
#if wxUSE_URL
+#ifndef WX_PRECOMP
+ #include "wx/list.h"
+#endif
+
#include "wx/string.h"
-#include "wx/list.h"
#include "wx/utils.h"
#include "wx/module.h"
#include "wx/url.h"
return;
wxString hostname = tmp_str(0, pos),
- port = tmp_str(pos+1, tmp_str.Length()-pos);
+ port = tmp_str(pos+1, tmp_str.length()-pos);
wxIPV4address addr;
if (!addr.Hostname(hostname))
return;
hostname = tmp_str(0, pos);
- port = tmp_str(pos+1, tmp_str.Length()-pos);
+ port = tmp_str(pos+1, tmp_str.length()-pos);
addr.Hostname(hostname);
addr.Service(port);
#ifndef WX_PRECOMP
#include "wx/object.h"
+ #include "wx/list.h"
#include "wx/hash.h"
#endif
#include "wx/xti.h"
#include "wx/xml/xml.h"
#include "wx/tokenzr.h"
-#include "wx/list.h"
#include <string.h>
#include "wx/beforestd.h"
///////////////////////////////////////////////////////////////////////////////
-// Name: generic/accel.cpp
+// Name: src/generic/accel.cpp
// Purpose: generic implementation of wxAcceleratorTable class
// Author: Robert Roebling
// Modified: VZ pn 31.05.01: use typed lists, Unicode cleanup, Add/Remove
#if wxUSE_ACCEL
#ifndef WX_PRECOMP
- #include "wx/event.h"
#include "wx/list.h"
+ #include "wx/event.h"
#endif // WX_PRECOMP
#include "wx/accel.h"
}
#endif // wxUSE_ACCEL
-
#if wxUSE_HELP && !defined(__WXWINCE__) && (!defined(__WXMAC__) || defined(__WXMAC_OSX__))
#ifndef WX_PRECOMP
+ #include "wx/list.h"
#include "wx/string.h"
#include "wx/utils.h"
- #include "wx/list.h"
#include "wx/intl.h"
#include "wx/msgdlg.h"
#include "wx/choicdlg.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: utilres.cpp
+// Name: src/gtk/utilsres.cpp
// Purpose:
// Author: Robert Roebling
// Id: $Id$
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#ifndef WX_PRECOMP
+ #include "wx/list.h"
+#endif
+
#include "wx/utils.h"
#include "wx/string.h"
-#include "wx/list.h"
#include "wx/log.h"
#include "wx/config.h"
#include "wx/app.h"
bool wxWriteResource(const wxString& section, const wxString& entry, const wxString& value, const wxString& file )
{
wxString filename( file );
- if (filename.IsEmpty()) filename = wxT(".wxWindows");
+ if (filename.empty()) filename = wxT(".wxWindows");
wxFileConfig conf( wxTheApp->GetAppName(), wxTheApp->GetVendorName(), filename );
bool wxGetResource(const wxString& section, const wxString& entry, wxChar **value, const wxString& file )
{
wxString filename( file );
- if (filename.IsEmpty()) filename = wxT(".wxWindows");
+ if (filename.empty()) filename = wxT(".wxWindows");
wxFileConfig conf( wxTheApp->GetAppName(), wxTheApp->GetVendorName(), filename );
wxString result;
if (conf.Read( entry, &result ))
{
- if (!result.IsEmpty())
+ if (!result.empty())
{
wxChar *s = new wxChar[result.Len()+1];
wxStrcpy( s, result.c_str() );
*value = s;
- return TRUE;
+ return true;
}
}
- return FALSE;
+ return false;
}
bool wxGetResource(const wxString& section, const wxString& entry, float *value, const wxString& file )
{
*value = (float)wxStrtod(s, NULL);
delete[] s;
- return TRUE;
+ return true;
}
- else return FALSE;
+ else return false;
}
bool wxGetResource(const wxString& section, const wxString& entry, long *value, const wxString& file )
{
*value = wxStrtol(s, NULL, 10);
delete[] s;
- return TRUE;
+ return true;
}
- else return FALSE;
+ else return false;
}
bool wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file )
{
*value = (int)wxStrtol(s, NULL, 10);
delete[] s;
- return TRUE;
+ return true;
}
- else return FALSE;
+ else return false;
}
-
/////////////////////////////////////////////////////////////////////////////
-// Name: utilres.cpp
+// Name: src/gtk1/utilsres.cpp
// Purpose:
// Author: Robert Roebling
// Id: $Id$
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#ifndef WX_PRECOMP
+ #include "wx/list.h"
+#endif
+
#include "wx/utils.h"
#include "wx/string.h"
-#include "wx/list.h"
#include "wx/log.h"
#include "wx/config.h"
#include "wx/app.h"
bool wxWriteResource(const wxString& section, const wxString& entry, const wxString& value, const wxString& file )
{
wxString filename( file );
- if (filename.IsEmpty()) filename = wxT(".wxWindows");
+ if (filename.empty()) filename = wxT(".wxWindows");
wxFileConfig conf( wxTheApp->GetAppName(), wxTheApp->GetVendorName(), filename );
bool wxGetResource(const wxString& section, const wxString& entry, wxChar **value, const wxString& file )
{
wxString filename( file );
- if (filename.IsEmpty()) filename = wxT(".wxWindows");
+ if (filename.empty()) filename = wxT(".wxWindows");
wxFileConfig conf( wxTheApp->GetAppName(), wxTheApp->GetVendorName(), filename );
wxString result;
if (conf.Read( entry, &result ))
{
- if (!result.IsEmpty())
+ if (!result.empty())
{
wxChar *s = new wxChar[result.Len()+1];
wxStrcpy( s, result.c_str() );
*value = s;
- return TRUE;
+ return true;
}
}
- return FALSE;
+ return false;
}
bool wxGetResource(const wxString& section, const wxString& entry, float *value, const wxString& file )
{
*value = (float)wxStrtod(s, NULL);
delete[] s;
- return TRUE;
+ return true;
}
- else return FALSE;
+ else return false;
}
bool wxGetResource(const wxString& section, const wxString& entry, long *value, const wxString& file )
{
*value = wxStrtol(s, NULL, 10);
delete[] s;
- return TRUE;
+ return true;
}
- else return FALSE;
+ else return false;
}
bool wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file )
{
*value = (int)wxStrtol(s, NULL, 10);
delete[] s;
- return TRUE;
+ return true;
}
- else return FALSE;
+ else return false;
}
-
#if wxUSE_HTML && wxUSE_STREAMS
#ifndef WXPRECOMP
+ #include "wx/list.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/dcclient.h"
#include "wx/html/htmlwin.h"
#include "wx/html/htmlproc.h"
-#include "wx/list.h"
#include "wx/clipbrd.h"
#include "wx/dataobj.h"
#include "wx/timer.h"
FORCE_WXHTML_MODULES()
#endif // wxUSE_HTML
-
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
#ifndef WX_PRECOMP
-#include <stdio.h>
-#include "wx/list.h"
-#include "wx/utils.h"
+ #include <stdio.h>
+ #include "wx/list.h"
+ #include "wx/utils.h"
#endif
#include "wx/gdiobj.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#ifndef WX_PRECOMP
+ #include "wx/list.h"
+#endif
+
#include "wx/cursor.h"
#include "wx/app.h"
#include "wx/utils.h"
-#include "wx/list.h"
#include "wx/window.h"
+
#if wxUSE_IMAGE
-#include "wx/image.h"
+ #include "wx/image.h"
#endif
#ifdef __VMS__
////////////////////////////////////////////////////////////////////////////
-// Name: bitmap.cpp
+// Name: src/msw/bitmap.cpp
// Purpose: wxBitmap
// Author: Julian Smart
// Modified by:
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
#ifndef WX_PRECOMP
-#include <stdio.h>
-#include "wx/list.h"
-#include "wx/utils.h"
-#include "wx/app.h"
+ #include <stdio.h>
+ #include "wx/list.h"
+ #include "wx/utils.h"
+ #include "wx/app.h"
#endif
#include "wx/gdiobj.h"
#endif
#ifndef WX_PRECOMP
- #include "wx/defs.h"
#include "wx/list.h"
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
#ifndef WX_PRECOMP
-#include <stdio.h>
-#include "wx/list.h"
-#include "wx/utils.h"
-#include "wx/app.h"
-#include "wx/pen.h"
+ #include <stdio.h>
+ #include "wx/list.h"
+ #include "wx/utils.h"
+ #include "wx/app.h"
+ #include "wx/pen.h"
#endif
#include "wx/msw/private.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: msw/timer.cpp
+// Name: src/msw/timer.cpp
// Purpose: wxTimer implementation
// Author: Julian Smart
// Modified by: Vadim Zeitlin (use hash map instead of list, global rewrite)
#if wxUSE_TIMER
#ifndef WX_PRECOMP
- #include "wx/window.h"
#include "wx/list.h"
+ #include "wx/window.h"
#include "wx/event.h"
#include "wx/app.h"
#include "wx/intl.h"
}
#endif // wxUSE_TIMER
-
#if wxUSE_URL_NATIVE
+#ifndef WX_PRECOMP
+ #include "wx/list.h"
+#endif
+
#if !wxUSE_PROTOCOL_HTTP
#include "wx/protocol/protocol.h"
#endif
#include "wx/string.h"
-#include "wx/list.h"
#include "wx/utils.h"
#include "wx/module.h"
#include "wx/url.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: bitmap.cpp
+// Name: src/os2/bitmap.cpp
// Purpose: wxBitmap
// Author: David Webster
// Modified by:
#include "wx/os2/private.h"
#include "wx/log.h"
-//#include "wx/msw/dib.h"
#include "wx/image.h"
#include "wx/xpmdecod.h"
//
} // end of wxBitmap::Init
-bool wxBitmap::CopyFromIconOrCursor(
- const wxGDIImage& rIcon
-)
+bool wxBitmap::CopyFromIconOrCursor(const wxGDIImage& rIcon)
{
HPOINTER hIcon = (HPOINTER)rIcon.GetHandle();
POINTERINFO SIconInfo;
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
-#include <stdio.h>
-#include "wx/list.h"
-#include "wx/utils.h"
-#include "wx/app.h"
-#include "wx/brush.h"
-#include "wx/log.h"
+ #include <stdio.h>
+ #include "wx/list.h"
+ #include "wx/utils.h"
+ #include "wx/app.h"
+ #include "wx/brush.h"
+ #include "wx/log.h"
#endif
#include "wx/os2/private.h"
memset(&m_vBundle, '\0', sizeof(AREABUNDLE));
} // end of wxBrushRefData::wxBrushRefData
-wxBrushRefData::wxBrushRefData(
- const wxBrushRefData& rData
-)
+wxBrushRefData::wxBrushRefData(const wxBrushRefData& rData)
{
m_nStyle = rData.m_nStyle;
m_vStipple = rData.m_vStipple;
RealizeResource();
} // end of wxBrush::wxBrush
-wxBrush::wxBrush(
- const wxBitmap& rStipple
-)
+wxBrush::wxBrush(const wxBitmap& rStipple)
{
m_refData = new wxBrushRefData;
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
-#include <stdio.h>
-#include "wx/list.h"
-#include "wx/utils.h"
-#include "wx/app.h"
-#include "wx/cursor.h"
-#include "wx/icon.h"
+ #include <stdio.h>
+ #include "wx/list.h"
+ #include "wx/utils.h"
+ #include "wx/app.h"
+ #include "wx/cursor.h"
+ #include "wx/icon.h"
#endif
#include "wx/os2/private.h"
m_vEncoding = vEncoding;
m_hFont = 0;
- m_bNativeFontInfoOk = FALSE;
+ m_bNativeFontInfoOk = false;
m_nFontId = 0;
- m_bTemporary = FALSE;
+ m_bTemporary = false;
m_pFM = (PFONTMETRICS)NULL;
m_hPS = NULLHANDLE;
m_nNumFonts = 0;
m_hPS = (HPS)hPS;
m_nFontId = 0;
- m_bTemporary = FALSE;
+ m_bTemporary = false;
m_pFM = (PFONTMETRICS)NULL;
m_nNumFonts = 0;
} // end of wxFontRefData::Init
wxString sToken = vTokenizer.GetNextToken();
if (sToken != _T('0'))
- return FALSE;
+ return false;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
- return FALSE;
+ return false;
fm.lEmHeight = lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
- return FALSE;
+ return false;
fa.lAveCharWidth = lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
- return FALSE;
+ return false;
fa.fsSelection = (USHORT)lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
- return FALSE;
+ return false;
fa.fsType = (USHORT)lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
- return FALSE;
+ return false;
fa.fsFontUse = (USHORT)lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
- return FALSE;
+ return false;
fa.idRegistry = (USHORT)lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
- return FALSE;
+ return false;
fa.usCodePage = (USHORT)lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
- return FALSE;
+ return false;
fa.lMatch = lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
- return FALSE;
+ return false;
fn.usWeightClass = (USHORT)lVal;
sToken = vTokenizer.GetNextToken();
if(!sToken)
- return FALSE;
+ return false;
wxStrcpy((wxChar*)fa.szFacename, sToken.c_str());
return true;
} // end of wxNativeFontInfo::FromString
bool wxFont::GetUnderlined() const
{
- wxCHECK_MSG( Ok(), FALSE, wxT("invalid font") );
+ wxCHECK_MSG( Ok(), false, wxT("invalid font") );
return M_FONTDATA->GetUnderlined();
} // end of wxFont::GetUnderlined
#include "wx/wxprec.h"
+#if wxUSE_PRINTING_ARCHITECTURE
+
#ifndef WX_PRECOMP
#include <stdio.h>
#include "wx/list.h"
#include "wx/app.h"
#endif
-#if wxUSE_PRINTING_ARCHITECTURE
-
#include "wx/os2/printos2.h"
#include "wx/generic/prntdlgg.h"
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
- #include "wx/window.h"
#include "wx/list.h"
+ #include "wx/window.h"
#include "wx/event.h"
#include "wx/app.h"
#endif
(void)m_owner->ProcessEvent(vEvent);
} // end of wxTimer::Notify
-bool wxTimer::Start(
- int nMilliseconds
-, bool bOneShot
-)
+bool wxTimer::Start( int nMilliseconds, bool bOneShot )
{
- (void)wxTimerBase::Start( nMilliseconds
- ,bOneShot
- );
+ (void)wxTimerBase::Start( nMilliseconds, bOneShot );
- wxCHECK_MSG( m_milli > 0L, FALSE, wxT("invalid value for timer") );
+ wxCHECK_MSG( m_milli > 0L, false, wxT("invalid value for timer") );
- wxWindow* pWin = NULL;
+ wxWindow* pWin = NULL;
if (m_owner)
{
{
wxLogSysError(_("Couldn't create a timer"));
- return(FALSE);
+ return false;
}
}
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
#ifndef WX_PRECOMP
-#include <stdio.h>
-#include "wx/list.h"
-#include "wx/utils.h"
-#include "wx/app.h"
+ #include <stdio.h>
+ #include "wx/list.h"
+ #include "wx/utils.h"
+ #include "wx/app.h"
#endif
#include "wx/gdiobj.h"
IMPLEMENT_DYNAMIC_CLASS(wxGDIObject, wxObject)
-
-/*
-void wxGDIObject::IncrementResourceUsage(void)
-{
-};
-
-void wxGDIObject::DecrementResourceUsage(void)
-{
-};
-
-*/
#if wxUSE_TIMER
#ifndef WX_PRECOMP
- #include "wx/window.h"
#include "wx/list.h"
+ #include "wx/window.h"
#include "wx/event.h"
#include "wx/app.h"
#include "wx/intl.h"
}
#endif // wxUSE_TIMER
-