Patch #3041 2010-07-27 18:32

weiti83

Adding wxFileName::IsFileWritable for scripting
Download
3041-Adding_wxFileN.patch (789 bytes)
Category
Application::FeatureAdd
Status
Accepted
Close date
2010-08-11 14:19
Assigned to
mortenmacfly
Index: sc_wxtypes.cpp
===================================================================
--- sc_wxtypes.cpp    (Revision 6378)
+++ sc_wxtypes.cpp    (Arbeitskopie)
@@ -236,6 +236,7 @@
 #else
         typedef bool(wxFileName::*WXFN_SETCWD)();
 #endif
+    typedef bool(wxFileName::*WXFN_ISFILEWRITEABLE)()const;
 
         SqPlus::SQClassDef<wxFileName>("wxFileName").
                 emptyCtor().
@@ -279,6 +280,7 @@
                 func(&wxFileName::SetFullName, "SetFullName").
                 func(&wxFileName::SetName, "SetName").
-                func(&wxFileName::SetVolume, "SetVolume");
+                func(&wxFileName::SetVolume, "SetVolume").
+                func<WXFN_ISFILEWRITEABLE>(&wxFileName::IsFileWritable,"IsFileWritable");
 
         /////////////
         // wxPoint //