git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38857
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
32 files changed:
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
-// Name: common/base/appbase.cpp
+// Name: src/common/appbase.cpp
// Purpose: implements wxAppConsole class
// Author: Vadim Zeitlin
// Modified by:
// Purpose: implements wxAppConsole class
// Author: Vadim Zeitlin
// Modified by:
#endif
#ifndef WX_PRECOMP
#endif
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/intl.h"
#include "wx/app.h"
#include "wx/intl.h"
#include "wx/log.h"
#endif //WX_PRECOMP
#include "wx/log.h"
#endif //WX_PRECOMP
if ( !wxPendingEventsLocker )
return;
#endif
if ( !wxPendingEventsLocker )
return;
#endif
// ensure that we're the only thread to modify the pending events list
wxENTER_CRIT_SECT( *wxPendingEventsLocker );
// 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 );
// 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 );
handler->ProcessPendingEvents();
wxENTER_CRIT_SECT( *wxPendingEventsLocker );
#endif
#ifndef WX_PRECOMP
#endif
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/bitmap.h"
#include "wx/intl.h"
#include "wx/app.h"
#include "wx/bitmap.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/msgdlg.h"
#include "wx/bitmap.h"
#include "wx/log.h"
#include "wx/msgdlg.h"
#include "wx/bitmap.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/artprov.cpp
// Purpose: wxArtProvider class
// Author: Vaclav Slavik
// Modified by:
// Purpose: wxArtProvider class
// Author: Vaclav Slavik
// Modified by:
#endif
#ifndef WX_PRECOMP
#endif
#ifndef WX_PRECOMP
#endif
#include "wx/artprov.h"
#include "wx/hashmap.h"
#include "wx/module.h"
#endif
#include "wx/artprov.h"
#include "wx/hashmap.h"
#include "wx/module.h"
#endif
// ===========================================================================
#endif
// ===========================================================================
else if (client == wxART_BUTTON)
return wxSize(16, 15);
else // wxART_OTHER or perhaps a user's client, no specified size
else if (client == wxART_BUTTON)
return wxSize(16, 15);
else // wxART_OTHER or perhaps a user's client, no specified size
#ifndef WX_PRECOMP
#include "wx/object.h"
#ifndef WX_PRECOMP
#include "wx/object.h"
#include "wx/utils.h"
#include "wx/log.h"
#endif
#include "wx/utils.h"
#include "wx/log.h"
#endif
#ifndef WX_PRECOMP
#include "wx/object.h"
#ifndef WX_PRECOMP
#include "wx/object.h"
#include "wx/utils.h"
#include "wx/log.h"
#endif
#include "wx/utils.h"
#include "wx/log.h"
#endif
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#endif
#if wxUSE_DOC_VIEW_ARCHITECTURE
#ifndef WX_PRECOMP
#endif
#if wxUSE_DOC_VIEW_ARCHITECTURE
#ifndef WX_PRECOMP
#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/string.h"
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/dc.h"
#include "wx/dialog.h"
#include "wx/menu.h"
#include "wx/filedlg.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/filedlg.h"
#include "wx/intl.h"
#include "wx/log.h"
#endif
#if wxUSE_PRINTING_ARCHITECTURE
#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"
#endif
#include "wx/msgdlg.h"
#include <string.h>
#if wxUSE_STD_IOSTREAM
#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
- #include "wx/wfstream.h"
+ #include "wx/wfstream.h"
#endif
// ----------------------------------------------------------------------------
#endif
// ----------------------------------------------------------------------------
#endif
#ifndef WX_PRECOMP
#endif
#ifndef WX_PRECOMP
#if wxUSE_GUI
#include "wx/control.h"
#if wxUSE_GUI
#include "wx/control.h"
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#endif
#ifndef WX_PRECOMP
#endif
#ifndef WX_PRECOMP
#endif
#include "wx/hash.h"
#endif
#include "wx/hash.h"
#ifndef WX_PRECOMP
#include "wx/object.h"
#ifndef WX_PRECOMP
#include "wx/object.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/palette.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/palette.h"
#include "wx/module.h"
#include "wx/hash.h"
#include "wx/module.h"
#include "wx/hash.h"
//-----------------------------------------------------------------------------
// wxPCXHandler
//-----------------------------------------------------------------------------
// wxPCXHandler
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/url.cpp
// Purpose: URL parser
// Author: Guilhem Lavaux
// Modified by:
// Purpose: URL parser
// Author: Guilhem Lavaux
// Modified by:
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
+#ifndef WX_PRECOMP
+ #include "wx/list.h"
+#endif
+
#include "wx/utils.h"
#include "wx/module.h"
#include "wx/url.h"
#include "wx/utils.h"
#include "wx/module.h"
#include "wx/url.h"
return;
wxString hostname = tmp_str(0, pos),
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))
wxIPV4address addr;
if (!addr.Hostname(hostname))
return;
hostname = tmp_str(0, pos);
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);
addr.Hostname(hostname);
addr.Service(port);
#ifndef WX_PRECOMP
#include "wx/object.h"
#ifndef WX_PRECOMP
#include "wx/object.h"
#include "wx/hash.h"
#endif
#include "wx/xti.h"
#include "wx/xml/xml.h"
#include "wx/tokenzr.h"
#include "wx/hash.h"
#endif
#include "wx/xti.h"
#include "wx/xml/xml.h"
#include "wx/tokenzr.h"
#include <string.h>
#include "wx/beforestd.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
// 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
#if wxUSE_ACCEL
#ifndef WX_PRECOMP
#endif // WX_PRECOMP
#include "wx/accel.h"
#endif // WX_PRECOMP
#include "wx/accel.h"
#if wxUSE_HELP && !defined(__WXWINCE__) && (!defined(__WXMAC__) || defined(__WXMAC_OSX__))
#ifndef WX_PRECOMP
#if wxUSE_HELP && !defined(__WXWINCE__) && (!defined(__WXMAC__) || defined(__WXMAC_OSX__))
#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/utils.h"
#include "wx/string.h"
#include "wx/utils.h"
#include "wx/intl.h"
#include "wx/msgdlg.h"
#include "wx/choicdlg.h"
#include "wx/intl.h"
#include "wx/msgdlg.h"
#include "wx/choicdlg.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/gtk/utilsres.cpp
// Purpose:
// Author: Robert Roebling
// Id: $Id$
// Purpose:
// Author: Robert Roebling
// Id: $Id$
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// 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/utils.h"
#include "wx/string.h"
#include "wx/log.h"
#include "wx/config.h"
#include "wx/app.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 );
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 );
wxFileConfig conf( wxTheApp->GetAppName(), wxTheApp->GetVendorName(), filename );
bool wxGetResource(const wxString& section, const wxString& entry, wxChar **value, const wxString& file )
{
wxString filename( file );
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 );
wxFileConfig conf( wxTheApp->GetAppName(), wxTheApp->GetVendorName(), filename );
wxString result;
if (conf.Read( entry, &result ))
{
wxString result;
if (conf.Read( entry, &result ))
{
{
wxChar *s = new wxChar[result.Len()+1];
wxStrcpy( s, result.c_str() );
*value = s;
{
wxChar *s = new wxChar[result.Len()+1];
wxStrcpy( s, result.c_str() );
*value = s;
}
bool wxGetResource(const wxString& section, const wxString& entry, float *value, const wxString& file )
}
bool wxGetResource(const wxString& section, const wxString& entry, float *value, const wxString& file )
{
*value = (float)wxStrtod(s, NULL);
delete[] s;
{
*value = (float)wxStrtod(s, NULL);
delete[] s;
}
bool wxGetResource(const wxString& section, const wxString& entry, long *value, const wxString& file )
}
bool wxGetResource(const wxString& section, const wxString& entry, long *value, const wxString& file )
{
*value = wxStrtol(s, NULL, 10);
delete[] s;
{
*value = wxStrtol(s, NULL, 10);
delete[] s;
}
bool wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file )
}
bool wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file )
{
*value = (int)wxStrtol(s, NULL, 10);
delete[] s;
{
*value = (int)wxStrtol(s, NULL, 10);
delete[] s;
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/gtk1/utilsres.cpp
// Purpose:
// Author: Robert Roebling
// Id: $Id$
// Purpose:
// Author: Robert Roebling
// Id: $Id$
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// 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/utils.h"
#include "wx/string.h"
#include "wx/log.h"
#include "wx/config.h"
#include "wx/app.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 );
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 );
wxFileConfig conf( wxTheApp->GetAppName(), wxTheApp->GetVendorName(), filename );
bool wxGetResource(const wxString& section, const wxString& entry, wxChar **value, const wxString& file )
{
wxString filename( file );
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 );
wxFileConfig conf( wxTheApp->GetAppName(), wxTheApp->GetVendorName(), filename );
wxString result;
if (conf.Read( entry, &result ))
{
wxString result;
if (conf.Read( entry, &result ))
{
{
wxChar *s = new wxChar[result.Len()+1];
wxStrcpy( s, result.c_str() );
*value = s;
{
wxChar *s = new wxChar[result.Len()+1];
wxStrcpy( s, result.c_str() );
*value = s;
}
bool wxGetResource(const wxString& section, const wxString& entry, float *value, const wxString& file )
}
bool wxGetResource(const wxString& section, const wxString& entry, float *value, const wxString& file )
{
*value = (float)wxStrtod(s, NULL);
delete[] s;
{
*value = (float)wxStrtod(s, NULL);
delete[] s;
}
bool wxGetResource(const wxString& section, const wxString& entry, long *value, const wxString& file )
}
bool wxGetResource(const wxString& section, const wxString& entry, long *value, const wxString& file )
{
*value = wxStrtol(s, NULL, 10);
delete[] s;
{
*value = wxStrtol(s, NULL, 10);
delete[] s;
}
bool wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file )
}
bool wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file )
{
*value = (int)wxStrtol(s, NULL, 10);
delete[] s;
{
*value = (int)wxStrtol(s, NULL, 10);
delete[] s;
#if wxUSE_HTML && wxUSE_STREAMS
#ifndef WXPRECOMP
#if wxUSE_HTML && wxUSE_STREAMS
#ifndef WXPRECOMP
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/dcclient.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/html/htmlwin.h"
#include "wx/html/htmlproc.h"
#include "wx/clipbrd.h"
#include "wx/dataobj.h"
#include "wx/timer.h"
#include "wx/clipbrd.h"
#include "wx/dataobj.h"
#include "wx/timer.h"
FORCE_WXHTML_MODULES()
#endif // wxUSE_HTML
FORCE_WXHTML_MODULES()
#endif // wxUSE_HTML
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#endif
#ifndef WX_PRECOMP
#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"
#endif
#include "wx/gdiobj.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"
+#ifndef WX_PRECOMP
+ #include "wx/list.h"
+#endif
+
#include "wx/cursor.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/cursor.h"
#include "wx/app.h"
#include "wx/utils.h"
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
+// Name: src/msw/bitmap.cpp
// Purpose: wxBitmap
// Author: Julian Smart
// Modified by:
// Purpose: wxBitmap
// 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
-#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
#include "wx/gdiobj.h"
#endif
#ifndef WX_PRECOMP
#endif
#ifndef WX_PRECOMP
#include "wx/list.h"
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/list.h"
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#endif
#ifndef WX_PRECOMP
#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"
#endif
#include "wx/msw/private.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/msw/timer.cpp
// Purpose: wxTimer implementation
// Author: Julian Smart
// Modified by: Vadim Zeitlin (use hash map instead of list, global rewrite)
// Purpose: wxTimer implementation
// Author: Julian Smart
// Modified by: Vadim Zeitlin (use hash map instead of list, global rewrite)
#if wxUSE_TIMER
#ifndef WX_PRECOMP
#if wxUSE_TIMER
#ifndef WX_PRECOMP
#include "wx/event.h"
#include "wx/app.h"
#include "wx/intl.h"
#include "wx/event.h"
#include "wx/app.h"
#include "wx/intl.h"
+#ifndef WX_PRECOMP
+ #include "wx/list.h"
+#endif
+
#if !wxUSE_PROTOCOL_HTTP
#include "wx/protocol/protocol.h"
#if !wxUSE_PROTOCOL_HTTP
#include "wx/protocol/protocol.h"
#endif
#include "wx/string.h"
#endif
#include "wx/string.h"
#include "wx/utils.h"
#include "wx/module.h"
#include "wx/url.h"
#include "wx/utils.h"
#include "wx/module.h"
#include "wx/url.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/os2/bitmap.cpp
// Purpose: wxBitmap
// Author: David Webster
// Modified by:
// Purpose: wxBitmap
// Author: David Webster
// Modified by:
#include "wx/os2/private.h"
#include "wx/log.h"
#include "wx/os2/private.h"
#include "wx/log.h"
-//#include "wx/msw/dib.h"
#include "wx/image.h"
#include "wx/xpmdecod.h"
#include "wx/image.h"
#include "wx/xpmdecod.h"
//
} // end of wxBitmap::Init
//
} // end of wxBitmap::Init
-bool wxBitmap::CopyFromIconOrCursor(
- const wxGDIImage& rIcon
-)
+bool wxBitmap::CopyFromIconOrCursor(const wxGDIImage& rIcon)
{
HPOINTER hIcon = (HPOINTER)rIcon.GetHandle();
POINTERINFO SIconInfo;
{
HPOINTER hIcon = (HPOINTER)rIcon.GetHandle();
POINTERINFO SIconInfo;
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#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"
#endif
#include "wx/os2/private.h"
memset(&m_vBundle, '\0', sizeof(AREABUNDLE));
} // end of wxBrushRefData::wxBrushRefData
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;
{
m_nStyle = rData.m_nStyle;
m_vStipple = rData.m_vStipple;
RealizeResource();
} // end of wxBrush::wxBrush
RealizeResource();
} // end of wxBrush::wxBrush
-wxBrush::wxBrush(
- const wxBitmap& rStipple
-)
+wxBrush::wxBrush(const wxBitmap& rStipple)
{
m_refData = new wxBrushRefData;
{
m_refData = new wxBrushRefData;
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#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"
#endif
#include "wx/os2/private.h"
m_vEncoding = vEncoding;
m_hFont = 0;
m_vEncoding = vEncoding;
m_hFont = 0;
- m_bNativeFontInfoOk = FALSE;
+ m_bNativeFontInfoOk = false;
m_pFM = (PFONTMETRICS)NULL;
m_hPS = NULLHANDLE;
m_nNumFonts = 0;
m_pFM = (PFONTMETRICS)NULL;
m_hPS = NULLHANDLE;
m_nNumFonts = 0;
m_hPS = (HPS)hPS;
m_nFontId = 0;
m_hPS = (HPS)hPS;
m_nFontId = 0;
m_pFM = (PFONTMETRICS)NULL;
m_nNumFonts = 0;
} // end of wxFontRefData::Init
m_pFM = (PFONTMETRICS)NULL;
m_nNumFonts = 0;
} // end of wxFontRefData::Init
wxString sToken = vTokenizer.GetNextToken();
if (sToken != _T('0'))
wxString sToken = vTokenizer.GetNextToken();
if (sToken != _T('0'))
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
fm.lEmHeight = lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
fm.lEmHeight = lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
fa.lAveCharWidth = lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
fa.lAveCharWidth = lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
fa.fsSelection = (USHORT)lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
fa.fsSelection = (USHORT)lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
fa.fsType = (USHORT)lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
fa.fsType = (USHORT)lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
fa.fsFontUse = (USHORT)lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
fa.fsFontUse = (USHORT)lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
fa.idRegistry = (USHORT)lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
fa.idRegistry = (USHORT)lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
fa.usCodePage = (USHORT)lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
fa.usCodePage = (USHORT)lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
fa.lMatch = lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
fa.lMatch = lVal;
sToken = vTokenizer.GetNextToken();
if (!sToken.ToLong(&lVal))
fn.usWeightClass = (USHORT)lVal;
sToken = vTokenizer.GetNextToken();
if(!sToken)
fn.usWeightClass = (USHORT)lVal;
sToken = vTokenizer.GetNextToken();
if(!sToken)
wxStrcpy((wxChar*)fa.szFacename, sToken.c_str());
return true;
} // end of wxNativeFontInfo::FromString
wxStrcpy((wxChar*)fa.szFacename, sToken.c_str());
return true;
} // end of wxNativeFontInfo::FromString
bool wxFont::GetUnderlined() const
{
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
return M_FONTDATA->GetUnderlined();
} // end of wxFont::GetUnderlined
+#if wxUSE_PRINTING_ARCHITECTURE
+
#ifndef WX_PRECOMP
#include <stdio.h>
#include "wx/list.h"
#ifndef WX_PRECOMP
#include <stdio.h>
#include "wx/list.h"
#include "wx/app.h"
#endif
#include "wx/app.h"
#endif
-#if wxUSE_PRINTING_ARCHITECTURE
-
#include "wx/os2/printos2.h"
#include "wx/generic/prntdlgg.h"
#include "wx/os2/printos2.h"
#include "wx/generic/prntdlgg.h"
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/event.h"
#include "wx/app.h"
#endif
#include "wx/event.h"
#include "wx/app.h"
#endif
(void)m_owner->ProcessEvent(vEvent);
} // end of wxTimer::Notify
(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") );
{
wxLogSysError(_("Couldn't create a timer"));
{
wxLogSysError(_("Couldn't create a timer"));
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#endif
#ifndef WX_PRECOMP
#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)
#endif
#include "wx/gdiobj.h"
IMPLEMENT_DYNAMIC_CLASS(wxGDIObject, wxObject)
-
-/*
-void wxGDIObject::IncrementResourceUsage(void)
-{
-};
-
-void wxGDIObject::DecrementResourceUsage(void)
-{
-};
-
-*/
#if wxUSE_TIMER
#ifndef WX_PRECOMP
#if wxUSE_TIMER
#ifndef WX_PRECOMP
#include "wx/event.h"
#include "wx/app.h"
#include "wx/intl.h"
#include "wx/event.h"
#include "wx/app.h"
#include "wx/intl.h"