compilation fixes for wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
wxWindows 2 Change Log
|
wxWindows 2 Change Log
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
|
2.4.0
|
||||||
|
-----
|
||||||
|
|
||||||
|
wxBase:
|
||||||
|
|
||||||
|
- wxMimeTypesManager now can create file associations too
|
||||||
|
|
||||||
2.3.0
|
2.3.0
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
@@ -72,7 +72,7 @@ enum wxFontWeight
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
class WXDLLEXPORT wxFontRefData;
|
class WXDLLEXPORT wxFontRefData;
|
||||||
class WXDLLEXPORT wxNativeFontInfo;
|
struct WXDLLEXPORT wxNativeFontInfo;
|
||||||
|
|
||||||
class WXDLLEXPORT wxFontBase : public wxGDIObject
|
class WXDLLEXPORT wxFontBase : public wxGDIObject
|
||||||
{
|
{
|
||||||
|
@@ -44,10 +44,11 @@ public:
|
|||||||
{
|
{
|
||||||
Init();
|
Init();
|
||||||
|
|
||||||
(void)Create(info.pointSize, info.family, info.style, info.weight,
|
Create(info);
|
||||||
info.underlined, info.faceName, info.encoding);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxFont(const wxString& fontDesc);
|
||||||
|
|
||||||
bool Create(int size,
|
bool Create(int size,
|
||||||
int family,
|
int family,
|
||||||
int style,
|
int style,
|
||||||
@@ -56,6 +57,8 @@ public:
|
|||||||
const wxString& face = wxEmptyString,
|
const wxString& face = wxEmptyString,
|
||||||
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
|
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
|
||||||
|
|
||||||
|
bool Create(const wxNativeFontInfo& info);
|
||||||
|
|
||||||
virtual ~wxFont();
|
virtual ~wxFont();
|
||||||
|
|
||||||
// assignment
|
// assignment
|
||||||
|
@@ -30,9 +30,10 @@
|
|||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/font.h"
|
#include "wx/font.h"
|
||||||
#include "wx/fontutil.h"
|
|
||||||
#endif // WX_PRECOMP
|
#endif // WX_PRECOMP
|
||||||
|
|
||||||
|
#include "wx/fontutil.h" // for wxNativeFontInfo
|
||||||
|
|
||||||
#include "wx/tokenzr.h"
|
#include "wx/tokenzr.h"
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
@@ -32,9 +32,9 @@
|
|||||||
#include "wx/app.h"
|
#include "wx/app.h"
|
||||||
#include "wx/log.h"
|
#include "wx/log.h"
|
||||||
#include "wx/intl.h"
|
#include "wx/intl.h"
|
||||||
#include "wx/fontutil.h"
|
|
||||||
#endif // PCH
|
#endif // PCH
|
||||||
|
|
||||||
|
#include "wx/fontutil.h"
|
||||||
#include "wx/fontmap.h"
|
#include "wx/fontmap.h"
|
||||||
|
|
||||||
#if wxUSE_CONFIG
|
#if wxUSE_CONFIG
|
||||||
|
@@ -96,7 +96,6 @@ wxBrush wxNullBrush;
|
|||||||
wxPalette wxNullPalette;
|
wxPalette wxNullPalette;
|
||||||
wxFont wxNullFont;
|
wxFont wxNullFont;
|
||||||
wxColour wxNullColour;
|
wxColour wxNullColour;
|
||||||
wxNativeFontInfo wxNullNativeFontInfo;
|
|
||||||
|
|
||||||
// Default window names
|
// Default window names
|
||||||
const wxChar *wxControlNameStr = wxT("control");
|
const wxChar *wxControlNameStr = wxT("control");
|
||||||
|
@@ -29,7 +29,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include <stdio.h>
|
|
||||||
#include "wx/setup.h"
|
#include "wx/setup.h"
|
||||||
#include "wx/list.h"
|
#include "wx/list.h"
|
||||||
#include "wx/utils.h"
|
#include "wx/utils.h"
|
||||||
@@ -38,6 +37,8 @@
|
|||||||
#include "wx/log.h"
|
#include "wx/log.h"
|
||||||
#endif // WX_PRECOMP
|
#endif // WX_PRECOMP
|
||||||
|
|
||||||
|
#include "wx/fontutil.h"
|
||||||
|
|
||||||
#include "wx/msw/private.h"
|
#include "wx/msw/private.h"
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)
|
IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)
|
||||||
@@ -166,6 +167,19 @@ void wxFont::Init()
|
|||||||
wxTheFontList->Append(this);
|
wxTheFontList->Append(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool wxFont::Create(const wxNativeFontInfo& info)
|
||||||
|
{
|
||||||
|
return Create(info.pointSize, info.family, info.style, info.weight,
|
||||||
|
info.underlined, info.faceName, info.encoding);
|
||||||
|
}
|
||||||
|
|
||||||
|
wxFont::wxFont(const wxString& fontdesc)
|
||||||
|
{
|
||||||
|
wxNativeFontInfo info;
|
||||||
|
if ( info.FromString(fontdesc) )
|
||||||
|
(void)Create(info);
|
||||||
|
}
|
||||||
|
|
||||||
/* Constructor for a font. Note that the real construction is done
|
/* Constructor for a font. Note that the real construction is done
|
||||||
* in wxDC::SetFont, when information is available about scaling etc.
|
* in wxDC::SetFont, when information is available about scaling etc.
|
||||||
*/
|
*/
|
||||||
|
@@ -32,6 +32,7 @@
|
|||||||
#include "wx/font.h"
|
#include "wx/font.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "wx/fontutil.h"
|
||||||
#include "wx/fontenum.h"
|
#include "wx/fontenum.h"
|
||||||
#include "wx/fontmap.h"
|
#include "wx/fontmap.h"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user