Version: 1.2.0 (using KDE 4.4.5) OS: Linux Please add an extension aware rename/renumber? For example: image010.jpg -> image001.jpg image011.jpg -> image002.jpg image011.dng -> image002.dng image012.jpg -> image003.jpg instead of: image010.jpg -> image001.jpg image011.jpg -> image002.jpg image011.dng -> image003.dng image012.jpg -> image004.jpg Reproducible: Didn't try
SVN commit 1160586 by aclemens: Add new class AdvancedRenameManager that holds information about files to be renamed. Before this class renaming was done by parsing one file after the other, so the renaming options and modifiers had no information about already parsed files and how many files there will be renamed in general. For extension aware numbering it is important to know all files that should be parsed. In the future this class will maintain the whole parsing process. Right now it is just a "hack" to get things done, but to integrate it better into digiKam, a lot of code needs to be changed, especially in CameraUI and BQM. I don't have too much time at the moment, so this is the result :-) At least it works fine here. This commit also fixes some other problems: - BQM: when using the "Convert to..." options, file information could not be read, like camera name and metadata in general. This should be fixed now, BUT you are not able to modify the file extension in BQM (e.g. upper- or lowercase). - Date information was sometimes not available in CameraUI. BUG:246938 M +4 -3 CMakeLists.txt M +120 -222 tests/advancedrenametest.cpp M +2 -8 tests/advancedrenametest.h M +22 -11 utilities/advancedrename/advancedrenamedialog.cpp A utilities/advancedrename/advancedrenamemanager.cpp [License: GPL (v2+)] A utilities/advancedrename/advancedrenamemanager.h [License: GPL (v2+)] M +0 -13 utilities/advancedrename/advancedrenamewidget.cpp M +0 -5 utilities/advancedrename/advancedrenamewidget.h M +9 -16 utilities/advancedrename/common/parser.cpp M +1 -1 utilities/advancedrename/common/parser.h M +3 -7 utilities/advancedrename/common/parsesettings.h M +37 -1 utilities/advancedrename/parser/options/cameranameoption.cpp M +2 -4 utilities/advancedrename/parser/options/dateoption.cpp M +39 -9 utilities/advancedrename/parser/options/sequencenumberoption.cpp M +7 -0 utilities/advancedrename/parser/options/sequencenumberoptiondialogwidget.ui M +33 -12 utilities/cameragui/cameraiconview.cpp M +37 -19 utilities/cameragui/renamecustomizer.cpp M +3 -0 utilities/cameragui/renamecustomizer.h M +36 -11 utilities/queuemanager/queuelist.cpp M +7 -0 utilities/queuemanager/queuesettingsview.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1160586