noreply at rubyforge.org
2009-Aug-19 12:52 UTC
[wxruby-development] [ wxruby-Patches-26953 ] Add the wxMemoryFSHandler and associated functions to wxRuby. Used to load XRC from memory
Patches item #26953, was opened at 19/08/2009 14:52 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=220&aid=26953&group_id=35 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Pascal Hurni (phi) Assigned to: Nobody (None) Summary: Add the wxMemoryFSHandler and associated functions to wxRuby. Used to load XRC from memory Initial Comment: Using XRC is great, we may design dialog layouts in a WYSIWYG editor. Now, loading the layout is currently only supported from real files. This is a huge limitation. Think of receiving a layout from a network connection. Currently you''ll have to store it in a temp file, load the design with XmlResource, delete the temp file. This is overkill since WxWidgets has an in-house virtual file system. The patch I propose adds the ability to wxRuby to manage those ''memory'' files. I chose to add some global functions that delegates to the real wxMemoryFSHandler static methods. This is to avoid from having to swig the entire wxMemoryFSHandler class (and its parents). Please review the patch and let me know if anything should be changed. BTW, may this patch be applied (if approved) before the next public release (2.0.1?), Thanx. Regards, Pascal ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=220&aid=26953&group_id=35