]> git.saurik.com Git - wxWidgets.git/commitdiff
provide deprectaed LoadFile() and FindHandler() overloads taking long, otherwise...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 24 Jun 2008 23:43:59 +0000 (23:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 24 Jun 2008 23:43:59 +0000 (23:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/image.h

index 60aff69ce65c842f756782edbc6253b6f492fd5a..11e835c3126eb3b3bea4985f09f2ee179e29bfe7 100644 (file)
@@ -417,6 +417,7 @@ public:
     static wxImageHandler *FindHandler( const wxString& name );
     static wxImageHandler *FindHandler( const wxString& extension, wxBitmapType imageType );
     static wxImageHandler *FindHandler( wxBitmapType imageType );
+
     static wxImageHandler *FindHandlerMime( const wxString& mimetype );
 
     static wxString GetImageExtWildcard();
@@ -427,6 +428,21 @@ public:
     static HSVValue RGBtoHSV(const RGBValue& rgb);
     static RGBValue HSVtoRGB(const HSVValue& hsv);
 
+#ifdef WXWIN_COMPATIBILITY_2_8
+    wxDEPRECATED(
+        bool LoadFile(const wxString& name, long type, int index = -1)
+        {
+            return LoadFile(name, (wxBitmapType)type, index);
+        }
+    )
+
+    wxDEPRECATED(
+        static wxImageHandler *FindHandler(long imageType)
+        {
+            return FindHandler((wxBitmapType)imageType);
+        }
+    )
+#endif // WXWIN_COMPATIBILITY_2_8
 
 protected:
     static wxList   sm_handlers;