]> git.saurik.com Git - wxWidgets.git/commitdiff
removed 2.0 compatibility stuff (patch 1054261)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 11 Nov 2004 18:59:51 +0000 (18:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 11 Nov 2004 18:59:51 +0000 (18:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 files changed:
include/wx/mac/setup0.h
include/wx/msw/setup0.h
include/wx/msw/setup_microwin.h
include/wx/msw/wince/setup.h
include/wx/os2/icon.h
include/wx/os2/setup0.h
include/wx/palmos/setup0.h
include/wx/univ/setup0.h
samples/richedit/wxLayout.cpp
setup.h.in
setup.h_vms
src/msw/font.cpp
utils/configtool/configs/wxwin250.wxs

index 7d3316487f2038f12e75edd4cc804c3e1c3e55fe..210495eac6d9960524a8c68da368eb2b847710c9 100644 (file)
 // 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.
 //
index eac70a3750d221f1781abc561f43c7cbfb1e0db9..70471a13493342dbfba761b8a230218497a22016 100644 (file)
 // 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.
 //
index d241ea6762f533652c0101400b093238faab7371..8f291d8ecd885822bebef8e203c3c3832b50de5f 100644 (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.
 // 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.
 //
index 86c960cffc2f31086a6a5d08682d9da17e0609ee..c691ae3137d82c1d875be2b85b704ef22e422848 100644 (file)
 // 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.
 //
index ca57b257cc809ad7b0b51cb21ac3ff30bdcbac3f..2f000c4aa4b08299050d44e09b1990868f579d2f 100644 (file)
 // 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
 {
index 3116862a7f7156ec8b6ec3358e4dd7d356f71cc6..9b4e88ed66eaa2d3c5c5e739c0eb1a97759d18f4 100644 (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
 
index 9743a02702f4c651c70c1f5c447baa36e1c0f797..a5b7d68066e9a7c2c2cc916a88fb3d52172098a3 100644 (file)
 // 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.
 //
index fc1d87c29b16326b7fe8f14ffc4890f6c8e06761..a8eb0fec27d06196660a5f86a292e92f7688676e 100644 (file)
 // 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.
 //
 #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,
index 034eefb85b97e2bf4ce4925ca066a69e2291895d..183c9e59c63f04a5e87bedfa69ec5f77cb56a827 100644 (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);
index 6dfba67f8bcc07d5192ca6308f7af840d5709a73..7a0753391d3f340c178002880b2800e0c1fb896c 100644 (file)
 #define wxUSE_ODBC 0
 #define wxUSE_BUILTIN_IODBC 0
 #define wxODBC_FWD_ONLY_CURSORS 1
-#define wxODBC_BACKWARD_COMPATABILITY 0
 /*
  * Use freetype
  */
index f82c4156e837386d130a81829054baeb6b18bb45..e6d40f1cedf4575227ed483d05fe8c3100d82d18 100644 (file)
 #define wxUSE_ODBC 1
 #define wxUSE_BUILTIN_IODBC 0
 #define wxODBC_FWD_ONLY_CURSORS 1
-#define wxODBC_BACKWARD_COMPATABILITY 0
 /*
  * Use freetype
  */
index 7a718ff004639cffc08ae026b9b6c2b2dcc7b8a3..9b40d9cb927fe601f325e2c5c6a16f1ce9c9e4a3 100644 (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)
index c6dd6586be2b4aa4b0a087ccbe03915af792aa88..42e3c4c1ec0e355bc3395730c7f302b819f7945d 100644 (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>