removed 2.0 compatibility stuff (patch 1054261)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2004-11-11 18:59:51 +00:00
parent 16ca2e0fac
commit 81152407d0
13 changed files with 7 additions and 131 deletions

View File

@ -44,27 +44,6 @@
// Recommended setting: 0 (please update your code)
#define WXWIN_COMPATIBILITY_2_4 1
// In wxMSW version 2.1.11 and earlier, wxIcon always derives from wxBitmap,
// but this is very dangerous because you can mistakenly pass an icon instead
// of a bitmap to a function taking "const wxBitmap&" - which will *not* work
// because an icon is not a valid bitmap
//
// Starting from 2.1.12, you have the choice under this backwards compatible
// behaviour (your code will still compile, but probably won't behave as
// expected!) and not deriving wxIcon class from wxBitmap, but providing a
// conversion ctor wxBitmap(const wxIcon&) instead.
//
// Recommended setting: 0
#define wxICON_IS_BITMAP 0
// Define as 1 for font size to be backward compatible to 1.63 and earlier.
// 1.64 and later define point sizes to be compatible with Windows.
//
// Default is 0
//
// Recommended setting: 0
#define wxFONT_SIZE_COMPATIBILITY 0
// Set to 0 for accurate dialog units, else 1 to be as per 2.1.16 and before.
// If migrating between versions, your dialogs may seem to shrink.
//

View File

@ -44,14 +44,6 @@
// Recommended setting: 0 (please update your code)
#define WXWIN_COMPATIBILITY_2_4 1
// Define as 1 for font size to be backward compatible to 1.63 and earlier.
// 1.64 and later define point sizes to be compatible with Windows.
//
// Default is 0
//
// Recommended setting: 0
#define wxFONT_SIZE_COMPATIBILITY 0
// Set to 0 for accurate dialog units, else 1 to be as per 2.1.16 and before.
// If migrating between versions, your dialogs may seem to shrink.
//

View File

@ -28,7 +28,7 @@
// compatibility settings
// ----------------------------------------------------------------------------
// This setting determines the compatibility with 2.0 API: set it to 1 to
// This setting determines the compatibility with 2.2 API: set it to 1 to
// enable it
//
// Default is 1.
@ -36,27 +36,6 @@
// Recommended setting: 0 (please update your code instead!)
#define WXWIN_COMPATIBILITY_2_2 1
// in wxMSW version 2.1.11 and earlier, wxIcon always derives from wxBitmap,
// but this is very dangerous because you can mistakenly pass an icon instead
// of a bitmap to a function taking "const wxBitmap&" - which will *not* work
// because an icon is not a valid bitmap
//
// Starting from 2.1.12, you have the choice under this backwards compatible
// behaviour (your code will still compile, but probably won't behave as
// expected!) and not deriving wxIcon class from wxBitmap, but providing a
// conversion ctor wxBitmap(const wxIcon&) instead.
//
// Recommended setting: 0
#define wxICON_IS_BITMAP 0
// Define as 1 for font size to be backward compatible to 1.63 and earlier.
// 1.64 and later define point sizes to be compatible with Windows.
//
// Default is 0
//
// Recommended setting: 0
#define wxFONT_SIZE_COMPATIBILITY 0
// Set to 0 for accurate dialog units, else 1 to be as per 2.1.16 and before.
// If migrating between versions, your dialogs may seem to shrink.
//

View File

@ -44,14 +44,6 @@
// Recommended setting: 0 (please update your code)
#define WXWIN_COMPATIBILITY_2_4 1
// Define as 1 for font size to be backward compatible to 1.63 and earlier.
// 1.64 and later define point sizes to be compatible with Windows.
//
// Default is 0
//
// Recommended setting: 0
#define wxFONT_SIZE_COMPATIBILITY 0
// Set to 0 for accurate dialog units, else 1 to be as per 2.1.16 and before.
// If migrating between versions, your dialogs may seem to shrink.
//

View File

