]> git.saurik.com Git - wxWidgets.git/commitdiff
more wxBitmapType-related backward compatibility fixes
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 25 Jun 2008 01:02:04 +0000 (01:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 25 Jun 2008 01:02:04 +0000 (01:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/iconbndl.h
include/wx/image.h
include/wx/position.h

index f01293ca75f8f15935f461aeb97f0c648c5b3cbc..29a00000b5a7c8b569da7ed7c964a0de35d1808f 100644 (file)
@@ -84,6 +84,20 @@ public:
     // check if we have any icons at all
     bool IsEmpty() const { return GetIconCount() == 0; }
 
+#ifdef WXWIN_COMPATIBILITY_2_8
+    wxDEPRECATED( void AddIcon(const wxString& file, long type)
+        {
+            AddIcon(file, (long)type);
+        }
+    )
+
+    wxDEPRECATED( wxIconBundle(const wxString& file, long type)
+        {
+            AddIcon(file, (wxBitmapType)type);
+        }
+    )
+#endif // WXWIN_COMPATIBILITY_2_8
+
 protected:
     virtual wxGDIRefData *CreateGDIRefData() const;
     virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
index 11e835c3126eb3b3bea4985f09f2ee179e29bfe7..a813e888409145a7d156e1203ca1932cb359aabf 100644 (file)
@@ -112,6 +112,12 @@ public:
     wxBitmapType GetType() const { return m_type; }
     const wxString& GetMimeType() const { return m_mime; }
 
+#ifdef WXWIN_COMPATIBILITY_2_8
+    wxDEPRECATED(
+        void SetType(long type) { SetType((wxBitmapType)type); }
+    )
+#endif // WXWIN_COMPATIBILITY_2_8
+
 protected:
 #if wxUSE_STREAMS
     virtual bool DoCanRead( wxInputStream& stream ) = 0;
@@ -429,6 +435,36 @@ public:
     static RGBValue HSVtoRGB(const HSVValue& hsv);
 
 #ifdef WXWIN_COMPATIBILITY_2_8
+    wxDEPRECATED(
+        wxImage(const wxString& name, long type, int index = -1)
+        {
+            LoadFile(name, (wxBitmapType)type, index);
+        }
+    )
+
+#if wxUSE_STREAMS
+    wxDEPRECATED(
+        wxImage(wxInputStream& stream, long type, int index = -1)
+        {
+            LoadFile(stream, (wxBitmapType)type, index);
+        }
+    )
+
+    wxDEPRECATED(
+        bool LoadFile(wxInputStream& stream, long type, int index = -1)
+        {
+            return LoadFile(stream, (wxBitmapType)type, index);
+        }
+    )
+
+    wxDEPRECATED(
+        bool SaveFile(wxOutputStream& stream, long type) const
+        {
+            return SaveFile(stream, (wxBitmapType)type);
+        }
+    )
+#endif // wxUSE_STREAMS
+
     wxDEPRECATED(
         bool LoadFile(const wxString& name, long type, int index = -1)
         {
@@ -436,6 +472,20 @@ public:
         }
     )
 
+    wxDEPRECATED(
+        bool SaveFile(const wxString& name, long type) const
+        {
+            return SaveFile(name, (wxBitmapType)type);
+        }
+    )
+
+    wxDEPRECATED(
+        static wxImageHandler *FindHandler(const wxString& ext, long type)
+        {
+            return FindHandler(ext, (wxBitmapType)type);
+        }
+    )
+
     wxDEPRECATED(
         static wxImageHandler *FindHandler(long imageType)
         {
index 50d3987669f257132322e1f5af0cd5476c190052..7b7cdbf38e4e44c19f7e94ff10e063515221ffa6 100644 (file)
@@ -13,7 +13,7 @@
 
 #include "wx/gdicmn.h"
 
-class wxPosition
+class WXDLLIMPEXP_CORE wxPosition
 {
 public:
     wxPosition() : m_row(0), m_column(0) {}