Feature #5049 2010-07-01 08:55

weiti83

Adding wxFileName::IsFileWritable

Diff:

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 //
Category
 
Status
Open
Close date
 
Assigned to
 
weiti83 2010-07-01 08:55

the function wxFileName::IsFileWritable is very useful for scripts. is it possible to add it to the trunk?

ollydbg 2010-12-07 09:37

I think you can post in the "patches" panel. or post a message to the codeblocks forum.