@ -16,23 +16,11 @@
// headers
// ----------------------------------------------------------------------------
// compatible (even if incorrect) behaviour by default: derive wxIcon from
// wxBitmap
#ifndef wxICON_IS_BITMAP
#define wxICON_IS_BITMAP 1
#endif
#include "wx/bitmap.h"
#if wxICON_IS_BITMAP
#include "wx/os2/gdiimage.h"
#define wxIconRefDataBase wxBitmapRefData
#define wxIconBase wxBitmap
#else
#include "wx/os2/gdiimage.h"
#define wxIconRefDataBase wxGDIImageRefData
#define wxIconBase wxGDIImage
#endif
#define wxIconRefDataBase wxGDIImageRefData
#define wxIconBase wxGDIImage
class WXDLLEXPORT wxIconRefData: public wxIconRefDataBase
{

View File

@ -18,9 +18,6 @@
#define wxUSE_EXCEPTIONS 1
// define this to 1 if you want icons to behave as bitmaps
#define wxICON_IS_BITMAP 0
// define this to 0 when building wxBase library
#define wxUSE_GUI 1

View File

@ -44,14 +44,6 @@
// Recommended setting: 0 (please update your code)
#define WXWIN_COMPATIBILITY_2_4 1
// Define as 1 for font size to be backward compatible to 1.63 and earlier.
// 1.64 and later define point sizes to be compatible with Windows.
//
// Default is 0
//
// Recommended setting: 0
#define wxFONT_SIZE_COMPATIBILITY 0
// Set to 0 for accurate dialog units, else 1 to be as per 2.1.16 and before.
// If migrating between versions, your dialogs may seem to shrink.
//

View File

@ -44,14 +44,6 @@
// Recommended setting: 0 (please update your code)
#define WXWIN_COMPATIBILITY_2_4 1
// Define as 1 for font size to be backward compatible to 1.63 and earlier.
// 1.64 and later define point sizes to be compatible with Windows.
//
// Default is 0
//
// Recommended setting: 0
#define wxFONT_SIZE_COMPATIBILITY 0
// Set to 0 for accurate dialog units, else 1 to be as per 2.1.16 and before.
// If migrating between versions, your dialogs may seem to shrink.
//
@ -868,10 +860,11 @@
#define wxUSE_DOC_VIEW_ARCHITECTURE 1
// Set to 0 to disable MDI document/view architecture
//
// Requires wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE
#define wxUSE_MDI_ARCHITECTURE 1
// Set to 0 to disable print/preview architecture code
//
#define wxUSE_PRINTING_ARCHITECTURE 1
// wxHTML sublibrary allows to display HTML in wxWindow programs and much,

View File

@ -183,14 +183,7 @@ void MyFrame::AddSampleText(wxLayoutList *llist)
llist->LineBreak();
llist->Insert(_T("Hello "));
wxBitmap *icon =
#if wxICON_IS_BITMAP
new wxIcon(Micon_xpm)
#else
new wxBitmap (wxIcon(Micon_xpm))
#endif
;
wxBitmap *icon = new wxBitmap (wxIcon(Micon_xpm));
llist->Insert(new wxLayoutObjectIcon(icon));
llist->SetFontWeight(wxBOLD);

View File

@ -256,7 +256,6 @@
#define wxUSE_ODBC 0
#define wxUSE_BUILTIN_IODBC 0
#define wxODBC_FWD_ONLY_CURSORS 1
#define wxODBC_BACKWARD_COMPATABILITY 0
/*
* Use freetype
*/

View File

@ -265,7 +265,6 @@
#define wxUSE_ODBC 1
#define wxUSE_BUILTIN_IODBC 0
#define wxODBC_FWD_ONLY_CURSORS 1
#define wxODBC_BACKWARD_COMPATABILITY 0
/*
* Use freetype
*/

View File

@ -506,16 +506,11 @@ wxFontEncoding wxNativeFontInfo::GetEncoding() const
void wxNativeFontInfo::SetPointSize(int pointsize)
{
#if wxFONT_SIZE_COMPATIBILITY
// Incorrect, but compatible with old wxWidgets behaviour
lf.lfHeight = (pointSize*ppInch)/72;
#else // wxFONT_SIZE_COMPATIBILITY
// FIXME: using the screen here results in incorrect font size calculation
// for printing!
const int ppInch = ::GetDeviceCaps(ScreenHDC(), LOGPIXELSY);
lf.lfHeight = -(int)((pointsize*((double)ppInch)/72.0) + 0.5);
#endif // wxFONT_SIZE_COMPATIBILITY/!wxFONT_SIZE_COMPATIBILITY
}
void wxNativeFontInfo::SetPixelSize(const wxSize& pixelSize)

View File

@ -1044,28 +1044,6 @@ Recommended setting: 0 (please update your code)
<help-topic></help-topic>
<notes></notes>
</setting>
<setting type="bool-check">
<active>1</active>
<enabled>1</enabled>
<name>wxFONT_SIZE_COMPATIBILITY</name>
<description>&lt;B&gt;Define as 1 for font size to be backward compatible to 1.63 and earlier.&lt;/B&gt;&lt;P&gt;
1.64 and later define point sizes to be compatible with Windows.&lt;P&gt;
Default is 0.
</description>
<default-state>1</default-state>
<requires></requires>
<precludes></precludes>
<enabled-if></enabled-if>
<enabled-if-not></enabled-if-not>
<indeterminate-if></indeterminate-if>
<exclusivity></exclusivity>
<context>__WXMSW__</context>
<configure-command></configure-command>
<help-topic>wxFont</help-topic>
<notes></notes>
</setting>
<setting type="bool-check">
<active>1</active>
<enabled>1</enabled>