Load/Save as uncompressed fz file #3168
This pull request starts dealing with issue #3132.
* Allow to save as *.fz file type: - Show "Fritzing uncompressed (*.fz)" in the "Save As" file type dialog. - saveBundledNonAtomicEntity function allows to save an *.fz 'bundle' by skipping the compression step (saves all files in the same directory). * Allow to load a *.fz file: - Drop readonly warning. * Rename private variable ___fritzingExtensions___ to p_fritzingExtensions as variables starting with underscore are compiler reserved in misc.cc. TO DO: - Deal with overwriting existing auxiliary files. Maybe using a file + subdirectory approach would be more convenient? * mysketch.fz * mysketch.fz_FILES/ - Should loaded files be copied to another directory just like *.fzz files are extracted to another directory? - Should the save as uncompressed option be available for other bundled types (such as custom parts...)
We (@ptaffet, myself and others) would like to save uncompressed fz files in order to be able to have a text-based format suitable for version control systems (such as git).
This change would allow easy Fritzing/Git (or github) interaction and would be very welcome by those of us who keep our arduino code in version control systems next to our schematics and documentation.
For sure we agree that for general releases, fzz files are the preferred way of saving a schematic (as you say parts are not lost).
I hope this makes sense to you, feel free to ask any question or discuss :-)
ok, i checked your changes, and i really like how it works.
thanks for this idea and the work so far!