Hej Here is the first release of the RenameMoveCopy routine. Please test it and do come with suggestions for features/enhancements. Gnome HIG I am not sure I am following, neither proper translation standards. This is my first try at coding in Gnome and C# so bear with me please :) The command I used to create the diff files were as follows diff -Naur ../f-spot-0.0.13.orig/src/Makefile src/Makefile > Makefile.diff diff -Naur ../f-spot-0.0.13.orig/src/MainWindow.cs src/MainWindow.cs > MainWindow.cs.diff diff -Naur ../f-spot-0.0.13.orig/src/PhotoStore.cs src/PhotoStore.cs > PhotoStore.cs.diff diff -Naur ../f-spot-0.0.13.orig/src/f-spot.glade src/f-spot.glade > f-spot.glade.diff and then I just copied the RenameMoveCopy.cs file I based everything on F-Spot 0.0.13 The changes I introduced to PhotoStore consist of one new method (RenameFile (string new_base)) which mainly changes the base name (excluding the version name) from the old to the new_base. This for all the various versions each photo has. I also modified the commit method to update the path and name as well. Good luck /Bengt A debug trace from one of my runs... Renaming /home/nrjbeth/tmp/20030426_Jasmine_ 006.jpg ===> /home/nrjbeth/tmp/tmp1/2003/04/20030424.071006-010.jpg Renaming /home/nrjbeth/tmp/20030426_Jasmine_ 006 (ver1a).jpg ===> /home/nrjbeth/tmp/tmp1/2003/04/20030424.071006-010 (ver1a).jpg Renaming /home/nrjbeth/tmp/20030819_Jasmine_ 009.jpg ===> /home/nrjbeth/tmp/tmp1/2003/08/20030817.104927-011.jpg Renaming /home/nrjbeth/tmp/20030819_Jasmine_ 009 (ver2a).jpg ===> /home/nrjbeth/tmp/tmp1/2003/08/20030817.104927-011 (ver2a).jpg Renaming /home/nrjbeth/tmp/20030819_Jasmine_ 009 (ver2b).jpg ===> /home/nrjbeth/tmp/tmp1/2003/08/20030817.104927-011 (ver2b).jpg Renaming /home/nrjbeth/tmp/20030822_Jasmine 002a.jpg ===> /home/nrjbeth/tmp/tmp1/2003/08/20030822.043545-012.jpg Renaming /home/nrjbeth/tmp/20030822_Jasmine 002a (ver3a).jpg ===> /home/nrjbeth/tmp/tmp1/2003/08/20030822.043545-012 (ver3a).jpg Renaming /home/nrjbeth/tmp/20030822_Jasmine 002a (ver4b).jpg ===> /home/nrjbeth/tmp/tmp1/2003/08/20030822.043545-012 (ver4b).jpg Renaming /home/nrjbeth/tmp/20030822_Jasmine 002a (ver3c).jpg ===> /home/nrjbeth/tmp/tmp1/2003/08/20030822.043545-012 (ver3c).jpg Renaming /home/nrjbeth/tmp/20040131_JadeJasmine_China_1.JPG ===> /home/nrjbeth/tmp/tmp1/2004/01/20040131.022805-013.JPG -- Bengt Thuree bengt thuree com www.thuree.com/bt
Attachment:
f-spot_rename.zip
Description: Zip archive